AMS,WMS,PMS
2024-11-04 本文已影响0人
Owen270
public static final String WINDOW_SERVICE = "window";
public static final String ACTIVITY_SERVICE = "activity";
AMS:ServiceManager.addService(Context.ACTIVITY_SERVICE, this, true);
WMS: ServiceManager.addService(Context.WINDOW_SERVICE, wm);
PMS:ServiceManager.addService("package", m);
ServiceManager.getService("window"));