If I launch activity from service have a 5 seconds delay to start. Delay is not black or write screen. Simply not start.
Intent i = new Intent(ServiceClass.getServiceContext(), KioskActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
ServiceClass.getServiceContext().startActivity(i);
If I launch same activity from other activity, delay is 0,5 - 1 seconds. In this case I launch activity wich no Flag, from service I use FLAG_ACTIVITY_NEW_TASK.
The process in OnCreate (computational cost) of launched activity is the same if is launched from service or from other activity.
Why it takes much longer launch from the service?
Extra info:
If I launch activity from service when any other activity of app is opened activity open above in 0.5 seconds delay, if I launch activity from service when is NOT other activity opened delay is 5 seconds.