コード例 #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
ファイル: Settings.java プロジェクト: chenlai/p2pconference
 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();
 }
コード例 #6
0
 @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();
 }