Re: [android-developers] two method to get the service

2010-12-13 Thread tangke
于 2010年12月13日 15:44, Dianne Hackborn 写道: On Sun, Dec 12, 2010 at 11:27 PM, tangke mumut...@gmail.com mailto:mumut...@gmail.com wrote: I have a question that how to get a service? I have two different method to set backlightbrightness 1. IPowerManager pm =

[android-developers] two method to get the service

2010-12-12 Thread tangke
hi,all I have a question that how to get a service? I have two different method to set backlightbrightness 1. IPowerManager pm = IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE)); pm.setBacklightBrightness(0); 2. PowerManager mpm =

Re: [android-developers] two method to get the service

2010-12-12 Thread Dianne Hackborn
On Sun, Dec 12, 2010 at 11:27 PM, tangke mumut...@gmail.com wrote: I have a question that how to get a service? I have two different method to set backlightbrightness 1. IPowerManager pm = IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE));