0
力接近我已經使用4個tabs.I要顯示所有活動的TabBar,所以我習慣叫這樣的活動,微調itemClick在顯示的Android
Intent intent=new Intent();
intent.setClass(DontAllow.this.getParent(),HomePage.class);
View view = getLocalActivityManager()
.startActivity("Review opportunities", intent
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();
setContentView(view);
我把這樣的活動, 1 activity-- >第二個活動(微調點擊) - >錯誤
Spinner country = (Spinner) findViewById(R.id.spinner1);
Spinner State = (Spinner) findViewById(R.id.spinner2);
ArrayAdapter Contries_array = new ArrayAdapter(DontAllow.this,android.R.layout.simple_spinner_item,Countries);
ArrayAdapter States_array = new ArrayAdapter(DontAllow.this,android.R.layout.simple_spinner_item,States);
Contries_array.setDropDownViewResource(
android.R.layout.simple_spinner_dropdown_item);
States_array.setDropDownViewResource(
android.R.layout.simple_spinner_dropdown_item);
country.setAdapter(Contries_array);
State.setAdapter(States_array);
請幫助我...如何克服這個問題。
把你的logcat? – 2012-02-27 12:13:43