hi,
I have created my custome service and that service is started by 
SystemServer.
I want to aquire wakelock but it is not working.
here is my code snippet :
    public TestService(Context context){
    
    PowerManager pm = (PowerManager) 
context.getSystemService(Context.POWER_SERVICE);
    mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK,TAG);
    
    mWorker = new WorkerThread();
    mWorker.start();
    
    }
    
    
WorkerThread extends Thread{
    
    
    public void run(){
    
    if(condition){
    // It is not working.
    mWakeLock.aquire();
    
   }
    
        
}
        
}


Please help to resolve this issue.

Thanks,
Yuvi

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to