Exemplo n.º 1
0
 protected void onCreate(Bundle bundle) {
   super.onCreate(bundle);
   initTitleBar();
   this.lj = io();
   if (this.lj == ViewType.UNKNOWN) {
     Log.e("YellowPageActivity", "unknown view type");
     finish();
     return;
   }
   ip();
   if (!Permission.networkingAllowed(this) && !this.Lp) {
     startActivityForResult(Permission.createUserNoticeIntent(), 0);
     this.Lp = true;
   }
 }
Exemplo n.º 2
0
 protected void onStop() {
   super.onStop();
   Permission.setNetworkingAllowedTemporarily(this, false);
 }