How do I keep an application alive?
e.g. keep the screen bright and everything displays instantly?
I have tried these to no avail...
pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "TAG");
wl.acquire();
System.setProperty(DIM_SCREEN,0);
Its ok if I waste battery. (my application is tethered).
Thanks
jp
code here
http://code.google.com/p/speedlimit/source/browse/trunk/Speedlimit/src/org/speedlimit/Speedlimit.java
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---