Hi, > By using the native method setScreenState(), I make my device's screen > off.The code is: > > int x=Power.setScreenState(false);//make the screen off > System.out.println(x);//0 will be print out > Thread.sleep(3000); > x=Power.setScreenState(true);//make the screen on > System.out.println(x);//0 will be print out
it does not work for me, still rc=2. What did you use in your manifest file? > I tried this code on emulator, it works too. > PS: I use the 1.1r1 SDK and emulator here I have sdk 1.5r2, tried building with 1.1 level and 1.5 level, both failed on device and emulator. Now I'm trying to get SDK 1.1 to work again, but it will take some time. Thanks, Yuri --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---