Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on Android #70

Open
trinoo1979 opened this issue Jan 24, 2022 · 2 comments
Open

Crashes on Android #70

trinoo1979 opened this issue Jan 24, 2022 · 2 comments

Comments

@trinoo1979
Copy link

trinoo1979 commented Jan 24, 2022

Hello, thanks for this ANE. When try to run my project compiled (without any errors) using Adobe Animate, AIR 33.1.1.633 and your ANE downloaded from Bin folder (5.6 MB size) on a device (tested on Samsung Galaxy A7 with Android 11 and XPERIA Z1 Compact with Android 5), my application crashes immediately (and closes debug session silently without any error) when calling AirImagePicker.instance.displayCamera(500, 500).
Included all imports to my project and also activities to app xml descriptor.
tried to place some traces right before displayCamera() call:

trace(AirImagePicker.isSupported); //true
trace(AirImagePicker.instance.getCameraPermissionStatus().value); //AUTHORISED

I use also your KeyoardSize ANE in the same projects and it works fine as well as another ANE using device camera - Barcode scanner ANE from MyFlashLabs - which also works fine. Any help or advice, where problem might be, please?

@trinoo1979 trinoo1979 changed the title Crashes on Android 11 Crashes on Android Jan 24, 2022
@trinoo1979
Copy link
Author

trinoo1979 commented Jan 26, 2022

ANE from sample/libs folder works fine for me, but it does not contain all necessary platforms (64bit), its 4 yars old, please, please recompile it.

@esdebon
Copy link

esdebon commented May 29, 2023

Here contain all necessary platforms (64bit)

https://github.com/Fluocode/ANE-ImagePicker/tree/master/bin

requiere:

<provider
						android:name="androidx.core.content.FileProvider" 
						android:authorities="com.domainTest.app.fileprovider"
						android:exported="false"
						android:grantUriPermissions="true">
						<meta-data
							android:name="android.support.FILE_PROVIDER_PATHS"
							android:resource="@xml/provider_paths"/>
				</provider>

Where:

com.domainTest.app

is the APP ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants