alert 다이얼로그 띄우는 코드한번 살펴봐주세요 에러가납니다
디버깅시 alert.show() 에서 넘어가지를 않고 죽어버립니다
AlertDialog.Builder alt_bld;
alt_bld = new AlertDialog.Builder(mCtx);
alt_bld.setMessage("zip 파일압축을 푸시겠습니까 ?").setCancelable(
false).setPositiveButton("Yes",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// Action for 'Yes' Button
try {
JazZipUtils.unZipFile(nPath + mSelFilename, nPath );
} catch (Exception e) {
e.printStackTrace();
}
}
}).setNegativeButton("No",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// Action for 'NO' Button
dialog.cancel();
}
});
AlertDialog alert = alt_bld.create();
// Title for AlertDialog
alert.setTitle("압축풀기");
// Icon for AlertDialog
alert.setIcon(R.drawable.cast_ic_notification_on);
alert.show();