Я тестирую простое приветственное приложение, и оно не запускается на эмуляторе. Там нет ошибок, а консоль это:Android-приложение не запускается на эмуляторе
[2010-11-16 21:26:06 - Hello World] ------------------------------
[2010-11-16 21:26:06 - Hello World] Android Launch!
[2010-11-16 21:26:06 - Hello World] adb is running normally.
[2010-11-16 21:26:06 - Hello World] Performing com.hello.HelloWorld.HelloWorld activity launch
[2010-11-16 21:26:09 - Hello World] Launching a new emulator with Virtual Device 'VirtualDevice2.2'
запуска эмулятора и появится экран с замком и мое приложение не запускается.
Пытался разблокировать и пойти в пусковую установку, чтобы найти мое приложение, и его там нет.
Кто-нибудь может помочь мне в этом?
Спасибо.
Код:
package com.hello.HelloWorld;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloWorld extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// We want to view some very simple text, so we need a TextView
TextView tv = new TextView(this);
// Put some text to the newly created TextVIew
tv.setText("Hello Android");
// Tell our App to display the textView
this.setContentView(tv);
}
}
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0" package="com.hello.HelloWorld">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".HelloWorld"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8" />
</manifest>
Звучит как проблема манифеста. Разве это сообщение? – phobos51594
Xml version = "1.0" encoding = "utf-8"?> <фильтр-замысел> aim-filter> application> –
JEagle
Вы можете пометить манифест (конечно, любой xml), нажав ctrl + k, разместив вопрос, чтобы не показывать пустым. –