Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by kennethcowen2010

  1. Just making "a point of never hitting it" should never be an answer. This is programmer 101: Program hardware/system buttons FIRST! It is embarrassing to have these 2 problems at the same time. A. Back button exits the app B. Exiting the app = AUTODISCONNECT FROM AMP ! EDIT: If you can't assign a back button, the following script would take a programmer 5 minutes to implement and would prompt users with a dialogue box "are you sure you want to close...." : @Override public void onBackPressed() { new AlertDialog.Builder(this) .setIcon(android.R.drawable.ic_dialog_alert) .setTitle("Closing Activity") .setMessage("Are you sure you want to close this activity?") .setPositiveButton("Yes", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { finish(); } }) .setNegativeButton("No", null) .show(); }
  • Create New...