I ve created android service which auto starts in boot.
- i have a full screen activity
- i need to open it when the service find the condition true.
as a example{
Service countdown a timer from 0. and make it ++ . when timer ==100 i wanna load my fullscreen GUI and make the timer again = 0 timer ++ and when timer ==10 dispose the old ui and again when it reachs 100 again the same process.
}
ive created service and ui. service working fine. but ui is not loading i ve used a toast to check the timer.
ive used below code from stackoverflow but not working
Intent i = new Intent();
i.setClass(this, MyActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);