You probably need to implement a Service
to receive message on background when your Activity is onPause.
Here's the Reference -- Service
Вопрос
I am making an Android APP that connect to my server (VB6), everything is working perfect, but I have a small problem I want the APP stay able to receive data even when the Activity_pause occure I notice that the APP will receive the data when the user resume the application
its something like viber, the program is able to receive events even when the UI is not loaded how :?
Решение
You probably need to implement a Service
to receive message on background when your Activity is onPause.
Here's the Reference -- Service