[
https://issues.apache.org/jira/browse/CB-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Bowser updated CB-7705:
---------------------------
Priority: Major (was: Blocker)
> MediaProvider kills cordova Application in background
> -----------------------------------------------------
>
> Key: CB-7705
> URL: https://issues.apache.org/jira/browse/CB-7705
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin Camera
> Affects Versions: 3.5.0
> Environment: Android 4.4.4 on MotoG
> Reporter: Laurent Deketelaere
>
> Reproduced with Camera 0.3.1, 0.3.2, 0.3.3-dev
> Simply with this code directly in index.html :
> {code:javascript}
> navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
> destinationType: Camera.DestinationType.FILE_URI });
> function onSuccess(imageURI) {
> console.log(imageURI);
> }
> function onFail(message) {
> console.log('Failed because: ' + message);
> }
> {code}
> Happen very often with sourceType: Camera.PictureSourceType.CAMERA and less
> often with sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM
> logcat :
> {quote}
> 10-03 12:32:04.199: I/ActivityManager(1019): Process android.process.media
> (pid 5150) has died.
> 10-03 12:32:04.199: W/ActivityManager(1019): Scheduling restart of crashed
> service com.android.providers.media/.MtpService in 29466ms
> 10-03 12:32:04.199: I/ActivityManager(1019): Killing
> 4972:cordova.myAPP/u0a187 (adj 7): depends on provider
> com.android.providers.media/.MediaProvider in dying proc android.process.media
> 10-03 12:32:04.201: W/ContextImpl(1235): Calling a method in the system
> process without a qualified user: android.app.ContextImpl.sendBroadcast:1252
> android.content.ContextWrapper.sendBroadcast:365
> com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76
> com.motorola.motocare.internal.frameworkevents.ProcessKillTrigger.sendTrigger:147
>
> com.motorola.motocare.internal.frameworkevents.ProcessKillTrigger.handleFrameworkEvent:164
>
> 10-03 12:32:04.216: W/dalvikvm(9495): method
> Lcom/actionbarsherlock/internal/widget/IcsLinearLayout;.drawDividersHorizontal
> incorrectly overrides package-private method with same name in
> Landroid/widget/LinearLayout;
> 10-03 12:32:04.217: W/dalvikvm(9495): method
> Lcom/actionbarsherlock/internal/widget/IcsLinearLayout;.drawDividersVertical
> incorrectly overrides package-private method with same name in
> Landroid/widget/LinearLayout;
> 10-03 12:32:04.217: W/dalvikvm(9495): method
> Lcom/actionbarsherlock/internal/widget/IcsLinearLayout;.drawHorizontalDivider
> incorrectly overrides package-private method with same name in
> Landroid/widget/LinearLayout;
> 10-03 12:32:04.217: W/dalvikvm(9495): method
> Lcom/actionbarsherlock/internal/widget/IcsLinearLayout;.drawVerticalDivider
> incorrectly overrides package-private method with same name in
> Landroid/widget/LinearLayout;
> 10-03 12:32:04.220: I/WindowState(1019): WIN DEATH: Window{436830a8 u0
> cordova.myAPP/cordova.myAPP}
> {quote}
> Tried also with cordova preference :
> {quote}
> <preference name="AndroidLaunchMode" value="singleTask"/>
> {quote}
> I can fix this behavior with cordova-plugin-wezka-nativecamera, but they
> don't manage Gallery, and it's Android only.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]