There might be a better way, but this is how I do it:

- assign an ID to the root layout of your activity, and set it to
invisible
- do showDialog in the onCreate method of your activity
- in onDismissDialog of your activity, do rootLayout.setVisibility
(View.VISIBLE)

You get a black screen behind the dialog though. Guess you could
fiddle with
your activity background (e.g. transparent) to avoid this.

Lee

On Sep 24, 10:33 am, Abdul Mateen <[email protected]> wrote:
> Hi,
> I want to display Dialog Box when the application is launched before loading
> and launching the activity.
>
> or you can say I want to show the dialog on launcher after the launch of my
> application.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to