Search code examples
androidandroid-emulatorsplash-screen

Android Splash Screen


This following code results in this output, I cant see my text view. enter image description here
What should I do to see my text view?
It would leave this splash screen...
Thanks in advance.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="hello.agam"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="15" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".HelloAndroidActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <TextView xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/textview"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:text="@string/hello"/>
        </activity>

    </application>

</manifest>

I have also tried this:

 super.onCreate(savedInstanceState);
         TextView tv = new TextView(this);
         tv.setText("Hello, Android");
         setContentView(tv);

Solution

  • You need to wait for the emulator to boot up before your app will load. Depends how fast your computer is could be 2-5 minutes. Do not shut it down between deployments for faster testing.

    That is the Android bootup splash screen you are seeing while it loads. You will see a what looks like a normal android phone when complete.