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

Didi Autonomous Driving Receives Investment from GAC Group

On October 12, Didi Autonomous Driving announced ...

Keyword selection tips for bidding accounts!

SEM account optimization generally refers to the ...

Wuwei Academy main line capture dragon first issue

Introduction to the first phase of Wuwei Academy&...

Why did ancient civilizations build cities in forests?

The temple of Ta Prohm in Angkor Wat, Cambodia, b...

3 wrong breakfast combinations, how long have you been eating like this?

For office workers and those who have trouble get...

How to remove the traffic limit of Douyin? What does TikTok traffic limit mean?

This article mainly introduces how to lift the fl...

official! Tik Tok advertising promotion quotation list~

Tik Tok has seized the domestic video market and ...

That's how you become a bad programmer.

[[133974]] It’s hard to be a good developer. Let’...