public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   appContext = (AppContext) getActivity().getApplication();
   networkHelper = new StrVolleyInterface(getActivity());
   networkHelper.setStrUIDataListener(ShoppingCartFragment.this);
   initData();
 }
Esempio n. 2
0
 protected void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_bind);
   networkHelper = new StrVolleyInterface(this);
   networkHelper.setStrUIDataListener(this);
   appContext = (AppContext) getApplication();
   initId();
   sp = this.getSharedPreferences(Constant.MY_PREFERENCES, 0);
   btnGetCode.setOnClickListener(this);
   btnSub.setOnClickListener(this);
   ivBack.setOnClickListener(this);
 }