According to the documentation, both are "since API level 1".....

-- Kostya

2011/6/9 souissi haythem <haythe...@gmail.com>

> Hi
>
> i need to use the two broadcast in the title. The problem is that to
> use it, we require API version8 (android 2.2). And my program need to
> work in Android 2.1
>
> I wanna know if there is other tools in android 2.1 that it can do the
> work of detecting screen on or off.
> I have found isScreenOn() which test if the screen is on or off, but
> it is not why i need. I need to detect automatic when the screen is on
> so i lunch my service .
>
> Thanks
>
> --
> 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

-- 
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

Reply via email to