Answers for "android how to get current activity"

0

android how to get current activity

ActivityManager am = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE);
ComponentName cn = am.getRunningTasks(1).get(0).topActivity;
Posted by: Guest on April-25-2020

Code answers related to "android how to get current activity"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language