Preventing Screen uto Lock while my application is running

by Georgy » Wed, 26 Aug 2009 04:02:46 GMT


Sponsored Links
 Hello,

I read a lot of posts concerning preventing the screen auto lock but
didn't find an efficient way.

Isn't there any simple line I could put to do such a thing? everything
looked so complicated, or didn't work.

thanks
--~--~---------~--~----~------------~-------~--~----~



Preventing Screen uto Lock while my application is running

by Streets Of Boston » Wed, 26 Aug 2009 04:04:03 GMT


 Which ways did not work or were complicated?



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Preventing Screen uto Lock while my application is running

by Georgy » Wed, 26 Aug 2009 04:09:29 GMT


 For example:

   public void onCreate() {
                PowerManager pm = (PowerManager) getSystemService
(Context.POWER_SERVICE);
                PowerManager.WakeLock wl = pm.newWakeLock
(PowerManager.FULL_WAKE_LOCK, "My Tag");
                wl.acquire();
        }

        public void onDestroy() {
                wl.release();
        }




--~--~---------~--~----~------------~-------~--~----~



Preventing Screen uto Lock while my application is running

by Georgy » Wed, 26 Aug 2009 04:12:14 GMT


 I actually read your post Dianne but somehow it doesn't work.

To be more specific I am using the RADAR intent and try to keep the
screen on while navigating to a location.

Thanks




--~--~---------~--~----~------------~-------~--~----~



Preventing Screen uto Lock while my application is running

by Georgy » Wed, 26 Aug 2009 04:13:59 GMT


 hold on I was thinking:

I am calling the radar intent like this:

 Intent i = new Intent("com.google.android.radar.SHOW_RADAR");

could it be that the line of code you mentioned must be in the RADAR
activity? meaning that I cannot control it unless I write the radar
activity that I am referencing all over again???





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. mohon invite google wave

Boss wilber, jika tidak keberatan bisa ga saya di invite google wave di 
feedbe...@gmail.com ?


Makasih yah



Let's your mobile device make it simple..
twitter.com/dn8008
facebook.com/dn8008
www.feedberry.com

--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

2. ROM Baru Cyan 4.2.4

Guys,

as subject, ROM Baru Cyan udah ada di XDA Forum, barusan nge-flash ke ROM
itu...mantap :D tampilan eclair, sayang gmailnya masi icon gmail donut :P
selebihnya icon ECLAIR by default plus beberapa fitur baru, changelognya
sebagai berikut :

*CHANGELOG*

*---- v4.2.4*
* "Lock Home in Memory" is OFF by default!! Enable in Spare Parts
* Added toggle for enabling Compcache in Spare Parts
* Eclair icons and wallpapers
* Updated BetterBrowser from Loccy
* Updated Phone Mod from Cytown (blacklist ftw!)
* Updated Superuser from ChainsDD/Zinx
* Fixed "Home + Sleep" behavior
* Tons and tons of tweaks and bugfixes from AOSP and CodeAurora
* BT OBEX fixes
* Build zipalign (zipalign-on-install will be in the next release)
* Other happy stuff I can't remember

--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. wait_on_completion_interrutiple vs. interruptible_sleep_on

4. market bengon

5. L2 Cache driver

6. Multiple view in Listview

7. "ERROR: the user data image is used by another emulator. aborting"