0
我有兩個項目有類似的啓動畫面和菜單活動,但是包名稱不同。當我運行我的最新項目時,它將從另一個項目中拉取其他菜單活動。這是我在命名一些東西時弄錯了什麼嗎?我檢查了我的清單,一切看起來都是正確的。任何人都有過這種情況? 清單:android項目在eclipse中互相拉動
<activity
android:name=".Splash"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Menu"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Activity:
package com.****.tools;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class Splash extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
Thread timer = new Thread(){
public void run(){
try{
sleep(3000);
}catch (InterruptedException e){
e.printStackTrace();
}finally{
Intent openMainMenu = new Intent("com.*****.MENU");
startActivity(openMainMenu);
}
}
};
timer.start();
}
}
package com.****.tools
import android.app.Activity;
import android.os.Bundle;
public class Menu extends Activity{
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.menu);
}
}
請問您可以發佈您的清單文件,或者至少是' .. '線?如果可能的話,你的「最新項目」活動課 –
jmishra
@ ladiesMan217我加了他們。 – Intelwalk