Reputation: 3391
I'm working on a view at Android 3.0, and in that specific scenario I don't have an access to the activity.
I need to display a dialog on the screen but I cannot use showDialog()
since I don't have access to the Activity methods. But I do have access to the context which might help.
Does anybody has an idea how to display a dialog without using the showDialog()
method?
I need it also to be shown at a specific (x,y) point.
Upvotes: 1
Views: 981
Reputation: 2341
How about creating an AlertDialog
passing that context in?
It shows you a standard modal message box ...
http://developer.android.com/reference/android/app/AlertDialog.Builder.html
Upvotes: 1