merging r9039-9040,9044 from trunk (warnings and message in Java)

This commit is contained in:
Andrey Pavlenko
2012-07-15 13:20:38 +00:00
parent fb3d6ecb98
commit 9f4c5afbbb
10 changed files with 143 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ public class Sample0Base extends Activity {
AlertDialog ad = new AlertDialog.Builder(this).create();
ad.setCancelable(false); // This blocks the 'BACK' button
ad.setMessage("Fatal error: can't open camera!");
ad.setButton("OK", new DialogInterface.OnClickListener() {
ad.setButton(AlertDialog.BUTTON_POSITIVE, "OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
finish();