Danny
Danny

Reputation: 25

Can i create message box which will be seen/popup on current screen/home screen in Android?

i want to create message box which must be seen on current screen(Ex i am playing song or creating message on that screen also that message must got pop-up/seen)like notification.. so.please help me to achieve this.....

Thanks in Advance--

Upvotes: 0

Views: 510

Answers (2)

football
football

Reputation: 308

I agree that a normal android notification would be better. IF you do want to do this though, take a look at the "Creating a Custom Dialog" section here: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog

Upvotes: 0

Quintin Robinson
Quintin Robinson

Reputation: 82335

You can use a Toast to accomplish what you wish, it will be visible over the activity/screen and can be styled with a custom layout.

You may also want to read the Android Developer documentation on Notifying the User for other alternatives & common methods of notification on Android.

Upvotes: 1

Related Questions