Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 2.96 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. RESOLVED - Why isn't the AVD launching my Android App?
  2. package com.mytest.helloworld;
  3.  
  4. import android.os.Bundle;
  5. import android.app.Activity;
  6. import android.view.Menu;
  7.  
  8. public class MainActivity extends Activity {
  9.  
  10.     @Override
  11.     public void onCreate(Bundle savedInstanceState) {
  12.         super.onCreate(savedInstanceState);
  13.         setContentView(R.layout.activity_main);
  14.     }
  15.  
  16.     @Override
  17.     public boolean onCreateOptionsMenu(Menu menu) {
  18.         getMenuInflater().inflate(R.menu.activity_main, menu);
  19.         return true;
  20.     }
  21. }
  22.        
  23. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  24.     package="com.mytest.helloworld"
  25.     android:versionCode="1"
  26.     android:versionName="1.0" >
  27.  
  28.     <uses-sdk
  29.         android:minSdkVersion="10"
  30.         android:targetSdkVersion="15" />
  31.  
  32.     <application
  33.         android:icon="@drawable/ic_launcher"
  34.         android:label="@string/app_name"
  35.         android:theme="@style/AppTheme" >
  36.         <activity
  37.             android:name=".MainActivity"
  38.             android:label="@string/title_activity_main" >
  39.             <intent-filter>
  40.                 <action android:name="android.intent.action.MAIN" />
  41.  
  42.                 <category android:name="android.intent.category.LAUNCHER" />
  43.             </intent-filter>
  44.         </activity>
  45.     </application>
  46.  
  47. </manifest>
  48.        
  49. [2012-07-22 02:11:22 - HelloWorld] ------------------------------
  50. [2012-07-22 02:11:22 - HelloWorld] Android Launch!
  51. [2012-07-22 02:11:22 - HelloWorld] adb is running normally.
  52. [2012-07-22 02:11:22 - HelloWorld] Performing com.mytest.helloworld.MainActivity activity launch
  53. [2012-07-22 02:11:22 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'Android_2.3.3'
  54. [2012-07-22 02:11:22 - HelloWorld] Launching a new emulator with Virtual Device 'Android_2.3.3'
  55.        
  56. [2012-07-21 15:51:57 - HelloWorld] ------------------------------
  57. [2012-07-21 15:51:57 - HelloWorld] Android Launch!
  58. [2012-07-21 15:51:57 - HelloWorld] adb is running normally.
  59. [2012-07-21 15:51:57 - HelloWorld] Performing com.mytest.helloworld.MainActivity activity launch
  60. [2012-07-21 15:51:57 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'Android_2.3.3'
  61. [2012-07-21 15:51:57 - HelloWorld] Launching a new emulator with Virtual Device 'Android_2.3.3'
  62. [2012-07-21 15:51:58 - HelloWorld] New emulator found: emulator-5554
  63. [2012-07-21 15:51:58 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
  64. [2012-07-21 15:52:06 - HelloWorld] HOME is up on device 'emulator-5554'
  65. [2012-07-21 15:52:06 - HelloWorld] Uploading HelloWorld.apk onto device 'emulator-5554'
  66. [2012-07-21 15:52:08 - HelloWorld] Installing HelloWorld.apk...
  67. [2012-07-21 15:52:12 - HelloWorld] Success!
  68. [2012-07-21 15:52:12 - HelloWorld] Starting activity com.mytest.helloworld.MainActivity on device emulator-5554
  69. [2012-07-21 15:52:13 - HelloWorld] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.mytest.helloworld/.MainActivity }