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 <[email protected]> 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" <[email protected]> > 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

