I am using AlarmManager()
to fire notification and repeat it at every 24 hours.
My code is on onCreate()
in Splash Activity which fires fi
Here is pseudocode :
You have to write this code inside your Splash.java
Step 1 : Is_Alarm_Set();
[Boolean]
Step 2 : false
[step 3]
Step 2 : true
[step 8] (No need to set)
Step 3 : Get_Time()
[User's Current Mobile Time]
Step 4 : Find_Time_Difference()
[This function will find difference between user's mobile time and your Fix Time (8AM).]
Step 5 : Now set your alarm as per time difference.[i.e current time is 7 pm and date is 1-june then set alarm of 8 AM for next day.]
Step 6 : Set your repetition days setRepeating()
Step 7 : It will fire alarm as per your fix time 8 AM.
Step 8 : Switch Your Activity.