Running a transition at a specific time in Android?
Hi guys i made transition
for imageview
and i want to reproduce it when the time on android phone is for example 10:00 then how can i do this? this is? I tried to do it with help AlarmManager
, but it's useless! This doesn't do the job, can it be done? Thanks in advance!
+3
Ajinkya more
source
to share
1 answer
Inside the onRecieve method , enter the following:
Intent scheduledIntent = new Intent(context, YourScheduledActivity.class);
scheduledIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(scheduledIntent);
And inside the onCreate method for YourScheduledActivity, we make a transition.
+2
Nabin
source
to share