自定义Notification UI:1,创建一个layout布局mynotification.xml2, RemoteViews remoteViews=new RemoteViews(this.getPackageName(), R.layout.mynotification);Notification.Builder 的setContent(remoteViews)方法 添加到Notification;ActivityManager activityManager=(ActivityManager) this.getSystemService(Context.ACTIVITY_SERVICE);int memoryClass=activityManager.getMemoryClass();getMemoryClass()方法获得Android应用程序进程能够使用的最大内存 Activity和Service间的通信方式(绑定,广播):1 Activity调用bindService (Intent service, ServiceConne