How can I call another activity from one (the current) activity? I want to call an activity which contains a dialog message box from my current activity.Answer1:
Simply put your message in bundle and pass it to intent. On Next Activity's onCreate function extract the bundle and show.
Bundle b = new Bundle(); b.putString("message","your message"); Intent i = new Intent(this,NextActivity.class); i.putExtras(b); startActivity(i);
In next Activity's onCreate:
String message = (String) getIntent().getSerializableExtra("message");
show the message now....Answer2: