I am new in Android technologies and creating an app in which i have to give various scheduling options like (Daily ,Weekly and Monthly). I have done with daily and weekly but left with monthly. I have no idea how to do it please help
AlarmManger will have you covered for all of the above, but when dealing with long timespans you'll need to set up the alarms again after the phone is rebooted which is likely over the course of a month.
See the following
Android AlarmManager after reboot
Related
I want create app android run something in service and repeat after 1 hours but it based on the system clock, 01:00,02:00,.... So, What I have to do? AlarmManager? please help me. thanks all.
Yes, AlarmManager is a decent option. You may also look at JobScheduler as another option. For more details on the ins and outs of using AlarmManager, see this article.
I'm writing a reminder app for Android where users can create custom notifications that will appear at a time of the day that they specify. I realize that there is another similar question, but the only answer was to use the AlarmManager, which, according to the documentation, resets when the device is rebooted. I want the user to be able to set a notification to appear at a certain time on a certain date, meaning that it should retain the information through a reboot.
Ultimately though, the app needs to be notified that it needs to do something.
Eventually, I would also like to have the same behavior when the device reaches a certain location, if you have any thoughts on that. :)
Bear with me, I'm a bit of a novice programmer (I'm 17).
Thanks in advance.
The commentors are correct: you will need to use an AlarmManager to create your alarm and you will need a boot receiver to handle resetting your alarm after a reboot.
GeoLocation and GeoFences are pretty easy. I have an example app here: https://github.com/androidfu/GeofenceExample
You're not going to care about the mock location bits in that example unless you wish to test entering and exiting your target location, but the rest of the code should work for what you need.
Also, GeoFences do not persist a reboot either so it'll be good for you to get familiar with your on-boot receiver ;) You'll want to re-add your GeoFence after a reboot too.
I´m trying to create a new Notification that will appear when a day has come.
For example: Today is 8 of September of 2014 and i want create a notification for tomorrow.
It´s like when your calendar reminds you something that you put a month ago
Could someone tell me how can i create a notification like the calendar when i´m in a specific day?
Thank a lot.
EDIT
Thanks you for all the answers, i found a tutorial of AlarmManager and it worked as you all said.
Try using AlarmManager in android
The Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running. For normal timing operations (ticks, timeouts, etc) it is easier and much more efficient to use Handler.
please refer this
https://developer.android.com/training/scheduling/alarms.html
I'm experimenting with Android and would like to make an app that sends predefined texts to certain people at future intervals. Basically, initiating conversations with relatives every month or so, so they think I like them.
How do you register an activity or app to fire in the future? I'd like to be able to change up the greeting, so that the relatives don't catch on.
Thanks for your help!
You can use AlarmManager to trigger your app in the future. Here's a tutorial on how to use it: Scheduling Repeating Alarms
I have an app which is loading upcoming dates (like Birthdays) from an SQLite database
and showing it on a ListView. That works fine.
What I now want is to inform the user regular by an Alarm or Toast or something without
starting the application. The user has the only option when to inform: on the same day or 1 day before and the time!
Has someone an idea how to realize this? Maybe a Service or a Timer, or both?
I would be very pleased about some tips.
Take a look onto AlarmManager. Also note that the service doesn't persist alarms between sessions so you'll need to re-setup them after device boot. Another option may be using Google calendar API to create birthday events, notification will be handled by Google calendar app then.