admin 发表于 2015-12-16 20:46:17

sendBroadcastAsUser——Calling a method in the system process without a qua...

4.2中Android加入了多用户

改换这几种调用方式

public void startActivityAsUser(Intent intent, UserHandle user);
public void sendBroadcastAsUser(Intent intent, UserHandle user);
public ComponentName startServiceAsUser(Intent service, UserHandle user);
public boolean stopServiceAsUser(Intent service, UserHandle user);

UserHandle.ALL
UserHandle.CURRENT
UserHandle.CURRENT_OR_SELF

UserHandle.OWNER

来自:http://blog.csdn.net/jdsjlzx/article/details/38779355
页: [1]
查看完整版本: sendBroadcastAsUser——Calling a method in the system process without a qua...