[
https://issues.apache.org/jira/browse/CB-12429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15856924#comment-15856924
]
Kerri Shotts commented on CB-12429:
-----------------------------------
See
https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#lifecycle-guide;
this is normal for Android and you need code to handle the possibility that
your activity may be unloaded when the user takes a picture.
> [blocked] cordova-plugin-camera refresh app Android
> ---------------------------------------------------
>
> Key: CB-12429
> URL: https://issues.apache.org/jira/browse/CB-12429
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 3.5.0
> Environment: Android phonegap build
> Reporter: Guillaume Touzeau
> Priority: Critical
> Labels: build
>
> with phonegap build. only on android device (IOS is working well) + plugin :
> <preference name='phonegap-version' value='cli-6.5.0' />
> <preference name="android-minSdkVersion" value="15" />
> <preference name="android-maxSdkVersion" value="22" />
> <gap:plugin name="cordova-plugin-camera" source="npm" />
> The app is refreshing each time that i use the code below (the code that i
> used to use with another version and was working well, but now it is not when
> i compile again the app on phonegap build)
> I cannot find a solution that is working (i'm on it since 3 days without any
> solution)
> with the following code :
> navigator.camera.getPicture(onPhotoDataSuccessAndroid,onFail,
> {quality:50,
> destinationType: Camera.DestinationType.FILE_URI,
> sourceType : Camera.PictureSourceType.PHOTOLIBRARY,
> mediaType: Camera.MediaType.PICTURE });
> function onPhotoDataSuccessAndroid(imageURI) {
> //I do nothing here but the app is still refreshing...
> }
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]