PDA

View Full Version : [Android] Lanciare un activity che mostri solo un'AlertDialog


oNaSsIs
28-04-2013, 19:23
Ciao, ho un problema. Ho implementato un Servizio, che con l'aiuto di un Receiver riesce a catturare un determinato evento. Ora il problema č che al presentarsi di tale evento vorrei mostrare all'utente un'AlertDialog che lo avvisi. So che non posso mostrare un'AlertDialog all'interno di un Receiver quindi devo lanciare un'Activity che si limiti a mostrare solo l'alert sovrapposto all'applicazione che in quel momento l'utente sta utilizzando, in modo tale che una volta premuto OK l'utente possa continuare il suo lavoro. Qualcuno mi puņ dare qualche dritta su come realizzare questa Activity?

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.