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

APP new users and retention analysis!

01 New User If you have read the first article in...

Baidu bidding creative writing, how to write a good creative idea?

A good creative can not only improve the ranking ...

Hongxing Erke Marketing Revelation

So far, there are two best cases of social market...

Using mobile phones on airplanes will have a clear conclusion in 2016

At present, every time passengers take a flight i...

After Walmart fully acquires No.1 Store, can it still expand offline?

Yesterday was the general meeting of all employee...

How to keep up with the latest trends without becoming outdated?

The public relations departments of various compa...

App promotion cheating insider series: machine brushing!

In the Android environment, machine brushing is t...