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?


thanks!
--~--~---------~--~----~------------~-------~--~----~



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



--~--~---------~--~----~------------~-------~--~----~


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...

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


but not work?

thanks!

On 8 30 "brian.schimmel" <brian.schim...@googlemail.com>



--~--~---------~--~----~------------~-------~--~----~



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. routing audio to speaker

I am working on android for omap zoom2.
omapkernel - 2.6.27
android    - RLS25.6

The audio playback seems to happen (progress bar updation happens) but
no Audio is heard.
There is no headphone connected and also the sound level is at
maximum.

Is speaker routing enabled by default or do i have to enable it
explicitly?
Kindly help me.

Thanks,
Sunee

--~--~---------~--~----~------------~-------~--~----~

2. usb android architecture

Hi

How adb usb / USB ohci  / USB Gadget works on User Space Application.
Which daemon and libraries were used in middleware to connect kernal
space.
Could you please explain the android USB architecture for userspace
and kernal space and if any document please share with me.

Thanks & regds,
Jayasree

--~--~---------~--~----~------------~-------~--~----~

3. How to set custom title for tab activity?

4. How to add my own menu item into the already existing menu in the sms application

5. can one cmulator control controls two emulators in the same computor at the same time ?

6. How to create a View from an external XML source?

7. Post-donut Window Composition?