Activity a = //get activity from activity stack
ActivityManager am = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); ComponentName cn = am.getRunningTasks(1).get(0).topActivity;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)