This code:

            PowerManager pm = (PowerManager)
ftaContext.getSystemService(Context.POWER_SERVICE);
            PowerManager.WakeLock wl = pm.newWakeLock
(PowerManager.PARTIAL_WAKE_LOCK, "My Tag");
            wl.acquire();

with this permission:

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

produces this exception:


01-19 18:50:13.961: ERROR/Mo_call_end2(18463):
android.os.Parcel.readException(Parcel.java:1234)
01-19 18:50:13.961: ERROR/Mo_call_end2(18463):
android.os.Parcel.readException(Parcel.java:1222)
01-19 18:50:13.961: ERROR/Mo_call_end2(18463):
android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:
160)
01-19 18:50:13.961: ERROR/Mo_call_end2(18463):
android.os.PowerManager$WakeLock.acquire(PowerManager.java:228)
01-19 18:50:13.961: ERROR/Mo_call_end2(18463):
qcom.cta.fta.fta_voice.FTACommand$DefaultPhoneThread.run
(FTACommand.java:741)

Any insights appreciated.

Thanks much.

Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to