/** * 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(); }
@Override public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() == android.R.id.home) { super.onBackPressed(); return true; } return super.onOptionsItemSelected(item); }
@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(); }
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(); }
public void onBackPressed() { Musica.callback.be = new Backend(Musica.cxt); Musica.callback.be.getcurrentsongs(); super.onBackPressed(); }