1
朋友們,我在我的應用中使用了一個alertbox。讓AlertBox停留更長時間
public static void Alertbox(String title, String mymessage,Context context) {
new AlertDialog.Builder(context)
.setMessage(mymessage)
.setCancelable(true)
.setNeutralButton(android.R.string.ok,new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog,int whichButton) {
}
}).show();
}
public static void ProcessDialogue(String title,Context context)
{
}
我成功地實現這個代碼,但問題是,我在下面的方式
Response.Alertbox(" ", "Thank You",this);
Intent intent=new Intent(this,Tabs.class);
startActivity(intent);
問題是alertbox顯示爲一個很小的時間。很多-A-使用它有時發生Tabs活動被調用&警告框消息也無法讀取。請以這樣的方式來幫助我,直到沒有按下alertbox上的確認,它不能導航到下一個活動。