Search code examples
javaandroidhttpandroid-networking

PopUp-Window as background task Android Application


i've a question for a feature, i want to implement. I know some applications, like whatsapp, gmail or others, which run in background and notify the user, if something is received...

i'd like to do the same with my application. i've a http-network-connection and want to notify the user, even if he hasn't the application started. is something like this possible?

Is it possible, that a PopUp-Window, like receiving a sms, appears? (if not, the notify-way in a titlebar is enough)

i've no idea, what i should google or where i can find help

Thank you a lot!

Edit: I found another very cool framework which deals with notifications. Have a loot at: https://www.parse.com/tutorials/android-push-notifications


Solution

  • You should take a look into Services. You can have the http connection listening in it. For the notification I'd use the NotificationManager class. A notification is much more less intrusive than a pop-up.

    Hope that helps