[android-developers] Re: BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON
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
Re: [android-developers] Re: BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON
On Thu, Jun 9, 2011 at 8:07 AM, souissi haythem haythe...@gmail.com wrote: 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?? You have set the android:minSdkVersion of your application to 8. This has absolutely nothing to do with ACTION_SCREEN_OFF or ACTION_SCREEN_ON. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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
Re: [android-developers] Re: BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON
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
[android-developers] Re: BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON
sorry it's working i have to change my manifest.xml i know it's stupid :) thanks On Jun 9, 2:07 pm, souissi haythem haythe...@gmail.com wrote: 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