Imitation mall app

Imitation mall app

Source code introduction: 1. It has the function of online login verification and login status maintenance. 2. It has JSON parsing. 3. Add shopping cart. 4. Automatic carousel. 5. Basic usage of SharedPreferences. Most functions of this app are done by this method and bundle transfer. 6. TabHost tabs are nested in Fragment. 7. QQ left slide menu application. 8. Automatic text completion can be used as a reference for beginners.

Source code effect:

Source code snippet:

  1. Stay logged in
  2. @Override  
  3. protected   void onRestart() {
  4. super .onRestart();
  5. quUser();
  6. }
  7.   
  8. public   void quUser() {
  9. SharedPreferences ps = getSharedPreferences( "isLogin" , Context.MODE_PRIVATE);
  10. str = ps.getBoolean( "isLogin" , false );
  11. name = ps.getString( "username" , "" );
  12. dengji = ps.getString( "dengji" , "" );
  13. if (str) {
  14. info = new ResideMenuInfo( this , R.drawable.ic_launcher1, name, dengji);
  15. } else {
  16. info = new ResideMenuInfo( this , R.drawable.ic_launcher, "Please log in" , "" );
  17. }
  18. }

Download address: http://download..com/data/2125291

<<:  I'm tired of waiting and found out that iOS 9.2 beta4 is the official version

>>:  Mobile phone ordering project source code

Recommend

Moon dust looks like this! The microscopic universe under the microscope

Electron microscope view of a diatom Silicon chip...

Beware! Extraterrestrial "Assassins"

Beware! Extraterrestrial "Assassins" In...

A brief introduction to the 400 phone application steps

The scope of use of 400 telephones is constantly ...

Can 360 Bidding Software Assistant really improve promotion results?

Many friends started to do 360 bidding promotion ...

Ubuntu Touch wants to make a comeback: new technology can run Android apps

I don't know if you still remember the Ubuntu...

Tips for B Station UP Masters to Sell Products

Nowadays, traffic costs are gradually rising and ...