2012-01-22 31 views
0

次のコードではこの出力結果が表示されますが、テキスト表示は表示されません。 enter image description here
テキストビューを表示するにはどうすればよいですか?
このスプラッシュ画面は残っています...
ありがとうございます。Androidのスプラッシュ画面

<?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> 

また、私はこれを試してみました:

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

what ...?私は混乱しています、あなたは何を求めていますか? – JoxTraex

+0

エミュレータでAndroidアプリを初めて実行するのですか?メモ帳のように、Androidサンプルアプリケーションの1つをエミュレータで正常に実行できますか? –

答えて

6

あなたは、あなたのアプリがロードされる前に起動するエミュレータを待つ必要があります。コンピュータがどれくらい速く2〜5分かかるかによって異なります。迅速なテストのために、展開の間にシャットダウンしないでください。

これは、ロード中に表示されるAndroidの起動時のスプラッシュ画面です。完了したら通常のAndroid携帯のように見えます。

+1

AVDマネージャーのAVDのスナップショットを有効にし、起動ダイアログで「スナップショットから起動する」と「スナップショットから保存する」を有効にすることで、エミュレーターの起動を大幅にスピードアップすることもできます( AVDマネージャの「開始」ボタン)。 –

関連する問題