Binder 原理一

这篇文章非常棒,推荐 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

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);
              }

你可能感兴趣的:(Binder 原理一)