0

I ve created android service which auto starts in boot.

  1. i have a full screen activity
  2. 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);

source:How to start an Activity from a Service?

Community
  • 1
  • 1

0 Answers0