Ce code suivant résulte dans cette sortie, je ne peux pas voir mon affichage de texte.
Que dois-je faire pour voir mon affichage de texte?
Il laisserait cet écran de démarrage ...
Merci d'avance.Android Splash Screen
<?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>
J'ai aussi essayé:
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
quoi ...? Je suis confus, qu'est-ce que vous demandez. – JoxTraex
Est-ce la première fois que vous exécutez une application Android sur l'émulateur? Pouvez-vous exécuter avec succès l'un des exemples d'applications Android sur l'émulateur, comme le bloc-notes? –