Beispiel #1
0
 @SuppressLint("NewApi")
 @Override
 public void onCreate(Bundle savedInstanceState) {
   // 设置启动信息
   if (!init) {
     ExUtility.setDebug(true);
     ExUtility.setCacheDir(null);
     BitmapAjaxCallback.setPixelLimit(600 * 600);
     BitmapAjaxCallback.setCacheLimit(200);
     BitmapAjaxCallback.setIconCacheLimit(100);
     BitmapAjaxCallback.setMaxPixelLimit(10000000); //
     init = true;
     // ErrorReporter.installReporter(getApplicationContext());
   }
   requestWindowFeature(Window.FEATURE_NO_TITLE);
   getWindow()
       .setFlags(
           WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);
   // Configure the drawer
   mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
   launchFragment(-1);
 }
 @Override
 public void onClick(DialogInterface arg0, int arg1) {
   // TODO Auto-generated method stub
   ExUtility.debug(arg1);
 }