<uses-permission android:name="android.permission.PREVENT_POWER_KEY" />--To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/LeZ98XiRx58J.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
Thanks a ton Richard... but that didnt help-- as none of that's done.
BTW am using Necessitas Qt SDK...
However, your suggestions much appreciated-- and if any other comments/suggestions/pointers... do share...Regards,
Nalin
On Wed, Aug 1, 2012 at 1:10 AM, RichardC <richard.critten@googlemail.com> wrote:
Forgot to add:If you have<uses-permission android:name="android.permission.PREVENT_POWER_KEY" />in your manifest remove that as well.
On Tuesday, July 31, 2012 8:38:34 PM UTC+1, RichardC wrote:You don't need to DO anything.What you do need to do is UNDO whatever developer(s) have done in your app or toolkit. It should be impossible to bypass the power-button locking the device.Try looking for "KeyEvent.KEYCODE_POWER" anywhere in your code base.
On Tuesday, July 31, 2012 8:24:00 PM UTC+1, n.s wrote:Dear Friends and Senior Colleagues,I have a android app; that uses parts of Qt widget-set ported to android (ofcourse it's a rough and not perfect and incomplete port) and running on Galaxy Note.When power-btn is pressed--- screen goes off; and seemingly locked (because it's unresponsive to touch)... but when we press center-button OR power-button--->> which should show us a lock-screen-- and prompt us to unlock...then, instead of seeing lock screen--- we just see the app... ie: the screen/touch got powered-off--->> but it was not actually locked.How to ensure that pressing power button makes lock happen in app built around native activity ???Do help... since it's getting rejected in a app-store's QA due to this reason...Regards,Nalin--To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/LeZ98XiRx58J.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.
This are some posts on this issue (people trying to intercept the power-button) on http://stackoverflow.com/One thing I thought of is are your holding any WakeLock(s) http://developer.android.com/reference/android/os/PowerManager.WakeLock.htmland should you be releasing them when your app goes to the background?
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/LDIvGj4LQDEJ.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.