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

The river turned orange and was weirdly sour. What happened to Alaska?

Hello everyone, this is the 11th issue of the Env...

Security concerns, a stumbling block to the explosion of wearables?

[[134520]] When Google Glass was first launched, ...

How do you plan an event that everyone wants to attend?

Now with a mobile phone in hand, everyone can hav...

Social e-commerce “business tips” on WeChat mini-programs!

There are three things in life that are intolerab...

How are invisible massive baby stars formed?

Produced by: Science Popularization China Author:...

Team collaboration and MVVM architecture design in iOS

I wrote this article today to serve as a starting...

A brief analysis of the HTTPS principle and its use in Android

[[192101]] This article first analyzes the securi...

Have you ever seen this "colorful black" dinosaur?

Your browser does not support the video tag At fi...

Meizu App Store promotion advertising landing page template description!

Meizu App Store Ads Landing Page Template Descrip...

Plants also have "social phobias" and become "shy" when touched lightly →

If you touch it lightly, its leaves will close im...

What can UCloud do to accelerate Chinese companies’ overseas expansion?

The original intention of globalization strategy ...