Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android how to get current activity

ActivityManager am = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE);
ComponentName cn = am.getRunningTasks(1).get(0).topActivity;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #current #activity
ADD COMMENT
Topic
Name
7+7 =