for example my App have 3 activity main Activity A,and other B ,C,so i want to know if i can know B or C Activity is running,i know how to check Main Activity开发者_高级运维 A using PackageManager. thank you
you can use ActivityManager to get information about running activities.
We can use Toast.maketext to know the Activity B or C is started or not
精彩评论