Power Manager Wake Locks

by Akshay Sumant » Fri, 24 Oct 2008 20:17:05 GMT


Sponsored Links
 Hi all,
     AFAIK, wake locks ensure a constant device state (for CPU,LCD
backlight, Keypad backlight) in between acquire() and release() of a
wake lock.
    What if there are two or more apps acquiring (rather trying to
acquire) wake lock at a same time? How are they handled? Who takes
this responsibility?
    Please put some light on these issues.

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



Power Manager Wake Locks

by Akshay Sumant » Thu, 30 Oct 2008 16:32:18 GMT


 





-- 
Thank you.
Akshay Sumant.
"Harder I work, more luck I seem to have"

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


Sponsored Links


Power Manager Wake Locks

by Wiktor » Thu, 30 Oct 2008 16:55:39 GMT


 I suppose acquire() just increases some hidden counter and the device
is turned on until all of the locks are released.





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



Other Threads

1. How to make webview answer onmousedown when it on touched?

webview always answers onmousedown (js script) after your finger leave
up from the screen, so onmousedown is just like onclick. So how can
webview listen to onTouch event so that it can answer the onmousedown
event immediataly when you've touched the screen?
Thanks in advance.

-- 

2. OpenGL - Works on Emulator, - Not on Phone

Hello.

I'm writing a simple game with OpenGL.

I've been using the emulator to test it up until now, and it has
worked fine there. Today I deployed it to my phone, and some parts of
the rendering was not working.

I load textures with the following settings.

gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,
GL10.GL_NEAREST);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,
GL10.GL_LINEAR);


gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT);
                        
GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);

Now, rectangles textures with a 1:1 size works on the phone. (A
rectangle of dimension 16*16 with a texture of dimension 16*16 for
example).

However, my background, which utilizes the GL_REPEAT parameter to
texture a a larger surface does not work. Neither does a background
overlay which is essentially a vertex array of ~2000 vertices.
Everything's just black.

Are there any gotcha's I'm missing, or does anyone have an inkling as
to why this is the case?

Both Emulator and Phone are Android 2.1-Update 1.

-Terje

-- 

3. i have developed one 3D Stack View in Android 3.0 , how do i accomodate that into a Fragment of other Activity in Android 3.0

4. glReadPixels() Problem in Android

5. ERR: requires 'SharedProfile [1.0.0.1300435031206]

6. VST plugin that uses EAS as a synthesizer

7. Pause resume animation set