Activity killed at startup

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Activity killed at startup

Postby borgtamer » Fri Sep 19, 2008 6:28 am

I am running a program with a single activity using the Eclipse Android plugin. When I run the program I get the following output. I would appreciate any help you can give me as this is my first Android project. Thanks in advance.

[2008-09-19 00:15:36 - PersonalGiftRegistry] Android Launch!
[2008-09-19 00:15:36 - PersonalGiftRegistry] adb is running normally.
[2008-09-19 00:15:36 - PersonalGiftRegistry] Launching: com.dvorakconsulting.PersonalGiftRegistry.TargetClient.HomeView
[2008-09-19 00:15:36 - PersonalGiftRegistry] Automatic Target Mode: using existing emulator: emulator-5554
[2008-09-19 00:15:36 - PersonalGiftRegistry] Uploading PersonalGiftRegistry.apk onto device 'emulator-5554'
[2008-09-19 00:15:37 - PersonalGiftRegistry] Installing PersonalGiftRegistry.apk...
[2008-09-19 00:15:38 - PersonalGiftRegistry] Application already exists. Attempting to re-install instead...
[2008-09-19 00:15:40 - PersonalGiftRegistry] Success!
[2008-09-19 00:15:41 - PersonalGiftRegistry] Starting activity com.dvorakconsulting.PersonalGiftRegistry.TargetClient.HomeView on device
[2008-09-19 00:15:42 - PersonalGiftRegistry] ActivityManager: Starting: Intent { comp={com.dvorakconsulting.PersonalGiftRegistry.TargetClient/com.dvorakconsulting.PersonalGiftRegistry.TargetClient.HomeView} }
[2008-09-19 00:15:43 - PersonalGiftRegistry] ActivityManager: [1] Killed am start -n com....
borgtamer
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Sep 19, 2008 6:22 am

Top

Postby inspectorgadjet » Fri Sep 19, 2008 9:26 am

i had a wrong intent-filter tag in my androidmanifest.xml file.

to get the application running, i had to change the intent-filter inside the activity-tag to:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <activity android:name="YourApp" android:label="@string/app_name">
  3.  
  4.  <intent-filter>
  5.  
  6.    <action android:name="android.intent.action.MAIN"/>
  7.  
  8.    <category android:name="android.intent.category.LAUNCHER"/>
  9.  
  10.  </intent-filter>
  11.  
  12. </activity>
  13.  
  14.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
inspectorgadjet
Freshman
Freshman
 
Posts: 2
Joined: Sat Aug 16, 2008 12:56 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 6 guests