[android-developers] Re: Wake Locks and Services

2009-06-16 Thread Dianne Hackborn
Do you REALLY need to hold a full wake lock like this? The vast majority of apps should use the window flag to keep the screen on while their UI is shown. This way you don't need the power permission, and you are much less likely to have bugs that leave the screen on and cause the user's

[android-developers] Re: Wake Locks and Services

2009-06-16 Thread Thomas Riley
How would I go about doing this. I have the wake lock working ok now but no harm in knowing a different method... On Jun 16, 8:49 am, Dianne Hackborn hack...@android.com wrote: Do  you REALLY need to hold a full wake lock like this?  The vast majority of apps should use the window flag to

[android-developers] Re: Wake Locks and Services

2009-06-16 Thread Desu Vinod Kumar
HI i need urgently please can u help me regarding the web serviices query (nusoap) How to query the We service (nuSoap) in android please help me regarding this Thanks in advance On Sun, Jun 14, 2009 at 3:34 AM, Thomas Riley tomrile...@googlemail.comwrote: I need to use a wakelock to

[android-developers] Re: Wake Locks and Services

2009-06-16 Thread Thomas Riley
Sorry but can you please make your own thread asking the question as this is off topic. Thanks. On Jun 16, 12:00 pm, Desu Vinod Kumar vinny.s...@gmail.com wrote: HI i need urgently please can u help me regarding the web serviices query (nusoap) How to query the We service (nuSoap) in

[android-developers] Re: Wake Locks and Services

2009-06-16 Thread Alexey Krasnoriadtsev
http://developer.android.com/reference/android/view/View.html#attr_android:keepScreenOn This will keep the screen on, while your view is visible. On Jun 16, 3:52 am, Thomas Riley tomrile...@googlemail.com wrote: How would I go about doing this. I have the wake lock working ok now but no harm

[android-developers] Re: Wake Locks and Services

2009-06-16 Thread Dianne Hackborn
You can also manually set FLAG_KEEP_SCREEN_ON in the window. On Tue, Jun 16, 2009 at 11:45 AM, Alexey Krasnoriadtsev ale...@agilefusion.com wrote: http://developer.android.com/reference/android/view/View.html#attr_android:keepScreenOn This will keep the screen on, while your view is

[android-developers] Re: Wake Locks and Services

2009-06-16 Thread gjs
Hi, Some related discussion here as well - http://groups.google.com/group/android-developers/browse_thread/thread/947fd3d0ed878c66?hl=en Regards On Jun 17, 5:49 am, Dianne Hackborn hack...@android.com wrote: You can also manually set FLAG_KEEP_SCREEN_ON in the window. On Tue, Jun 16, 2009

[android-developers] Re: Wake Locks and Services

2009-06-14 Thread Brad Gies
W1 is not defined in onDestroy. Try this: public class WakeLockService extends Service { PowerManager.WakeLock wl; // NOTE CHANGE HERE @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; }