Situation:
If your activities are on different tasks, you can use this to bring the activity's task to foreground:
ActivityManager activityManager = (ActivityManager) getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE);
activityManager.moveTaskToFront(getTaskId(), ActivityManager.MOVE_TASK_NO_USER_ACTION);
You would need android.permission.REORDER_TASKS
in order to do so. It works even in Android M, however getting an intent from a service works better in some cases.