I am making an app that has 2 activities a service and an alarm.
How can I find the "current activity" from the service or the alarm ?
A) IE replace
Intent notificationIntent = new Intent(this, RatActivity.class);
with
Intent notificationIntent = new Intent(this, "CurrenActivity.class");
B) If an activity is visible tell it to look at a database if not visible put up a notification.
I have looked around quite a bit (including docs) and I still can't figure out.
Any help is appreciated.