I’m trying to create a background service that every “X” minutes consult a webservice and if response “ok” generate a Notification on the notification Bar
I’m not sure if is a android service o Broadcast receiver the thing that I need
Thank anyways
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please, don’t pull a page from web-service every X minutes — this drains battery a lot, use Google Cloud Messaging (former C2DM — Cloud To Device Messaging) instead to get your information updates — it’s very lightweight and very efficient and shares one existing data connection for all applications.