Android source code download: APP startup guide

Android source code download: APP startup guide

Functional classification: Tools

Supported platforms: Android

Operating environment: Eclipse

Development language: Java

Development tool: Eclipse

Source code size: 5.43MB

Source code download address: http://down..com/data/1977580

Source code introduction

APP startup boot is one of the four common ways to boot projects in Android APP applications.

Source code running screenshot

Boot Success

APP guidance method selection

Slide guide 1

Slide Guide 4

Slide Guide 2

Source code snippet

  1. package com.zhangyx.MyLauncherGuide;
  2.   
  3. import com.lidroid.xutils.ViewUtils;
  4. import com.lidroid.xutils.view.annotation.ViewInject;
  5. import com.zhangyx.MyLauncherGuide.activity.scrollView.ScollerViewActivity;
  6. import com.zhangyx.MyLauncherGuide.activity.splash.SplashActivity;
  7. import com.zhangyx.MyLauncherGuide.activity.viewFlipper.ViewFlipperActivity;
  8. import com.zhangyx.MyLauncherGuide.activity.viewPage.ViewPagerActivity;
  9. import com.zhangyx.MyLauncherGuide.utils.AnimationUtil;
  10.   
  11. import android.os.Bundle;
  12. import android.app.Activity;
  13. import android.content.Intent;
  14. import android.view.Menu;
  15. import android.view.View;
  16. import android.view.View.OnClickListener;
  17. import android.widget.Button;
  18.   
  19. /**
  20. * APP guidance method classification
  21. *com.zhangyx.MyLauncherGuide.MainActivity
  22. * @author Admin-zhangyx
  23. *
  24. * created at 2015-1-21 2:04:27 PM
  25. */  
  26. public   class MainActivity extends Activity implements OnClickListener{
  27.   
  28. @ViewInject (R.id.btnSplash)
  29. private Button btnSplash;
  30. @ViewInject (R.id.btnViewPage)
  31. private Button btnViewPage;
  32. @ViewInject (R.id.btnViewFlipper)
  33. private Button btnViewFlipper;
  34. @ViewInject (R.id.btnScrollView)
  35. private Button btnScrollView;
  36.       
  37. @Override  
  38. protected   void onCreate(Bundle savedInstanceState) {
  39. super .onCreate(savedInstanceState);
  40. setContentView(R.layout.activity_main);
  41. ViewUtils.inject( this );
  42. btnSplash.setOnClickListener( this );
  43. btnViewPage.setOnClickListener( this );
  44. btnViewFlipper.setOnClickListener( this );
  45. btnScrollView.setOnClickListener( this );
  46. }
  47.   
  48.   
  49. @Override  
  50. public   boolean onCreateOptionsMenu(Menu menu) {
  51. // Inflate the menu; this adds items to the action bar if it is present.  
  52. getMenuInflater().inflate(R.menu.main, menu);
  53. return   true ;
  54. }
  55.   
  56.   
  57. /* (non-Javadoc)
  58. * @see android.view.View.OnClickListener#onClick(android.view.View)
  59. */  
  60. @Override  
  61. public   void onClick(View v) {
  62. // TODO Auto-generated method stub  
  63. if (v==btnSplash){
  64. startActivity( new Intent( this ,SplashActivity. class ));
  65. } else   if (v==btnViewPage){
  66. startActivity( new Intent( this ,ViewPagerActivity. class ));
  67. } else   if (v == btnViewFlipper) {
  68. startActivity( new Intent( this ,ViewFlipperActivity. class ));
  69. } else   if (v == btnScrollView) {
  70. startActivity( new Intent( this ,ScollerViewActivity. class ));
  71. }
  72. AnimationUtil.activityZoomAnimation( this );
  73. }
  74.       
  75. }

Source code download address: http://down..com/data/1977580

<<:  One picture tells you: Which generation of Android system is stronger?

>>:  Exclusive interview with Xu Shiwei: Three transformations completed in eleven years How a successful entrepreneur was made

Recommend

APP user operation: How to prevent users from changing their minds?

Preventing user churn and improving retention and...

Business secrets in digital mobile Internet operations in the era of big data!

After the Double Eleven shopping festival in 2015...

How powerful is China’s 35 times the speed of sound wind tunnel?

China's 35 times supersonic wind tunnel has a...

Low-cost brand communication rules!

The “Brand Golden Triangle Rule” for building a b...

Lao Duan said: The difference between TV and box

Abstract: Because both can watch TV and videos, e...

5G commercialization should not wait until 2020, it is very close to us

One of the most popular focuses at MWC2017 is und...

WeChat Bug Hot Search Netizens: I can't receive messages all the time

On January 18, the topic “WeChat bug” became a ho...

Japan bets on all-solid-state batteries, 23 companies jointly develop

Japan's New Energy and Industrial Technology ...

Jianfang 3L Strategy Practice Class 2021

Kong Qinlue practical class Momentum main line + ...