It is resolved.
android.permission should be added into androidmanifest.xml:
................
package="com.example.fslmmapp"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.SET_WALLPAPER" /
>
..................
On Jul 13, 6:42 pm, Chenny <[email protected]> wrote:
> Hi All,
> When I port my Android APP from Cupcake to Donut, I meet the following
> issue:
> Anybody has clue for it? (BTW, the APP can be worked well on Cupcake.)
>
> E/AndroidRuntime( 2225): java.lang.SecurityException: Neither user
> 10013 nor cur
> rent process has android.permission.WAKE_LOCK.
> E/AndroidRuntime( 2225): at android.os.Parcel.readException
> (Parcel.java:1
> 234)
> E/AndroidRuntime( 2225): at android.os.Parcel.readException
> (Parcel.java:1
> 222)
> E/AndroidRuntime( 2225): at android.os.IPowerManager$Stub
> $Proxy.acquireWa
> keLock(IPowerManager.java:178)
> E/AndroidRuntime( 2225): at android.os.PowerManager
> $WakeLock.acquire(Powe
> rManager.java:228)
> E/AndroidRuntime( 2225): at android.media.MediaPlayer.stayAwake
> (MediaPlay
> er.java:766)
> E/AndroidRuntime( 2225): at android.media.MediaPlayer.start
> (MediaPlayer.j
> ava:679)
> E/AndroidRuntime( 2225): at android.widget.VideoView
> $2.onPrepared(VideoVi
> ew.java:285)
> E/AndroidRuntime( 2225): at android.media.MediaPlayer
> $EventHandler.handle
> Message(MediaPlayer.java:942)
> E/AndroidRuntime( 2225): at android.os.Handler.dispatchMessage
> (Handler.ja
> va:99)
> E/AndroidRuntime( 2225): at android.os.Looper.loop(Looper.java:
> 123)
> E/AndroidRuntime( 2225): at android.app.ActivityThread.main
> (ActivityThrea
> d.java:4020)
> E/AndroidRuntime( 2225): at
> java.lang.reflect.Method.invokeNative(Native
> Method)
> E/AndroidRuntime( 2225): at java.lang.reflect.Method.invoke
> (Method.java:5
> 21)
> E/AndroidRuntime( 2225): at com.android.internal.os.ZygoteInit
> $MethodAndA
> rgsCaller.run(ZygoteInit.java:782)
> E/AndroidRuntime( 2225): at
> com.android.internal.os.ZygoteInit.main(Zygot
> eInit.java:540)
> E/AndroidRuntime( 2225): at dalvik.system.NativeStart.main
> (Native Method)
>
> I/Process ( 1936): Sending signal. PID: 2225 SIG: 3
> I/dalvikvm( 2225): threadid=7: reacting to signal 3
> I/dalvikvm( 2225): Wrote stack trace to '/data/anr/traces.txt'
> W/ActivityManager( 1936): Launch timeout has expired, giving up wake
> lock!
> W/ActivityManager( 1936): Activity idle timeout for HistoryRecord
> {43776878 com.e
> xample.fslmmapp/.MMInfoThumbPlaybackActivity}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---