开发者

check the activity run

开发者 https://www.devze.com 2023-02-14 14:36 出处:网络
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 checkMain Activity开发者_高级运维 A using PackageManager. tha

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

0

精彩评论

暂无评论...
验证码 换一张
取 消