Пример #1
0
 @Override
 protected void onCreate(Bundle arg0) {
   super.onCreate(arg0);
   setContentView(R.layout.redeem_page);
   width = getWindowManager().getDefaultDisplay().getWidth();
   zapp = (BaatnaApp) getApplication();
   prefs = getSharedPreferences("application_settings", 0);
   mListView = (ListView) findViewById(R.id.wish_list);
   mListView.setDivider(null);
   mListView.setDividerHeight(width / 20);
   mContext = this;
   inflater = LayoutInflater.from(this);
   setupActionBar();
   setListeners();
   refreshView();
   UploadManager.addCallback(this);
 }
Пример #2
0
 @Override
 public void onDestroy() {
   destroyed = true;
   UploadManager.removeCallback(this);
   super.onDestroy();
 }