Example #1
0
 /**
  * When the back button is pressed, update the MidiOptions. Return the updated options as the
  * 'result' of this Activity.
  */
 @Override
 public void onBackPressed() {
   Intent intent = new Intent();
   updateOptions();
   intent.putExtra(SettingsActivity.settingsID, options);
   setResult(Activity.RESULT_OK, intent);
   super.onBackPressed();
 }
Example #2
0
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   if (item.getItemId() == android.R.id.home) {
     super.onBackPressed();
     return true;
   }
   return super.onOptionsItemSelected(item);
 }
Example #3
0
 @Override
 public void onBackPressed() {
   System.out.println("BACKPRESSED");
   Intent intent = new Intent(context, Homescreen.class);
   intent.putExtra("num1", numStops);
   intent.putExtra("num2", numStopsOnMap);
   intent.putExtra("num3", radius);
   intent.putExtra("Orakelvalg", fancyOracle);
   setResult(Activity.RESULT_OK, intent);
   super.onBackPressed();
 }
Example #4
0
 public void onBackPressed() {
   /*Intent intent = new Intent();
   intent.setClassName("com.p2p.app","com.p2p.app.P2PConferenceApp");
   try {
   	startActivity(intent);
   }
   catch(Exception e) {
   	Log.d(TAG,"Not able to start application");
   	e.printStackTrace();
   }*/
   super.onBackPressed();
   // finish();
 }
 @Override
 public void onBackPressed() {
   setResult(RESULT_OK);
   super.onBackPressed();
 }
 @Override
 public void onBackPressed() {
   super.onBackPressed();
   finish();
 }
Example #7
0
 public void onBackPressed() {
   Musica.callback.be = new Backend(Musica.cxt);
   Musica.callback.be.getcurrentsongs();
   super.onBackPressed();
 }