Exemplo n.º 1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.password_generator);
   ((TextView) findViewById(R.id.id_text_num_chracter)).setText("" + 8);
   mIdManagerPreference = IdManagerPreference.getInstance(this);
   initAdmod();
 }
Exemplo n.º 2
0
 public void initAdmod() {
   adview = (AdView) findViewById(R.id.main_adView);
   AdRequest re = new AdRequest();
   if (adview != null) {
     adview.loadAd(re);
     if (!mIdManagerPreference.getIsPaymentNoAd()) adview.setVisibility(View.VISIBLE);
     else adview.setVisibility(View.GONE);
   }
 }