android - How to display a Dialog from a Service -
i have read lot of posts topic, nothing works me (or doesn't have effect wish).
i have application, after logging in starts background service (implementation of service class). service syncs server , if new order comes, creates notification.
so far, works great, have notification , toast message. however, have dialog, notifies user new order.
as understood, can start activity within service, displays dialog. works, activity starts on top of current activity stack , displays dialog. have activity no view attached , correctly displays dialog, however, on black background.
what want display dialog on current activity, causing actual background(the running activity) fade , display dialog.
is somehow possible?
thank you, filip
i highly, highly, highly recommend don't (it goes against android design , ui guidelines). notifications preferred way accomplish doing (which sounds if have accomplished).
that being said, if must it, recommend using dialog themed activity. way don't have start separate dialog. please see http://developer.android.com/guide/topics/ui/themes.html#applyatheme how this.
Comments
Post a Comment