can execute my app automatilly when android is up?

by tstanly » Thu, 06 Aug 2009 14:43:55 GMT

Sponsored Links
 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?


can execute my app automatilly when android is up?

by brian.schimmel » Thu, 06 Aug 2009 15:40:22 GMT

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

2. You can register your app to be executed on startup, additional to
"home". There is a matching "broadcast action" decribed here: #ACTION_BOOT_COMPLETED


Sponsored Links

can execute my app automatilly when android is up?

by tstanly » Thu, 06 Aug 2009 16:47:11 GMT

 thanks for your reply,

for your first point,
i try to do it by edit the AndroidManifesr.xml,

edit the <intent-filter/> tag for...

 <action android:name="andrroid.intent.action.MAIN" />
 <category android:name="android.intent.category.HOME" />

but not work?


On 8 30 "brian.schimmel" <>


can execute my app automatilly when android is up?

by peter » Thu, 06 Aug 2009 17:04:07 GMT

 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


Other Threads

1. help about SMS BroadcastReceiver conflict with GPS LOCATION_SERVICE

Why do you think that the first line modifies the state of context and
that that causes a null pointer exception later?
Can you post the full stack trace of the exception?


2. how to update the firmware of the dev phone to 1.1?

That will not get you 1.1 - it will get you master, which (iirc) is to be
called 1.5. (What it is right now is a bleeding edge development branch,
that is rarely updated from the internal google branches, plus the fixes
needed to build without google's huge collection of closed-source apps and
framework pieces.)

On master wifi, etc works fine. It is just google apps that are missing.
(For the interested, I host fastbootable-images at - I update them every day or two, as
changes are pushed into the public tree.)

For 1.1, your official options are "sucks to be you". Your unofficial
options are a little better - since google updated all their employees
phones you can install the 'holiday' update. (Available for any
testkeys-enabled phone - like the adp1 - at .. use the
'nochecks' version.) Google updated their employees phones instead of the
adp1 phones, probably to make sure you knew your place.. :(


3. Is the developer or Android Market selling the Apps?

4. BroadcastReceiver for a Service to catch broadcast Intent ACTION_BOOT_COMPLETED

5. poblem in reading file of android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI

6. crash in after calling Images.Media.insertImage

7. Emualator fails at Boot up