[android-developers] Re: can execute my app automatilly when android is up?
I think home is not the first application that is started, but it is the first visible one. So you have two options: 1. Your application can replace the home screen, but then it should do everything that a home screen does. You have to declare an IntentFilter with the Home category, see http://developer.android.com/reference/android/content/Intent.html#CATEGORY_HOME 2. You can register your app to be executed on startup, additional to home. There is a matching broadcast action decribed here: http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED On 6 Aug., 08:43, tstanly tsai.sta...@gmail.com wrote: hi all, I want to change the start point of my machine, that is,when start on Android, it can run my app instead of home firstly, if it possiable? 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 -~--~~~~--~~--~--~---
[android-developers] Re: can execute my app automatilly when android is up?
thanks for your reply, for your first point, i try to do it by edit the AndroidManifesr.xml, edit the intent-filter/ tag for... intent-filter action android:name=andrroid.intent.action.MAIN / category android:name=android.intent.category.HOME / /intent-filter but not work? thanks! On 8月6日, 下午3時40分, brian.schimmel brian.schim...@googlemail.com wrote: I think home is not the first application that is started, but it is the first visible one. So you have two options: 1. Your application can replace the home screen, but then it should do everything that a home screen does. You have to declare an IntentFilter with the Home category, seehttp://developer.android.com/reference/android/content/Intent.html#CA... 2. You can register your app to be executed on startup, additional to home. There is a matching broadcast action decribed here:http://developer.android.com/reference/android/content/Intent.html#AC... On 6 Aug., 08:43, tstanly tsai.sta...@gmail.com wrote: hi all, I want to change the start point of my machine, that is,when start on Android, it can run my app instead of home firstly, if it possiable? 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 -~--~~~~--~~--~--~---
[android-developers] Re: can execute my app automatilly when android is up?
you should register a broadcast receiver in your AndroidManifesr.xml and set intent filter about mobile power on action your class extends from BroadcastReceiver should fire up your activity of application On Aug 6, 4:46 pm, tstanly tsai.sta...@gmail.com wrote: thanks for your reply, for your first point, i try to do it by edit the AndroidManifesr.xml, edit the intent-filter/ tag for... intent-filter action android:name=andrroid.intent.action.MAIN / category android:name=android.intent.category.HOME / /intent-filter but not work? thanks! On 8月6日, 下午3時40分, brian.schimmel brian.schim...@googlemail.com wrote: I think home is not the first application that is started, but it is the first visible one. So you have two options: 1. Your application can replace the home screen, but then it should do everything that a home screen does. You have to declare an IntentFilter with the Home category, seehttp://developer.android.com/reference/android/content/Intent.html#CA... 2. You can register your app to be executed on startup, additional to home. There is a matching broadcast action decribed here:http://developer.android.com/reference/android/content/Intent.html#AC... On 6 Aug., 08:43, tstanly tsai.sta...@gmail.com wrote: hi all, I want to change the start point of my machine, that is,when start on Android, it can run my app instead of home firstly, if it possiable? 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 -~--~~~~--~~--~--~---