Binder 原理一
2019-08-27 本文已影响0人
fsdffdaga
这篇文章非常棒,推荐 http://www.uml.org.cn/mobiledev/201608013.asp
http://www.uml.org.cn/mobiledev/mobdev-android.asp
http://www.uml.org.cn/mobiledev/202011182.asp
image
image
image
- INotificationManager iNotificationManager = INotificationManager.Stub.asInterface(ServiceManager.getService(Context.NOTIFICATION_SERVICE));
- NotificationManager nManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
protected IActivityTaskManager create() { final IBinder b = ServiceManager.getService(Context.ACTIVITY_TASK_SERVICE); return IActivityTaskManager.Stub.asInterface(b); }