freshplanet / ANE-ImagePicker

Air Native Extension for mobile camera and gallery features (iOS + Android)
Apache License 2.0
80 stars 48 forks source link

I call Camera but nothing happens. #53

Open sfxworks opened 7 years ago

sfxworks commented 7 years ago
trace("IMAGE PICKER AVAIL?" + isImagePickerAvailable ? "YES" : "NO");
trace("CAMERA AVAIL?" + isCameraAvailable ? "YES" : "NO");

Both of these return yes. However, when I try to run it, the camera doesn't show up and nothing happens except my trace statement here.

        private function handleTrekAddPicture(e:TouchEvent):void 
        {
            trace("HANDLING ADD PICTURE");
            AirImagePicker.getInstance().displayCamera(imagePickedHandler);
        }
rdefalco commented 7 years ago

Same here, in Android logcat I see those statements

D/AirImagePicker(24131): [IsCameraAvailableFunction] entering call() D/AirImagePicker(24131): [AirImagePickerUtils] Entering isCameraAvailable D/AirImagePicker(24131): [AirImagePickerUtils] Entering isActionAvailable D/AirImagePicker(24131): [AirImagePickerUtils] Entering getIntentForAction D/AirImagePicker(24131): [AirImagePickerUtils] Exiting getIntentForAction D/AirImagePicker(24131): [AirImagePickerUtils] Exiting isActionAvailable D/AirImagePicker(24131): [AirImagePickerUtils] Exiting isCameraAvailable D/AirImagePicker(24131): [IsCameraAvailableFunction] exiting call()

So apparently this class invokes an Intent but without success. Maybe some additions in manifest are needed?

s2hago commented 7 years ago

Hi, did you solve this??? I have the same problem with the image picker option.

rdefalco commented 7 years ago

Hello, I can't tell because I switched to a paid third party ANE, but in order to use this other ANE, I had to comment out the following line:

             <!-- <uses-permission 

android:name="android.permission.CAMERA"/> -->

because probably it made conflict with the new, more detailed, uses-feature lines: <uses-feature android:name="android.hardware.camera" android:required="false" /> <uses-feature android:name="android.hardware.camera.front" android:required="false" /> <uses-feature android:name="android.hardware.camera.back" android:required="false" /> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>

I don't know if this could solve Freshplanet problem, too. Give it a try.

Best regards, Raffaele

Il 19/05/2017 18:50, s2hago ha scritto:

Hi, did you solve this??? I have the same problem with the image picker option.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/freshplanet/ANE-ImagePicker/issues/53#issuecomment-302754804, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvRKxztufVAHJXeA5iduZ97tQYrVMw_ks5r7cg6gaJpZM4LzUXf.

syberkitten commented 7 years ago

Have a similar issue, getting:

[trace] [AirImagePicker] creating recentPhotosFetcher [trace] [AirImagePicker] created recentPhotosFetcher

But nothing happens, even with the latest security permissions. I've been trying with AIR SDK 26, which was targeted as 37, then failed also as 36.

syberkitten commented 7 years ago

Downgrading the SDK to 25 fails as well, will try to lower the -swf-version to 34 and see if it makes a different.

It all worked before, but I might have upgraded the ANE and upgraded the AIR SDK as well...