在我mainactivity我有按鈕女巫讓我oppen另一個活動,theese裏面,我有更多的按鈕,打開更多的活動......如何關閉我之前訪問過的活動,並跳轉到主要活動?
問題是這樣的:
當我,讓我們比如說在第三個子級別的活動中,我添加了一個menu_button,允許我返回mainActivity。但是當我點擊它時,Main會打開,但它顯然不會關閉其他的。我怎樣才能做到這一點?
這是使跳當前代碼塊:
case Resource.Id.home:
Intent intent = new Intent (this, typeof(MainActivity));
this.StartActivity(intent);
return true;
等,它工作得很好。非常感謝! –
@RuiEmanuelQuaresma:完美。高興地幫助:) – Rohit5k2
你能投我嗎?謝謝 –