0

In my application i want to turn on /off the hardware key back light(Home, Menu, Back) programatically.I searched many more but they will work on rooted device but i want for all whether its rooted or not.Can any one tell me that how can i do that.

Android dev
  • 273
  • 2
  • 5
  • 23

1 Answers1

-1

I got the below answer that is working perfactly

   PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
      wakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK  ,
        "My wakelook");
      wakeLock.acquire();

to release wakelock used below code

 wakeLock.release();
Android dev
  • 273
  • 2
  • 5
  • 23