예제 #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();
 }
예제 #2
0
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   if (item.getItemId() == android.R.id.home) {
     super.onBackPressed();
     return true;
   }
   return super.onOptionsItemSelected(item);
 }
예제 #3
0
파일: Settings.java 프로젝트: saetre/TABuss
 @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();
 }
예제 #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();
 }
예제 #5
0
 @Override
 public void onBackPressed() {
   setResult(RESULT_OK);
   super.onBackPressed();
 }
 @Override
 public void onBackPressed() {
   super.onBackPressed();
   finish();
 }
예제 #7
0
파일: Settings.java 프로젝트: v1kko/Musica
 public void onBackPressed() {
   Musica.callback.be = new Backend(Musica.cxt);
   Musica.callback.be.getcurrentsongs();
   super.onBackPressed();
 }