Click here to Skip to main content
15,860,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I want to build notification every hour by an android app.
the question is about how to make the app run in background?
and how to make notifications every hour?
Tnx in advance
Posted

You need to use AlarmManager and a service, see http://stackoverflow.com/questions/4459058/alarm-manager-example[^]

Hope this helps :)
 
Share this answer
 
Comments
Krunal Rohit 15-Mar-14 14:11pm    
Nope. !!

-KR
You might be interested in something called Services[^] or BroadcastReceiver[^] in Android for background work.

See this for scheduling the notifications :
http://papers.ch/android-schedule-a-notification/[^]
http://stackoverflow.com/questions/16870781/fire-notification-at-every-24-hours-and-at-exact-time-of-8-am[^]

-KR
 
Share this answer
 
Comments
BupeChombaDerrick 16-Mar-14 11:40am    
Still I see AlarmManager and Service in your answer :).
Krunal Rohit 17-Mar-14 2:49am    
That is the example about Broadcast !

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900