Android Question How to create a thread for notifications.

joaquinortiz

Active Member
Licensed User
Longtime User
Hello fellows!.

It's possible to create a thread that search in background mode (obviously) connecting to a webservices and look for notifications messages in a database, meanwhile, the user is typing data in the app in some activity, and then, the thread popup a notification to the user?

IF so, how can I do it, and if there's an example on how doing this thread.

Thanks in advance!.

Greetings!
 

JohnC

Expert
Licensed User
Longtime User
Just using a normal HTTP Job will work in the background and return the results asynchronously and you can display the pop-up whenever you want.

 
Upvote 0

joaquinortiz

Active Member
Licensed User
Longtime User
Thanks John!!!.

Do you think, that this utility (okhttpUtils2) affect the performance of my app? For instance, that could be a risk that my app got freeze or something else?
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
It should not.
 
Upvote 0
Top