The more I read, more confuse I get. I’m trying to make one simple program where the phone vibrates every minute and updates a text field.
My application runs fine when display is on and as it should, stops working when display is off.
First I thought I should use Service, but then there is this class called AlarmManager and also TimerTask and Timer.
What is the best class/method to use so that my apps makes my phone vibrate every minute?
Not sure if you want this to be done when the app (activity) is opened. If this is the case you can create a thread that sleeps for one minute (not to block the UI thread) and then vibrates. If you want to do this in the background then I suggest you use a Service.
I hope this helps.