You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Rupesh Arjun (JIRA)" <ji...@apache.org> on 2015/04/01 15:23:53 UTC

[jira] [Commented] (CB-8778) App Crashes while simultaneously Playing the video as well as downloading the video.

    [ https://issues.apache.org/jira/browse/CB-8778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390533#comment-14390533 ] 

Rupesh Arjun commented on CB-8778:
----------------------------------

I found that we need to set the following permission in AndroidManifest.xml file

<uses-permission android:name="android.permission.WAKE_LOCK" />

By Setting the permission the exception doesn't occur and app doesn't crash.


> App Crashes while simultaneously Playing the video as well as downloading the video.
> ------------------------------------------------------------------------------------
>
>                 Key: CB-8778
>                 URL: https://issues.apache.org/jira/browse/CB-8778
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File Transfer
>    Affects Versions: 3.6.0, 3.7.0
>         Environment: Windows 7 64 bit, android 4.2.2, 4.4.2 devices
>            Reporter: Rupesh Arjun
>            Priority: Minor
>             Fix For: 3.6.0, 3.7.0
>
>
> When I try to simultaneously play the video as well as download the video my app crashes giving me message "Unfortunately app has stopped" on some android devices.
> In the eclipse logcat I found the following log.
> 04-01 16:10:13.686: W/System.err(18371): java.lang.SecurityException: Neither user 10105 nor current process has android.permission.WAKE_LOCK.
> 04-01 16:10:13.686: W/System.err(18371): 	at android.os.Parcel.readException(Parcel.java:1465)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.os.Parcel.readException(Parcel.java:1419)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:311)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.os.PowerManager$WakeLock.acquireLocked(PowerManager.java:730)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.os.PowerManager$WakeLock.acquire(PowerManager.java:699)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.media.MediaPlayer.stayAwake(MediaPlayer.java:1674)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.media.MediaPlayer.start(MediaPlayer.java:1581)
> 04-01 16:10:13.686: W/System.err(18371): 	at com.android.org.chromium.media.MediaPlayerBridge.start(MediaPlayerBridge.java:96)
> 04-01 16:10:13.686: W/System.err(18371): 	at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
> 04-01 16:10:13.686: W/System.err(18371): 	at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:27)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.os.Handler.dispatchMessage(Handler.java:102)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.os.Looper.loop(Looper.java:136)
> 04-01 16:10:13.686: W/System.err(18371): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
> 04-01 16:10:13.686: W/System.err(18371): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 04-01 16:10:13.696: W/System.err(18371): 	at java.lang.reflect.Method.invoke(Method.java:515)
> 04-01 16:10:13.696: W/System.err(18371): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
> 04-01 16:10:13.696: W/System.err(18371): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
> 04-01 16:10:13.696: W/System.err(18371): 	at dalvik.system.NativeStart.main(Native Method)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org