var main = plus.android.runtimeMainActivity();
var activityManager = main.getSystemService(main.ACTIVITY_SERVICE);
plus.android.importClass(activityManager);
alert(activityManager.getRunningTasks(1))
这样会报错,
Uncaught getRunningTasks; java.lang.reflect.InvocationTargetException
1 个回复
黄智勇 (作者)
知道了,要加上这个权限才不会报错