@Override
 public void onCreate(Bundle savedInstanceState) {
   UIUtils.initDisplayMetrics(this, getWindowManager(), false);
   ResourceUtils.init(this);
   PathDefine.init();
   super.onCreate(savedInstanceState);
   registerReceiver(receiverClose, filterClose);
   if (!MiscUtils.isSDCardExists()) {
     new AlertDialog.Builder(this)
         .setTitle(R.string.hint)
         .setMessage(R.string.no_sdcard)
         .setPositiveButton(
             R.string.ok,
             new DialogInterface.OnClickListener() {
               @Override
               public void onClick(DialogInterface dialog, int which) {
                 finish();
               }
             })
         .show();
     return;
   }
   if (!YugiohDatabase.isDatabaseFileExists()) {
     UpdateInfo updateInfo = new UpdateInfo();
     updateInfo.setUpdateApk(0);
     updateInfo.setUpdateData(1);
     Intent inUpdate = new Intent(this, UpdateActivity.class);
     inUpdate.putExtra("update", updateInfo);
     startActivity(inUpdate);
     finish();
   } else {
     checkUpdate();
   }
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   UIUtils.initDisplayMetrics(this, getWindowManager(), false);
   ResourceUtils.init(this);
   Global.autoRefreshTag = true;
   Global.canExit = false;
   super.onCreate(savedInstanceState);
   startService(new Intent(this, MessageService.class));
   getSlidingMenu().setOnOpenListener(this);
   getSlidingMenu().setOnCloseListener(this);
   doCheckUpdateT(this);
 }