android-demo

学习android的demo

Stars
21

Androiddemo

demo

1.

  1. ,Android Studio
  2. helloWorld
  3. Activitylayout, ActivityActivity
    (:hybrid App,htmlActivity?Activity)
  4. Activity: onCreate,onStart,onResume,(Running),onPause,onStop,onRestart/onDestroy, monitor console
    file:///Users/youngwind/Library/Android/sdk/docs/guide/components/activities.html
  5. open ~/Library/Android/sdk/docs/index.html
  6. ActivityActivity
    (:Activity A,Activity AonPauseonStop)
  7. Activity AActivity B,Activity B(bundle)
  8. Activity AActivity B, Activity BActivity A (startActivityForResult)
  9. taskActivity:taskActivity,.
    (:hybrid,hybrid,)
    (PS:taskactivity,,:http://blog.csdn.net/zhangjg_blog/article/details/10923643)
  10. Intent http://www.cnblogs.com/smyhvae/p/3959204.html (,)
  11. Context http://www.cnblogs.com/smyhvae/p/3959204.html (,,)
  12. service http://blog.csdn.net/u011067360/article/details/24523491
    (,)
    (:,)
  13. AIDL (,)

2. UI

  1. (,),layout:linearLayout, RelativeLayout, frameLayout
  2. view,,jsDOM
  3. RecyclerView(listView,)
  4. UI(ImageView,ProgressBar,AlertDialog,ProgressDialog)

3.

  1. asyncTaskconnectionhttp get?()
    :HttpURLConnection vs DefaultHttpClient,
    http://blog.csdn.net/iispring/article/details/51474529
  2. (Android-async-http vs Volley)
  3. json(JSONObjectGSON)

4. WebView

  1. webview
  2. javascript
  3. java:toast
  4. addJavascriptInterfacejsBridge
  5. URLjsBridge
  6. jsAlertjsBridge

5.

  1. ()

6.

  1. SQLite()
  2. sharedPreferences,

7.

  1. UI

8.

  1. gradle http://stormzhang.com/devtools/2014/12/18/android-studio-tutorial4/
  2. apk
./gradlew -v
./gradlew clean
./gradlew build
  1. apk http://www.dbform.com/html/2012/1807.html platform-tools: /Users/youngwind/Library/Android/sdk/platform-tools/
  2. adb shell ,sucat
    http://www.eoeandroid.com/thread-310228-1-1.html
    http://zmywly8866.github.io/2015/01/24/all-adb-command.html
Related Projects