为什么我无法在avd应用程序菜单中看到我的应用程序?
问题描述:
我的应用程序成功安装在我的AVD,我可以证实它是由看到它在应用程序管理器安装,但我永远不能访问它,因为我无法看到它的应用程序菜单为什么我无法在avd应用程序菜单中看到我的应用程序?
在控制台中我总是得到消息
[2011-12-27 10:39:28 - WhosurSensei] No Launcher activity found!
[2011-12-27 10:39:28 - WhosurSensei]此次发布只会同步设备上的 应用程序包!
我开放Java页面
package com.thepackage.WhosurSensei;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class WhosurSenseiActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button Button1 = (Button) findViewById(R.id.firstpagebutton);
Button1.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
startActivity(new Intent(WhosurSenseiActivity.this, MainMenu.class));
}
});
}
@Override
protected void onPause() {
super.onPause();
}
}
我androidmanifest页
<uses-sdk android:minSdkVersion="8" />
<application
android:icon="@drawable/splash"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".WhosurSenseiActivity" >
<intent-filter >
<action android:name="com.thepackage.WhosurSensei.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:label="@string/app_name"
android:name=".MainMenu" >
</activity>
</application>
</manifest>
答
显然,我正在读教程告诉我错了,我需要这样的清单:
<action android:name="android.intent.action.MAIN" />