1

Android: execute method after returning to main activity from intent activity

view story
linux-howto

http://stackoverflow.com – I have seen many examples with startActivityForResult(Intent, int) and then using onActivityResult(int, int, Intent) but for me I dont need to pass anything, I simply want to startActivity(intent), and when intent activity returns, a method get called in main activity.. Any tutorial on doing this? EDIT: Here a sample code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_options); createEvent = (Button) findViewById(R.id.createEvent); createEvent.setOnClickListener(new View.OnClickListener() { @ (HowTos)