[問題] 關於dialog
想要請問各位高手
android 的 library 當中
有類似初次使用才會顯示出的 dialog 嗎?
就像是一個程式的使用說明一般
只會在第一次使用這個APP的時候才會顯示
之後再打開此APP都不會再顯示出來了
找了很久沒有找到....
謝謝各位高手 ^^
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.118.206.169
→
09/20 19:08, , 1F
09/20 19:08, 1F
所以不是要用特定的函式囉?
我以為要CALL函式 那我再試看看
謝謝L大 哈哈 讓你見笑了XDD
※ 編輯: rockerwind 來自: 140.118.206.169 (09/20 19:14)
推
09/20 20:31, , 2F
09/20 20:31, 2F
那可以再請問一個問題
private void openOptionsDialog(){
AlertDialog.Builder dialog = new AlertDialog.Builder(menu.this);
dialog.setTitle("寵物照顧系統");
dialog.setMessage("請輸入寵物的名字" );
dialog.setPositiveButton("OK",new DialogInterface.OnClickListener(){
public void onClick(
DialogInterface dialoginterface, int i){
}
});
if (petname.equals(null)){
dialog.show();
}
}
code 如上
為什麼我加上了 if () 這個指令後 就錯誤了呢?
謝謝 !!!
※ 編輯: rockerwind 來自: 140.118.206.169 (09/20 20:41)
→
09/20 20:52, , 3F
09/20 20:52, 3F
→
09/20 20:54, , 4F
09/20 20:54, 4F
→
09/21 20:48, , 5F
09/21 20:48, 5F
→
09/22 13:37, , 6F
09/22 13:37, 6F
→
09/22 13:40, , 7F
09/22 13:40, 7F