title: Android App Won't Display in Emulator
body: <p>Firstly, I want to state that I'm a novice when it comes to Android (or Java, for that matter) so there is certainly a strong possibility I'm doing something wrong at a very basic level - please keep this in mind.</p>
  
  <p>I will include basically the whole source as I have no idea where the problem is based (and before anyone suggests I try using Google, I've already spent the last couple of days doing that).</p>
  
  <p>The problem occurs when I try to run or debug the app where I receive the following error message:</p>
  
  <pre><code>eclipse.buildId=M20100909-0800
  java.version=1.6.0_24
  java.vendor=Sun Microsystems Inc.
  BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_NZ
  Framework arguments:  -product org.eclipse.epp.package.java.product
  Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product
  
  
  Error
  Fri Feb 25 15:52:44 CET 2011
  No command output when running: 'am start -n com.company.android.app/com.company.android.app.Home -a android.intent.action.MAIN -c android.intent.category.LAUNCHER' on device emulator-5554
  
  com.android.ddmlib.ShellCommandUnresponsiveException
  at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
  at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
  at com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(Unknown Source)
  at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(Unknown Source)
  at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleLaunch(Unknown Source)
  at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.access$3(Unknown Source)
  at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController$3.run(Unknown Source)
  </code></pre>
  
  <p>The app is a very basic thing. It has a single Activity with the following XML code in the view:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/helloAndroid" 
      android:text="" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
  /&gt;
  </code></pre>
  
  <p>And the following code in the Activity's *.java:</p>
  
  <pre><code>package com.company.android.app;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.util.Log;
  import android.webkit.WebView;
  import android.widget.TextView;
  
  public class Home extends Activity {
  
      TextView helloWorld;
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          helloWorld = ( TextView ) findViewById( R.id.helloAndroid );
          helloWorld.setText( "Hello Android!" );
      }
  }
  </code></pre>
  
  <p>And finally, in my AndroidManifest.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.company.android.app"
        android:versionCode="1"
        android:versionName="1.0"&gt;
      &lt;uses-sdk android:minSdkVersion="7" /&gt;
  
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
          &lt;activity android:name=".Home"
                    android:label="@string/app_name"
                    android:theme="@android:style/Theme.NoTitleBar"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
      &lt;/application&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>When I run or debug the app I see the following in the console:</p>
  
  <pre><code>[2011-02-25 16:22:52 - com.company.android.app] adb is running normally.
  [2011-02-25 16:22:52 - com.company.android.app] Performing com.company.android.app.Home activity launch
  [2011-02-25 16:22:52 - com.company.android.app] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Android-2.3.3'
  [2011-02-25 16:22:57 - com.company.android.app] Uploading com.company.android.app.apk onto device 'emulator-5554'
  [2011-02-25 16:23:00 - com.company.android.app] Installing com.company.android.app.apk...
  [2011-02-25 16:23:22 - com.company.android.app] Success!
  [2011-02-25 16:23:23 - com.company.android.app] Starting activity com.company.android.app.Home on device emulator-5554
  </code></pre>
  
  <p>A little additional info:</p>
  
  <ul>
  <li>The emulator opens and runs - but never gets beyond the Android splash image nor can I interact via the buttons (i.e. 'Home' does nothing).</li>
  <li>The app is targeted to Android 2.1-update1.</li>
  </ul>
  
  <p>I can't think of anything else to include.</p>
  
  <p>Any ideas what might be causing this problem?</p>
  
  <p>Many thanks in advance.
  Zac</p>