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. MediaPlayer Prepare errors sometimes...

The following is the error seen sometimes when playing an mp3 from the
internet...

Could someone let me know if this is a known issue?

Thanks!

06-17 20:02:42.776: INFO/DEBUG(25079): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
06-17 20:02:42.776: INFO/DEBUG(25079): Build fingerprint: 'tmobile/
kila/dream/trout:1.5/CRB43/148830:user/ota-rel-keys,release-keys'
06-17 20:02:42.776: INFO/DEBUG(25079): pid: 25078, tid: 25085  >>> /
system/bin/mediaserver <<<
06-17 20:02:42.776: INFO/DEBUG(25079): signal 11 (SIGSEGV), fault addr
384be9c7
06-17 20:02:42.776: INFO/DEBUG(25079):  r0 384a0c93  r1 000020e0  r2
000000cc  r3 00000001
06-17 20:02:42.786: INFO/DEBUG(25079):  r4 00000198  r5 384be9c3  r6
00000000  r7 384be82b
06-17 20:02:42.786: INFO/DEBUG(25079):  r8 bef2e84c  r9 afe39dd0  10
a9d2856d  fp 00000001
06-17 20:02:42.786: INFO/DEBUG(25079):  ip 00000008  sp 40608cc4  lr
a7a22a71  pc a7a22a92  cpsr 00000030
06-17 20:02:42.876: INFO/DEBUG(25079):          #00  pc 00022a92  /
system/lib/libopencorenet_support.so
06-17 20:02:42.886: INFO/DEBUG(25079):          #01  lr a7a22a71  /
system/lib/libopencorenet_support.so
06-17 20:02:42.886: INFO/DEBUG(25079): stack:
06-17 20:02:42.886: INFO/DEBUG(25079):     40608c84  000001b4
06-17 20:02:42.886: INFO/DEBUG(25079):     40608c88  000000dc
06-17 20:02:42.896: INFO/DEBUG(25079):     40608c8c  00002bb0
06-17 20:02:42.896: INFO/DEBUG(25079):     40608c90  0001db98  [heap]
06-17 20:02:42.896: INFO/DEBUG(25079):     40608c94  0001dd34  [heap]
06-17 20:02:42.896: INFO/DEBUG(25079):     40608c98  00000001
06-17 20:02:42.896: INFO/DEBUG(25079):     40608c9c  bef2e84c  [stack]
06-17 20:02:42.896: INFO/DEBUG(25079):     40608ca0  afe39dd0
06-17 20:02:42.896: INFO/DEBUG(25079):     40608ca4  a9d2856d  /system/
lib/libutils.so
06-17 20:02:42.896: INFO/DEBUG(25079):     40608ca8  00000001
06-17 20:02:42.896: INFO/DEBUG(25079):     40608cac  0001dd34  [heap]
06-17 20:02:42.896: INFO/DEBUG(25079):     40608cb0  00007000
06-17 20:02:42.896: INFO/DEBUG(25079):     40608cb4  a7a22a71  /system/
lib/libopencorenet_support.so
06-17 20:02:42.896: INFO/DEBUG(25079):     40608cb8  df002777
06-17 20:02:42.896: INFO/DEBUG(25079):     40608cbc  e3a070ad
06-17 20:02:42.896: INFO/DEBUG(25079):     40608cc0  40608d1c
06-17 20:02:42.896: INFO/DEBUG(25079): #00 40608cc4  40608cdc
06-17 20:02:42.896: INFO/DEBUG(25079):     40608cc8  000317b0  [heap]
06-17 20:02:42.906: INFO/DEBUG(25079):     40608ccc  a7a4ff90
06-17 20:02:42.906: INFO/DEBUG(25079):     40608cd0  40608d1c
06-17 20:02:42.906: INFO/DEBUG(25079):     40608cd4  a7a287a3  /system/
lib/libopencorenet_support.so
06-17 20:02:42.906: INFO/DEBUG(25079):     40608cd8  bef2e84c  [stack]
06-17 20:02:42.906: INFO/DEBUG(25079):     40608cdc  a7a4d4b8
06-17 20:02:42.916: INFO/DEBUG(25079):     40608ce0  00000001
06-17 20:02:42.916: INFO/DEBUG(25079):     40608ce4  00000001
06-17 20:02:42.916: INFO/DEBUG(25079):     40608ce8  00021e18  [heap]
06-17 20:02:42.916: INFO/DEBUG(25079):     40608cec  00000010
06-17 20:02:42.916: INFO/DEBUG(25079):     40608cf0  40608cf4
06-17 20:02:42.916: INFO/DEBUG(25079):     40608cf4  a7a4d4d8
06-17 20:02:42.916: INFO/DEBUG(25079):     40608cf8  a7a4d040
06-17 20:02:42.926: INFO/DEBUG(25079):     40608cfc  a7a4d054
06-17 20:02:42.926: INFO/DEBUG(25079):     40608d00  00000000
06-17 20:02:42.926: INFO/DEBUG(25079):     40608d04  0001dae0  [heap]
06-17 20:02:42.926: INFO/DEBUG(25079):     40608d08  a7a1f6f1  /system/
lib/libopencorenet_support.so
06-17 20:02:43.546: INFO/DEBUG(25079): de{*filter*}d committing suicide to
free the zombie!
06-17 20:02:43.556: INFO/ServiceManager(30): service
'media.audio_flinger' died
06-17 20:02:43.556: INFO/ServiceManager(30): service 'media.player'
died
06-17 20:02:43.556: INFO/ServiceManager(30): service 'media.camera'
died
06-17 20:02:43.556: WARN/MediaPlayer(25066): MediaPlayer server died!
06-17 20:02:43.556: ERROR/MediaPlayer(25066): error (100, 0)
06-17 20:02:43.556: WARN/System.err(25066): java.io.IOException:
Prepare failed.: status=0x64
06-17 20:02:43.556: WARN/System.err(25066):     at
android.media.MediaPlayer.prepare(Native Method)
06-17 20:02:43.566: WARN/System.err(25066):     at
com.Test.AudioStream.Play(AudioStream.java:138)
06-17 20:02:43.566: WARN/System.err(25066):     at
com.Test.AudioStream.Play(AudioStream.java:151)
06-17 20:02:43.566: WARN/System.err(25066):     at com.Test.AudioTest
$3.run(AudioTest.java:27)
06-17 20:02:43.566: WARN/AudioSystem(55): AudioFlinger server died!

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

2. R.java generation location

Is it possible to specify where R.java will be generated to? Or will
it always be placed in gen/my.package.name.here, no matter what?
--~--~---------~--~----~------------~-------~--~----~

3. enabling Wi-Fi network

4. Is there any signal booster for android

5. How to force an activity to display the soft keyboard?

6. How to enable Google search by voice?

7. Capture Android's browser HTTP petitions.