Calling a method in the system process without a qualified user

来源:互联网 发布:淘宝店全屏自定义代码 编辑:程序博客网 时间:2024/06/09 17:35
转:http://spirals.iteye.com/blog/1895621

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 
阅读全文
0 0
原创粉丝点击