I was wondering if it is possible to start Acitivty from service running in background and then move MainActivity to background. I don't want to finish() MainActivity. Just hide it.
Intent it=new Intent(context, NewPopupRecognizer.class);
it.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(it);
I tried this code but it is always starting Activity with delay.
I want to create popup Activity which i can turn on/off with floating button. I used to use WindowManger but it was very problematic so I decided to try doing it with Activity.
The popup should be like: Facebook Messenger or Google Assistant.