예제 #1
0
 public static void checkViewDataUpdate() {
   /*CacheManager cacheManager = CacheManager.getInstance();
   if (cacheManager != null) {
   	cacheManager.checkViewDataUpdate();
   }*/
   GoStoreCacheManager cacheManager = GoStoreCacheManager.getInstance();
   if (cacheManager != null) {
     cacheManager.checkViewDataUpdate();
   }
 }
예제 #2
0
 private void init() {
   if (mContext != null) {
     // 构建数据请求工具
     SimpleHttpAdapter.build(mContext);
     // 设置网络请求的最大并发数量
     SimpleHttpAdapter.getInstance().setMaxConnectThreadNum(8);
     // 渠道开关 判断
     if (!IS_CHANNEL_SHUTDOWN) {
       // 进行渠道包验证
       GoStoreChannelControl.getChannelControlInstance(mContext).checkChannelAvailable();
     }
     // 保存是否曾经进入GO Store的统计数据
     GoStoreStatisticsUtil.saveOnceEnterGostore(
         mContext, GoStoreStatisticsUtil.ONCE_ENTER_GOSTORE);
     // 初始化缓存处理器
     CacheManager.build(mContext, new XmlCacheParser(), null);
     GoStoreCacheManager.build(mContext, null);
     // CacheManager cacheManager = CacheManager.getInstance();
     // if(cacheManager != null){
     // cacheManager.checkViewDataUpdate();
     // }
     // 加载系统渠道配置信息
     GOLauncherConfig.getInstance(mContext).roadConfig();
   }
 }
예제 #3
0
 public static synchronized void destory() {
   decreaseUserCount();
   if (sUserCount <= 0 && sSelf != null) {
     sSelf.clearUp();
     sSelf = null;
     sIsPrepare = false;
     sUserCount = 0;
     if (sThemeAppinBilling != null) {
       sThemeAppinBilling.destory();
       sThemeAppinBilling = null;
     }
     // 销毁HttpAdapter
     SimpleHttpAdapter.destory();
     // 销毁HttpTool
     GoStoreHttpTool.destory();
     // 释放ImageManager里面的资源
     ImageManager.destory();
     // 销毁线程池
     ThreadPoolManager.destory();
     // 销毁缓存管理器
     CacheManager.destory();
     GoStoreCacheManager.destory();
     // 退出商店督促gc回收
     System.gc();
     // 把进程杀掉
     android.os.Process.killProcess(android.os.Process.myPid());
   }
 }
예제 #4
0
 public static synchronized void destroyNotKill() {
   decreaseUserCount();
   if (sUserCount <= 0 && sSelf != null) {
     sSelf.clearUp();
     sSelf = null;
     sIsPrepare = false;
     sUserCount = 0;
     // 销毁HttpAdapter
     SimpleHttpAdapter.destory();
     // 释放ImageManager里面的资源
     ImageManager.destory();
     // 销毁线程池
     ThreadPoolManager.destory();
     // 销毁缓存管理器
     CacheManager.destory();
     GoStoreCacheManager.destory();
     // 退出商店督促gc回收
     System.gc();
     // 这里不杀掉进程
   }
 }