Check your app's manifest for a android:minSdkVersion
and change it appropriately, from 8 to something lower (7 for Android 2.1). If you don't have one, create it, or build with Android 2.1 libraries. -- Kostya 2011/6/9 souissi haythem <haythe...@gmail.com> > so why i got this message?? > > [2011-06-09 14:06:19 - Screen] ERROR: Application requires API version > 8. Device API version is 7 (Android 2.1-update1). > [2011-06-09 14:06:19 - Screen] Launch canceled! > > And when i try this in an AVD 2.2, it work?? > > > > > On Jun 9, 1:34 pm, Kostya Vasilyev <kmans...@gmail.com> wrote: > > 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 > -- 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