Androiddemo
demo
1.
- ,Android Studio
- helloWorld
- Activitylayout, ActivityActivity
(:hybrid App,htmlActivity?Activity)
- Activity: onCreate,onStart,onResume,(Running),onPause,onStop,onRestart/onDestroy, monitor console
file:///Users/youngwind/Library/Android/sdk/docs/guide/components/activities.html
- open ~/Library/Android/sdk/docs/index.html
- ActivityActivity
(:Activity A,Activity AonPauseonStop)
- Activity AActivity B,Activity B(bundle)
- Activity AActivity B, Activity BActivity A (startActivityForResult)
- taskActivity:taskActivity,.
(:hybrid,hybrid,)
(PS:taskactivity,,:http://blog.csdn.net/zhangjg_blog/article/details/10923643)
- Intent http://www.cnblogs.com/smyhvae/p/3959204.html (,)
- Context http://www.cnblogs.com/smyhvae/p/3959204.html (,,)
- service http://blog.csdn.net/u011067360/article/details/24523491
(,)
(:,)
- AIDL (,)
2. UI
- (,),layout:linearLayout, RelativeLayout, frameLayout
- view,,jsDOM
- RecyclerView(listView,)
- UI(ImageView,ProgressBar,AlertDialog,ProgressDialog)
-
3.
- asyncTaskconnectionhttp get?()
:HttpURLConnection vs DefaultHttpClient,
http://blog.csdn.net/iispring/article/details/51474529
- (Android-async-http vs Volley)
- json(JSONObjectGSON)
4. WebView
- webview
- javascript
- java:toast
- addJavascriptInterfacejsBridge
- URLjsBridge
- jsAlertjsBridge
5.
- ()
6.
-
- SQLite()
- sharedPreferences,
7.
-
- UI
8.
- gradle http://stormzhang.com/devtools/2014/12/18/android-studio-tutorial4/
- apk
./gradlew -v
./gradlew clean
./gradlew build
- apk http://www.dbform.com/html/2012/1807.html platform-tools: /Users/youngwind/Library/Android/sdk/platform-tools/
- adb shell ,sucat
http://www.eoeandroid.com/thread-310228-1-1.html
http://zmywly8866.github.io/2015/01/24/all-adb-command.html