@Override protected void onDestroy() { Intent intent = new Intent(this, MessageService.class); stopService(intent); super.onDestroy(); // 清楚广告资源 AppConnect.getInstance(this).close(); }