I have Activity named whereActity which is having child dialogs as well.
now i want to display this activity is as a dialog for another activity..
how can i do that ??
I have Activity named whereActity which is having child dialogs as well.
now i want to display this activity is as a dialog for another activity..
how can i do that ??
to Start activity as dialog i defined
<activity android:theme="@android:style/Theme.Dialog">
now when i startActivity() it display like dialog and parent activity display on back, i wan a button to whom i click dialog should dismiss and parent activity should display without refreshing the page.
You could show a dialog:
Dialog dialog = new Dialog(this);
dialog.setTitle("Dialog Title");
dialog.setContentView(R.layout.main);
dialog.show();
However, I don't think this is what you're asking. This isn't the same question but it may be what you're looking for (look at the answer).
Android: How to close foreground activity from active activity?