views:

1681

answers:

2

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 ??

alt text

+3  A: 

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.

Faisal khan
+2  A: 

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?

Ally
defenitely first solution is not desired one. bu second one is simply calling finish() @ dialog. i will check this.
Faisal khan