├── android-http
├── res
│ ├── values
│ │ ├── strings.xml
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ └── styles.xml
│ ├── mipmap-hdpi
│ │ ├── Thumbs.db
│ │ └── ic_launcher.png
│ ├── mipmap-mdpi
│ │ ├── Thumbs.db
│ │ └── ic_launcher.png
│ ├── mipmap-xhdpi
│ │ ├── Thumbs.db
│ │ └── ic_launcher.png
│ ├── mipmap-xxhdpi
│ │ ├── Thumbs.db
│ │ └── ic_launcher.png
│ ├── mipmap-xxxhdpi
│ │ ├── Thumbs.db
│ │ └── ic_launcher.png
│ ├── values-w820dp
│ │ └── dimens.xml
│ └── layout
│ │ └── activity_main.xml
└── AndroidManifest.xml
├── android-sqlite
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ └── activity_main.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ ├── model
│ │ └── Book.java
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-post-json
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── menu
│ │ └── main.xml
├── server-side-code
│ ├── war
│ │ ├── favicon.ico
│ │ ├── post-json
│ │ │ ├── bootstrap
│ │ │ │ └── img
│ │ │ │ │ ├── glyphicons-halflings.png
│ │ │ │ │ └── glyphicons-halflings-white.png
│ │ │ └── index.html
│ │ ├── WEB-INF
│ │ │ └── web.xml
│ │ └── index.html
│ └── src
│ │ ├── com
│ │ └── hmkcode
│ │ │ └── vo
│ │ │ └── Person.java
│ │ ├── META-INF
│ │ └── jdoconfig.xml
│ │ └── log4j.properties
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ └── vo
│ │ └── Person.java
└── AndroidManifest.xml
├── android-recyclerview
├── libs
│ └── classes.jar
├── res
│ ├── drawable-hdpi
│ │ ├── help.png
│ │ ├── ic_launcher.png
│ │ ├── rating_good.png
│ │ ├── content_discard.png
│ │ ├── rating_favorite.png
│ │ ├── rating_important.png
│ │ ├── collections_cloud.png
│ │ └── border.xml
│ └── layout
│ │ ├── activity_main.xml
│ │ └── item_layout.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ └── recyclerview
│ │ ├── ItemData.java
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-camera-app
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ └── activity_main.xml
└── AndroidManifest.xml
├── android-http-client
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ └── main.xml
└── AndroidManifest.xml
├── android-http-get-json
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ └── main.xml
└── AndroidManifest.xml
├── android-options-menu
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ ├── ic_launcher.png
│ │ ├── ic_action_search.png
│ │ ├── ic_content_copy.png
│ │ └── ic_social_share.png
│ ├── values
│ │ └── strings.xml
│ ├── layout
│ │ └── activity_main.xml
│ └── menu
│ │ └── main.xml
├── .classpath
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-pro-listview
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ ├── action_help.png
│ │ ├── ic_launcher.png
│ │ ├── action_help_32.png
│ │ ├── action_search.png
│ │ ├── content_save.png
│ │ ├── location_place.png
│ │ ├── social_share.png
│ │ ├── action_search_32.png
│ │ ├── collections_cloud.png
│ │ ├── collections_cloud_32.png
│ │ └── rectangle.xml
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ ├── activity_main.xml
│ │ ├── group_header_item.xml
│ │ └── target_item.xml
├── AndroidManifest.xml
└── src
│ └── com
│ └── hmkcode
│ └── android
│ ├── Model.java
│ └── MainActivity.java
├── android-social-signin
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ ├── icon_fb.png
│ │ ├── balloon_bg.png
│ │ ├── icon_gplus.png
│ │ ├── ic_launcher.png
│ │ ├── icon_twitter.png
│ │ ├── linearlayout_bg.xml
│ │ ├── layers_fb_button_bg.xml
│ │ ├── layers_twitter_button_bg.xml
│ │ ├── layers_gplus_button_bg.xml
│ │ ├── button_fb_bg.xml
│ │ ├── button_gplus_bg.xml
│ │ └── button_twitter_bg.xml
│ ├── values
│ │ ├── dimens.xml
│ │ ├── styles.xml
│ │ └── strings.xml
│ └── menu
│ │ └── main.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ └── signin
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-start-activity
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ ├── activity_another.xml
│ │ └── activity_main.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ ├── AnotherActivity.java
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-custom-listview
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ └── strings.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ ├── activity_main.xml
│ │ └── row.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ ├── Item.java
│ │ ├── MainActivity.java
│ │ └── MyAdapter.java
└── AndroidManifest.xml
├── android-actionbar-for-2.x.x
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ ├── ic_launcher.png
│ │ ├── ic_action_search.png
│ │ ├── ic_content_copy.png
│ │ └── ic_social_share.png
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── strings.xml
│ │ ├── dimens.xml
│ │ └── styles.xml
│ ├── values-sw600dp
│ │ └── dimens.xml
│ ├── values-sw720dp-land
│ │ └── dimens.xml
│ ├── values-v11
│ │ └── styles.xml
│ ├── values-v14
│ │ └── styles.xml
│ ├── layout
│ │ └── activity_main.xml
│ └── menu
│ │ └── main.xml
├── .classpath
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-menu-events-change
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ ├── ic_launcher.png
│ │ ├── ic_content_new.png
│ │ ├── ic_content_remove.png
│ │ └── ic_location_web_site.png
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── strings.xml
│ │ ├── dimens.xml
│ │ └── styles.xml
│ ├── values-sw600dp
│ │ └── dimens.xml
│ ├── values-sw720dp-land
│ │ └── dimens.xml
│ ├── menu
│ │ └── main.xml
│ ├── values-v11
│ │ └── styles.xml
│ ├── values-v14
│ │ └── styles.xml
│ └── layout
│ │ └── activity_main.xml
├── AndroidManifest.xml
└── src
│ └── com
│ └── hmkcode
│ └── android
│ └── MainActivity.java
├── android-navigation-drawer
├── ic_launcher-web.png
├── res
│ ├── drawable-hdpi
│ │ ├── ic_drawer.png
│ │ ├── ic_launcher.png
│ │ ├── drawer_shadow.9.png
│ │ └── ic_action_search.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ ├── drawer_listview_item.xml
│ │ └── activity_main.xml
└── AndroidManifest.xml
├── android-clean-http-async-task
├── ic_launcher-web.png
├── hmkcode-http-lib.jar
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ └── activity_main.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── http
│ │ └── HttpHandler.java
└── AndroidManifest.xml
├── android-L-preview
├── res
│ ├── values
│ │ ├── styles.xml
│ │ └── strings.xml
│ └── layout
│ │ └── activity_main.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── android
│ │ └── L
│ │ └── MainActivity.java
├── proguard-project.txt
└── AndroidManifest.xml
├── android-gcm-client
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── menu
│ │ └── main.xml
│ └── layout
│ │ └── activity_main.xml
└── src
│ └── com
│ └── hmkcode
│ └── android
│ └── gcm
│ ├── GcmBroadcastReceiver.java
│ └── GcmMessageHandler.java
├── android-sign-in-up-screen
├── res
│ ├── drawable-hdpi
│ │ ├── user.png
│ │ ├── email.png
│ │ ├── password.png
│ │ ├── balloon_bg.png
│ │ ├── ic_launcher.png
│ │ ├── edittext_default_bg.xml
│ │ ├── linearlayout_bg.xml
│ │ ├── edittext_top_bg.xml
│ │ ├── edittext_bottom_bg.xml
│ │ └── button_default_bg.xml
│ ├── values
│ │ ├── dimens.xml
│ │ ├── styles.xml
│ │ └── strings.xml
│ └── menu
│ │ └── main.xml
└── src
│ └── com
│ └── hmkcode
│ └── android
│ └── sign
│ ├── SignInActivity.java
│ ├── SignUpActivity.java
│ └── MainActivity.java
├── android-draw-happy-face
├── res
│ ├── drawable-hdpi
│ │ ├── ic_launcher.png
│ │ └── woodgraybg.jpg
│ ├── values
│ │ ├── attrs.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── layout
│ │ └── activity_main.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── drawing
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-show-image-and-path
├── libs
│ └── android-support-v4.jar
└── AndroidManifest.xml
├── readme.md
├── android-whatsapp-profile-screen
└── res
│ └── drawable-hdpi
│ ├── balloon.png
│ ├── ic_launcher.png
│ ├── ic_action_edit.png
│ ├── ic_action_new_event.png
│ ├── image_border.xml
│ ├── edit_states.xml
│ ├── image_state.xml
│ └── textview_border.xml
├── android-material-design-appcompat
├── res
│ ├── drawable-hdpi
│ │ ├── ic_menu.png
│ │ ├── ic_launcher.png
│ │ ├── ic_action_location_found.png
│ │ ├── ic_action_location_found_dark.png
│ │ └── cardview_border.xml
│ ├── values-v21
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── values
│ │ ├── dimens.xml
│ │ ├── colors.xml
│ │ └── strings.xml
│ ├── layout
│ │ ├── activity_main_1.xml
│ │ ├── nav_header.xml
│ │ ├── activity_main_2.xml
│ │ ├── activity_main_3.xml
│ │ └── activity_main_4.xml
│ └── menu
│ │ ├── main.xml
│ │ └── navigation_drawer_items.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── app
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-canvas-donut-chart
├── res
│ ├── values
│ │ ├── attrs.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── layout
│ │ └── activity_main.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── views
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-custom-view
├── res
│ ├── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ ├── attrs.xml
│ │ └── styles.xml
│ └── layout
│ │ └── activity_main.xml
├── AndroidManifest.xml
└── src
│ └── com
│ └── hmkcode
│ └── views
│ ├── MainActivity.java
│ └── SimpleView.java
├── user-interface
├── readme.md
└── android-swipe-views-tabs
│ ├── app
│ ├── src
│ │ └── main
│ │ │ ├── res
│ │ │ └── layout
│ │ │ │ ├── fragment_first.xml
│ │ │ │ ├── fragment_second.xml
│ │ │ │ └── activity_main.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ └── com
│ │ │ └── hmkcode
│ │ │ └── android
│ │ │ ├── fragments
│ │ │ ├── SecondFragment.java
│ │ │ └── FirstFragment.java
│ │ │ ├── adapters
│ │ │ └── MyFragmentPagerAdapter.java
│ │ │ └── MainActivity.java
│ └── build.gradle
│ └── build.gradle
├── android-get-last-location-fused-api
├── res
│ └── layout
│ │ └── activity_main.xml
└── AndroidManifest.xml
├── android-read-browser-bookmark
├── res
│ └── layout
│ │ └── activity_main.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── browser
│ │ └── bookmark
│ │ └── MainActivity.java
└── AndroidManifest.xml
├── android-input-text-layout
├── project.properties
├── AndroidManifest.xml
├── src
│ └── com
│ │ └── hmkcode
│ │ └── inputtextlayout
│ │ └── MainActivity.java
└── res
│ └── layout
│ └── activity_main.xml
├── java-post-gcm
├── src
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── hmkcode
│ │ │ └── AppTest.java
│ └── main
│ │ └── java
│ │ └── com
│ │ └── hmkcode
│ │ ├── vo
│ │ └── Content.java
│ │ └── App.java
├── .classpath
└── pom.xml
└── android-get-current-location
├── res
└── layout
│ └── activity_main.xml
└── AndroidManifest.xml
/android-http/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Android HTTP
3 |
4 |
--------------------------------------------------------------------------------
/android-sqlite/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-sqlite/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-post-json/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-post-json/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-recyclerview/libs/classes.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-recyclerview/libs/classes.jar
--------------------------------------------------------------------------------
/android-camera-app/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-camera-app/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-http-client/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http-client/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-http/res/mipmap-hdpi/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-hdpi/Thumbs.db
--------------------------------------------------------------------------------
/android-http/res/mipmap-mdpi/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-mdpi/Thumbs.db
--------------------------------------------------------------------------------
/android-http/res/mipmap-xhdpi/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-xhdpi/Thumbs.db
--------------------------------------------------------------------------------
/android-http-get-json/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http-get-json/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-http/res/mipmap-xxhdpi/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-xxhdpi/Thumbs.db
--------------------------------------------------------------------------------
/android-http/res/mipmap-xxxhdpi/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-xxxhdpi/Thumbs.db
--------------------------------------------------------------------------------
/android-options-menu/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-options-menu/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-pro-listview/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-social-signin/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-social-signin/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-start-activity/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-start-activity/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-custom-listview/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-custom-listview/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-http/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-http/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-actionbar-for-2.x.x/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-http/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-http/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-http/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-menu-events-change/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-menu-events-change/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-navigation-drawer/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-navigation-drawer/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-recyclerview/res/drawable-hdpi/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-recyclerview/res/drawable-hdpi/help.png
--------------------------------------------------------------------------------
/android-clean-http-async-task/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-clean-http-async-task/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-sqlite/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-sqlite/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-L-preview/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/android-camera-app/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-camera-app/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-clean-http-async-task/hmkcode-http-lib.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-clean-http-async-task/hmkcode-http-lib.jar
--------------------------------------------------------------------------------
/android-gcm-client/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-gcm-client/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-post-json/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-post-json/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-post-json/server-side-code/war/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-post-json/server-side-code/war/favicon.ico
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/user.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-sign-in-up-screen/res/drawable-hdpi/user.png
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/icon_fb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-social-signin/res/drawable-hdpi/icon_fb.png
--------------------------------------------------------------------------------
/android-http-client/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http-client/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-options-menu/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-options-menu/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/action_help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/action_help.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-recyclerview/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-recyclerview/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-recyclerview/res/drawable-hdpi/rating_good.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-recyclerview/res/drawable-hdpi/rating_good.png
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-sign-in-up-screen/res/drawable-hdpi/email.png
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/balloon_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-social-signin/res/drawable-hdpi/balloon_bg.png
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/icon_gplus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-social-signin/res/drawable-hdpi/icon_gplus.png
--------------------------------------------------------------------------------
/android-custom-listview/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-custom-listview/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-draw-happy-face/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-draw-happy-face/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-draw-happy-face/res/drawable-hdpi/woodgraybg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-draw-happy-face/res/drawable-hdpi/woodgraybg.jpg
--------------------------------------------------------------------------------
/android-http-get-json/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-http-get-json/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-navigation-drawer/res/drawable-hdpi/ic_drawer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-navigation-drawer/res/drawable-hdpi/ic_drawer.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/action_help_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/action_help_32.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/action_search.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/content_save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/content_save.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/location_place.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/location_place.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/social_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/social_share.png
--------------------------------------------------------------------------------
/android-show-image-and-path/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-show-image-and-path/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/password.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-sign-in-up-screen/res/drawable-hdpi/password.png
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-social-signin/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/icon_twitter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-social-signin/res/drawable-hdpi/icon_twitter.png
--------------------------------------------------------------------------------
/android-start-activity/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-start-activity/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | Android Repository
2 | ==================
3 |
4 |
5 | This repository contains complete code for Android blog posts on [hmkcode.com](http://hmkcode.com)
6 |
--------------------------------------------------------------------------------
/android-navigation-drawer/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-navigation-drawer/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-options-menu/res/drawable-hdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-options-menu/res/drawable-hdpi/ic_action_search.png
--------------------------------------------------------------------------------
/android-options-menu/res/drawable-hdpi/ic_content_copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-options-menu/res/drawable-hdpi/ic_content_copy.png
--------------------------------------------------------------------------------
/android-options-menu/res/drawable-hdpi/ic_social_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-options-menu/res/drawable-hdpi/ic_social_share.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/action_search_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/action_search_32.png
--------------------------------------------------------------------------------
/android-recyclerview/res/drawable-hdpi/content_discard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-recyclerview/res/drawable-hdpi/content_discard.png
--------------------------------------------------------------------------------
/android-recyclerview/res/drawable-hdpi/rating_favorite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-recyclerview/res/drawable-hdpi/rating_favorite.png
--------------------------------------------------------------------------------
/android-recyclerview/res/drawable-hdpi/rating_important.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-recyclerview/res/drawable-hdpi/rating_important.png
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/balloon_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-sign-in-up-screen/res/drawable-hdpi/balloon_bg.png
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-sign-in-up-screen/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-actionbar-for-2.x.x/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-actionbar-for-2.x.x/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-actionbar-for-2.x.x/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-menu-events-change/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-menu-events-change/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-menu-events-change/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-menu-events-change/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-menu-events-change/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-menu-events-change/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-menu-events-change/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-menu-events-change/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/collections_cloud.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/collections_cloud.png
--------------------------------------------------------------------------------
/android-recyclerview/res/drawable-hdpi/collections_cloud.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-recyclerview/res/drawable-hdpi/collections_cloud.png
--------------------------------------------------------------------------------
/android-whatsapp-profile-screen/res/drawable-hdpi/balloon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-whatsapp-profile-screen/res/drawable-hdpi/balloon.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-actionbar-for-2.x.x/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-clean-http-async-task/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-clean-http-async-task/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/drawable-hdpi/ic_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-material-design-appcompat/res/drawable-hdpi/ic_menu.png
--------------------------------------------------------------------------------
/android-menu-events-change/res/drawable-hdpi/ic_content_new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-menu-events-change/res/drawable-hdpi/ic_content_new.png
--------------------------------------------------------------------------------
/android-navigation-drawer/res/drawable-hdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-navigation-drawer/res/drawable-hdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/android-navigation-drawer/res/drawable-hdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-navigation-drawer/res/drawable-hdpi/ic_action_search.png
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/collections_cloud_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-pro-listview/res/drawable-hdpi/collections_cloud_32.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/drawable-hdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-actionbar-for-2.x.x/res/drawable-hdpi/ic_action_search.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/drawable-hdpi/ic_content_copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-actionbar-for-2.x.x/res/drawable-hdpi/ic_content_copy.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/drawable-hdpi/ic_social_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-actionbar-for-2.x.x/res/drawable-hdpi/ic_social_share.png
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-material-design-appcompat/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-menu-events-change/res/drawable-hdpi/ic_content_remove.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-menu-events-change/res/drawable-hdpi/ic_content_remove.png
--------------------------------------------------------------------------------
/android-whatsapp-profile-screen/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-whatsapp-profile-screen/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-menu-events-change/res/drawable-hdpi/ic_location_web_site.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-menu-events-change/res/drawable-hdpi/ic_location_web_site.png
--------------------------------------------------------------------------------
/android-whatsapp-profile-screen/res/drawable-hdpi/ic_action_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-whatsapp-profile-screen/res/drawable-hdpi/ic_action_edit.png
--------------------------------------------------------------------------------
/android-draw-happy-face/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/src/com/hmkcode/app/MainActivity.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-material-design-appcompat/src/com/hmkcode/app/MainActivity.java
--------------------------------------------------------------------------------
/android-canvas-donut-chart/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFF5F5F5
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android-whatsapp-profile-screen/res/drawable-hdpi/ic_action_new_event.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-whatsapp-profile-screen/res/drawable-hdpi/ic_action_new_event.png
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/drawable-hdpi/ic_action_location_found.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-material-design-appcompat/res/drawable-hdpi/ic_action_location_found.png
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/drawable-hdpi/ic_action_location_found_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-material-design-appcompat/res/drawable-hdpi/ic_action_location_found_dark.png
--------------------------------------------------------------------------------
/android-post-json/server-side-code/war/post-json/bootstrap/img/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-post-json/server-side-code/war/post-json/bootstrap/img/glyphicons-halflings.png
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App
5 | Hello world!
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App
5 | Hello world!
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-post-json/server-side-code/war/post-json/bootstrap/img/glyphicons-halflings-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ornate1979/Android/HEAD/android-post-json/server-side-code/war/post-json/bootstrap/img/glyphicons-halflings-white.png
--------------------------------------------------------------------------------
/android-http/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/android-http/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/android-sqlite/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-camera-app/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-custom-view/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-gcm-client/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-http-client/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-post-json/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-pro-listview/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-custom-listview/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-draw-happy-face/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-http-get-json/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-navigation-drawer/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-social-signin/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-sqlite/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SQLite
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-start-activity/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-camera-app/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Camera App
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-canvas-donut-chart/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-clean-http-async-task/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-custom-listview/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-http-client/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | HTTP APP
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-post-json/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | POST JSON
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-start-activity/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-draw-happy-face/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DrawFace
5 | Hello world!
6 | Settings
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-gcm-client/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Android GCM
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/drawable-hdpi/cardview_border.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android-whatsapp-profile-screen/res/drawable-hdpi/image_border.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android-L-preview/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | L Preview
5 | MainActivity
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-canvas-donut-chart/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Donut Chart
5 | Hello world!
6 | Settings
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-custom-view/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Simple Custom View
5 | Hello world!
6 | Settings
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-http-get-json/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | HTTP GET JSON APP
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/values-v21/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android-pro-listview/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Advanced ListView
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/values-v21/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | HMKCODE App
5 | Hello world!
6 | Settings
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-clean-http-async-task/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Clean HTTP AsyncTask
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/user-interface/readme.md:
--------------------------------------------------------------------------------
1 | Android UI
2 | ==========
3 |
4 | Android offers a set of views that offer you a standard UI layout and input controls.
5 | `View` is the parent object of all user interface elements in Android app. View draws a components such buttons or text fields that users can interact with.
6 |
7 |
--------------------------------------------------------------------------------
/android-sqlite/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-camera-app/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-gcm-client/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-http-client/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-post-json/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-pro-listview/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-recyclerview/res/drawable-hdpi/border.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
--------------------------------------------------------------------------------
/android-custom-listview/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-http-get-json/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-social-signin/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-start-activity/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-clean-http-async-task/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/android-custom-view/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/edittext_default_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/android-pro-listview/res/drawable-hdpi/rectangle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | 128dp
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | 128dp
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/linearlayout_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/linearlayout_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/android-draw-happy-face/src/com/hmkcode/drawing/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.drawing;
2 |
3 |
4 | import android.app.Activity;
5 |
6 | public class MainActivity extends Activity {
7 |
8 | protected void onCreate(android.os.Bundle savedInstanceState) {
9 | super.onCreate(savedInstanceState);
10 | setContentView(R.layout.activity_main);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android-navigation-drawer/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/android-options-menu/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App
5 |
6 | Search
7 | Copy
8 | Share
9 |
10 | Hello world!
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android-L-preview/src/com/hmkcode/android/L/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.L;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 |
6 |
7 | public class MainActivity extends Activity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_main);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/android-canvas-donut-chart/src/com/hmkcode/views/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.views;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 |
6 |
7 | public class MainActivity extends Activity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_main);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 | 16dp
7 | 256dp
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android-http/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android-start-activity/src/com/hmkcode/android/AnotherActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 |
6 | public class AnotherActivity extends Activity {
7 |
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | // TODO Auto-generated method stub
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_another);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/edittext_top_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
10 |
11 |
--------------------------------------------------------------------------------
/android-http/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/edittext_bottom_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
9 |
11 |
12 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/src/com/hmkcode/android/sign/SignInActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.sign;
2 |
3 | import android.os.Bundle;
4 | import android.app.Activity;
5 |
6 | public class SignInActivity extends Activity {
7 |
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | setContentView(R.layout.activity_sign_in_screen);
12 | }
13 |
14 |
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android-clean-http-async-task/src/com/hmkcode/http/HttpHandler.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.http;
2 |
3 | import org.apache.http.client.methods.HttpUriRequest;
4 |
5 | import com.hmkcode.http.AsyncHttpTask;
6 |
7 | public abstract class HttpHandler {
8 |
9 | public abstract HttpUriRequest getHttpRequestMethod();
10 |
11 | public abstract void onResponse(String result);
12 |
13 | public void execute(){
14 | new AsyncHttpTask(this).execute();
15 | }
16 |
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/layers_fb_button_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 | -
8 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/src/com/hmkcode/android/sign/SignUpActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.sign;
2 |
3 | import android.os.Bundle;
4 | import android.app.Activity;
5 | import android.view.Menu;
6 |
7 | public class SignUpActivity extends Activity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_sign_up_screen);
13 | }
14 |
15 |
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/layers_twitter_button_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 | -
8 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/layers_gplus_button_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 | -
8 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android-pro-listview/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android-custom-listview/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android-L-preview/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android-navigation-drawer/res/layout/drawer_listview_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/android-options-menu/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android-get-last-location-fused-api/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/src/main/res/layout/fragment_first.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/src/main/res/layout/fragment_second.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #CC000000
4 |
5 |
6 | #ED1C24
7 | #CC0000
8 | #B3E5FC
9 | #ED1C24
10 | #ffffff
11 | #ffffff
12 | #FFFFFF
13 | #B6B6B6
14 |
15 |
--------------------------------------------------------------------------------
/android-start-activity/res/layout/activity_another.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/android-options-menu/src/com/hmkcode/android/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import android.os.Bundle;
4 | import android.app.Activity;
5 | import android.view.Menu;
6 |
7 | public class MainActivity extends Activity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_main);
13 | }
14 |
15 | @Override
16 | public boolean onCreateOptionsMenu(Menu menu) {
17 | // Inflate the menu; this adds items to the action bar if it is present.
18 | getMenuInflater().inflate(R.menu.main, menu);
19 | return true;
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/android-recyclerview/src/com/hmkcode/android/recyclerview/ItemData.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.recyclerview;
2 |
3 | public class ItemData {
4 |
5 |
6 | private String title;
7 | private int imageUrl;
8 |
9 | public ItemData(String title,int imageUrl){
10 |
11 | this.title = title;
12 | this.imageUrl = imageUrl;
13 | }
14 |
15 | public String getTitle() {
16 | return title;
17 | }
18 |
19 | public void setTitle(String title) {
20 | this.title = title;
21 | }
22 |
23 | public int getImageUrl() {
24 | return imageUrl;
25 | }
26 |
27 | public void setImageUrl(int imageUrl) {
28 | this.imageUrl = imageUrl;
29 | }
30 |
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/android-social-signin/src/com/hmkcode/android/signin/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.signin;
2 |
3 | import android.os.Bundle;
4 | import android.app.Activity;
5 | import android.view.Menu;
6 |
7 | public class MainActivity extends Activity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_main);
13 | }
14 |
15 | @Override
16 | public boolean onCreateOptionsMenu(Menu menu) {
17 | // Inflate the menu; this adds items to the action bar if it is present.
18 | getMenuInflater().inflate(R.menu.main, menu);
19 | return true;
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/android-custom-listview/src/com/hmkcode/android/Item.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | public class Item {
4 |
5 | private String title;
6 | private String description;
7 |
8 |
9 | public Item(String title, String description) {
10 | super();
11 | this.title = title;
12 | this.description = description;
13 | }
14 | public String getTitle() {
15 | return title;
16 | }
17 | public void setTitle(String title) {
18 | this.title = title;
19 | }
20 | public String getDescription() {
21 | return description;
22 | }
23 | public void setDescription(String description) {
24 | this.description = description;
25 | }
26 |
27 |
28 |
29 |
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/layout/activity_main_1.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/android-navigation-drawer/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App
5 | Settings
6 | Hello world!
7 |
8 |
9 | - Item 1
10 | - Item 2
11 | - Item 3
12 | - Item 4
13 | - Item 5
14 | - Item 6
15 |
16 |
17 | Open navigation drawer
18 | Close navigation drawer
19 |
20 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/src/com/hmkcode/android/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.ActionBarActivity;
5 | import android.view.Menu;
6 |
7 | public class MainActivity extends ActionBarActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_main);
13 | }
14 |
15 | @Override
16 | public boolean onCreateOptionsMenu(Menu menu) {
17 | // Inflate the menu; this adds items to the action bar if it is present.
18 | getMenuInflater().inflate(R.menu.main, menu);
19 | return true;
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/android-whatsapp-profile-screen/res/drawable-hdpi/edit_states.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 | -
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 |
5 | repositories {
6 | google()
7 | jcenter()
8 | }
9 | dependencies {
10 | classpath 'com.android.tools.build:gradle:3.0.1'
11 |
12 |
13 | // NOTE: Do not place your application dependencies here; they belong
14 | // in the individual module build.gradle files
15 | }
16 | }
17 |
18 | allprojects {
19 | repositories {
20 | google()
21 | jcenter()
22 | }
23 | }
24 |
25 | task clean(type: Delete) {
26 | delete rootProject.buildDir
27 | }
28 |
--------------------------------------------------------------------------------
/android-recyclerview/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
17 |
18 |
--------------------------------------------------------------------------------
/android-gcm-client/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
13 |
14 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/layout/nav_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
17 |
18 |
--------------------------------------------------------------------------------
/android-sqlite/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/android-options-menu/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/android-read-browser-bookmark/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | HMKCODE App
5 | Hello world!
6 | Settings
7 | Find
8 |
9 | Android 5.0 Lollipop was one of the most significant Android releases ever,
10 | in no small part due to the introduction of material design,
11 | a new design language that refreshed the entire Android experience
12 |
13 |
14 | Open navigation drawer
15 | Close navigation drawer
16 |
17 |
18 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/android-sqlite/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-camera-app/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-gcm-client/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-http-client/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-post-json/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-pro-listview/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-custom-view/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-draw-happy-face/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-http-get-json/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-navigation-drawer/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-social-signin/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-start-activity/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-canvas-donut-chart/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-clean-http-async-task/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-menu-events-change/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-input-text-layout/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-22
15 | android.library.reference.1=..\\..\\sdk\\extras\\android\\support\\design
16 | android.library.reference.2=../../sdk/extras/android/support/v7/appcompat
17 |
--------------------------------------------------------------------------------
/android-options-menu/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/android-post-json/server-side-code/src/com/hmkcode/vo/Person.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.vo;
2 |
3 | public class Person {
4 |
5 | private String name;
6 | private String country;
7 | private String twitter;
8 |
9 | public String getName() {
10 | return name;
11 | }
12 |
13 | public void setName(String name) {
14 | this.name = name;
15 | }
16 |
17 | public String getCountry() {
18 | return country;
19 | }
20 |
21 | public void setCountry(String country) {
22 | this.country = country;
23 | }
24 |
25 | public String getTwitter() {
26 | return twitter;
27 | }
28 |
29 | public void setTwitter(String twitter) {
30 | this.twitter = twitter;
31 | }
32 |
33 | @Override
34 | public String toString() {
35 | return "Person [name=" + name + ", country=" + country + ", twitter="
36 | + twitter + "]";
37 | }
38 |
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/android-post-json/src/com/hmkcode/android/vo/Person.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.vo;
2 |
3 | public class Person {
4 |
5 | private String name;
6 | private String country;
7 | private String twitter;
8 |
9 | public String getName() {
10 | return name;
11 | }
12 |
13 | public void setName(String name) {
14 | this.name = name;
15 | }
16 |
17 | public String getCountry() {
18 | return country;
19 | }
20 |
21 | public void setCountry(String country) {
22 | this.country = country;
23 | }
24 |
25 | public String getTwitter() {
26 | return twitter;
27 | }
28 |
29 | public void setTwitter(String twitter) {
30 | this.twitter = twitter;
31 | }
32 |
33 | @Override
34 | public String toString() {
35 | return "Person [name=" + name + ", country=" + country + ", twitter="
36 | + twitter + "]";
37 | }
38 |
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/java-post-gcm/src/test/java/com/hmkcode/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/android-post-json/server-side-code/war/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | SpringMVC
4 |
5 | index.html
6 |
7 |
8 |
9 | jsonservlet
10 | com.hmkcode.servlet.JSONServlet
11 |
12 |
13 |
14 | jsonservlet
15 | /jsonservlet
16 |
17 |
--------------------------------------------------------------------------------
/java-post-gcm/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android-get-current-location/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
15 |
16 |
17 |
24 |
25 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
22 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/src/main/java/com/hmkcode/android/fragments/SecondFragment.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.fragments;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import com.hmkcode.android.R;
10 |
11 |
12 | public class SecondFragment extends Fragment {
13 |
14 | public SecondFragment() {}
15 |
16 | @Override
17 | public void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 |
20 | }
21 |
22 | @Override
23 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
24 | Bundle savedInstanceState) {
25 | return inflater.inflate(R.layout.fragment_second, container, false);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/android-L-preview/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/src/main/java/com/hmkcode/android/fragments/FirstFragment.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.fragments;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import com.hmkcode.android.R;
10 |
11 |
12 | public class FirstFragment extends Fragment {
13 |
14 |
15 | public FirstFragment() {}
16 |
17 | @Override
18 | public void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 |
21 | }
22 |
23 | @Override
24 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
25 | Bundle savedInstanceState) {
26 | return inflater.inflate(R.layout.fragment_first, container, false);
27 | }
28 |
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/android-whatsapp-profile-screen/res/drawable-hdpi/image_state.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
7 |
10 |
12 |
13 |
14 |
15 | -
16 |
17 |
18 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/android-http/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/menu/navigation_drawer_items.xml:
--------------------------------------------------------------------------------
1 |
23 |
--------------------------------------------------------------------------------
/android-gcm-client/src/com/hmkcode/android/gcm/GcmBroadcastReceiver.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.gcm;
2 |
3 | import android.app.Activity;
4 | import android.content.ComponentName;
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.support.v4.content.WakefulBroadcastReceiver;
8 |
9 | public class GcmBroadcastReceiver extends WakefulBroadcastReceiver {
10 |
11 |
12 | @Override
13 | public void onReceive(Context context, Intent intent) {
14 |
15 | // Explicitly specify that GcmMessageHandler will handle the intent.
16 | ComponentName comp = new ComponentName(context.getPackageName(),
17 | GcmMessageHandler.class.getName());
18 |
19 | // Start the service, keeping the device awake while it is launching.
20 | startWakefulService(context, (intent.setComponent(comp)));
21 | setResultCode(Activity.RESULT_OK);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/android-custom-listview/res/layout/row.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
16 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Sign In&Up
5 | Settings
6 | Hello world!
7 |
8 |
21 |
22 |
--------------------------------------------------------------------------------
/android-social-signin/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Social Network Sign-In
5 | Settings
6 | Hello world!
7 |
8 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/android-sqlite/src/com/hmkcode/android/model/Book.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.model;
2 |
3 |
4 |
5 | public class Book {
6 |
7 | private int id;
8 | private String title;
9 | private String author;
10 |
11 | public Book(){}
12 |
13 | public Book(String title, String author) {
14 | super();
15 | this.title = title;
16 | this.author = author;
17 | }
18 |
19 | public int getId() {
20 | return id;
21 | }
22 | public void setId(int id) {
23 | this.id = id;
24 | }
25 | public String getTitle() {
26 | return title;
27 | }
28 | public void setTitle(String title) {
29 | this.title = title;
30 | }
31 | public String getAuthor() {
32 | return author;
33 | }
34 | public void setAuthor(String author) {
35 | this.author = author;
36 | }
37 |
38 | @Override
39 | public String toString() {
40 | return "Book [id=" + id + ", title=" + title + ", author=" + author
41 | + "]";
42 | }
43 |
44 |
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/android-custom-view/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-canvas-donut-chart/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/button_fb_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
7 |
10 |
12 |
13 |
14 |
15 | -
16 |
17 |
21 |
24 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/button_gplus_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
7 |
10 |
12 |
13 |
14 |
15 | -
16 |
17 |
21 |
24 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android-L-preview/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-social-signin/res/drawable-hdpi/button_twitter_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
7 |
10 |
12 |
13 |
14 |
15 | -
16 |
17 |
21 |
24 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android-input-text-layout/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-post-json/server-side-code/src/META-INF/jdoconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/android-recyclerview/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/res/drawable-hdpi/button_default_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
7 |
10 |
12 |
13 |
14 |
15 | -
16 |
17 |
21 |
24 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android-sqlite/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-custom-listview/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-options-menu/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-pro-listview/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-menu-events-change/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-navigation-drawer/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-social-signin/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-canvas-donut-chart/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
12 |
13 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/android-draw-happy-face/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 | e
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android-pro-listview/res/layout/group_header_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
19 |
20 |
21 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
15 |
16 |
22 |
23 |
--------------------------------------------------------------------------------
/android-navigation-drawer/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
14 |
15 |
26 |
27 |
--------------------------------------------------------------------------------
/android-actionbar-for-2.x.x/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android-read-browser-bookmark/src/com/hmkcode/browser/bookmark/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.browser.bookmark;
2 |
3 | import android.app.Activity;
4 | import android.database.Cursor;
5 | import android.os.Bundle;
6 | import android.provider.Browser;
7 |
8 | import android.widget.ListView;
9 |
10 | public class MainActivity extends Activity {
11 |
12 | ListView listView;
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_main);
17 | listView = (ListView) findViewById(R.id.listView1);
18 | getBrowserHist();
19 | }
20 |
21 | public void getBrowserHist() {
22 |
23 | Cursor cursor = getContentResolver().query(Browser.BOOKMARKS_URI, null, null, null, null);
24 |
25 | // Cursor cursor = getContentResolver().query(Browser.SEARCHES_URI, null, null, null, null);
26 |
27 | MyCursorAdapter myCursorAdapter = new MyCursorAdapter(this,cursor,0);
28 | listView.setAdapter(myCursorAdapter);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/android-http-client/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
17 |
18 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/android-http-get-json/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
17 |
18 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/android-show-image-and-path/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/src/main/java/com/hmkcode/android/adapters/MyFragmentPagerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.adapters;
2 |
3 | import android.support.v4.app.Fragment;
4 | import android.support.v4.app.FragmentManager;
5 | import android.support.v4.app.FragmentPagerAdapter;
6 |
7 | import com.hmkcode.android.fragments.FirstFragment;
8 | import com.hmkcode.android.fragments.SecondFragment;
9 |
10 | /**
11 | * Created by Hani on 12/22/2017.
12 | */
13 |
14 | public class MyFragmentPagerAdapter extends FragmentPagerAdapter {
15 |
16 |
17 | public MyFragmentPagerAdapter(FragmentManager fm) {
18 | super(fm);
19 | }
20 |
21 | @Override
22 | public Fragment getItem(int position) {
23 | switch (position) {
24 | case 0:
25 | return new FirstFragment();
26 | case 1:
27 | return new SecondFragment();
28 | default:
29 | return null;
30 | }
31 | }
32 |
33 | @Override
34 | public int getCount() {
35 | return 2;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/android-read-browser-bookmark/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/android-start-activity/src/com/hmkcode/android/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import android.os.Bundle;
4 | import android.app.Activity;
5 | import android.content.Intent;
6 | import android.view.Menu;
7 | import android.view.View;
8 | import android.view.View.OnClickListener;
9 | import android.widget.Button;
10 |
11 | public class MainActivity extends Activity implements OnClickListener {
12 |
13 | Button btnStartAnotherActivity;
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.activity_main);
18 |
19 | btnStartAnotherActivity = (Button) findViewById(R.id.btnStartAnotherActivity);
20 |
21 | btnStartAnotherActivity.setOnClickListener(this);
22 | }
23 |
24 |
25 | @Override
26 | public void onClick(View view) {
27 |
28 | Intent inent = new Intent(this, AnotherActivity.class);
29 |
30 | // calling an activity using action name
31 | // Intent inent = new Intent("com.hmkcode.android.ANOTHER_ACTIVITY");
32 |
33 | startActivity(inent);
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/android-pro-listview/src/com/hmkcode/android/Model.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | public class Model {
4 |
5 | private int icon;
6 | private String title;
7 | private String counter;
8 |
9 | private boolean isGroupHeader = false;
10 |
11 | public Model(String title) {
12 | this(-1,title,null);
13 | isGroupHeader = true;
14 | }
15 | public Model(int icon, String title, String counter) {
16 | super();
17 | this.icon = icon;
18 | this.title = title;
19 | this.counter = counter;
20 | }
21 | public int getIcon() {
22 | return icon;
23 | }
24 | public void setIcon(int icon) {
25 | this.icon = icon;
26 | }
27 | public String getTitle() {
28 | return title;
29 | }
30 | public void setTitle(String title) {
31 | this.title = title;
32 | }
33 | public String getCounter() {
34 | return counter;
35 | }
36 | public void setCounter(String counter) {
37 | this.counter = counter;
38 | }
39 | public boolean isGroupHeader() {
40 | return isGroupHeader;
41 | }
42 | public void setGroupHeader(boolean isGroupHeader) {
43 | this.isGroupHeader = isGroupHeader;
44 | }
45 |
46 |
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/android-camera-app/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/android-clean-http-async-task/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/android-http-client/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/android-http-get-json/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/android-post-json/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/android-start-activity/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
16 |
17 |
25 |
26 |
--------------------------------------------------------------------------------
/android-draw-happy-face/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/android-input-text-layout/src/com/hmkcode/inputtextlayout/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.inputtextlayout;
2 |
3 | import android.support.v7.app.ActionBarActivity;
4 | import android.os.Bundle;
5 | import android.view.Menu;
6 | import android.view.MenuItem;
7 |
8 | public class MainActivity extends ActionBarActivity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_main);
14 | }
15 |
16 | @Override
17 | public boolean onCreateOptionsMenu(Menu menu) {
18 | // Inflate the menu; this adds items to the action bar if it is present.
19 | getMenuInflater().inflate(R.menu.main, menu);
20 | return true;
21 | }
22 |
23 | @Override
24 | public boolean onOptionsItemSelected(MenuItem item) {
25 | // Handle action bar item clicks here. The action bar will
26 | // automatically handle clicks on the Home/Up button, so long
27 | // as you specify a parent activity in AndroidManifest.xml.
28 | int id = item.getItemId();
29 | if (id == R.id.action_settings) {
30 | return true;
31 | }
32 | return super.onOptionsItemSelected(item);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/android-whatsapp-profile-screen/res/drawable-hdpi/textview_border.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 |
10 | -
11 |
12 |
13 |
14 |
15 |
16 |
17 | -
18 |
19 |
20 |
21 |
22 |
23 |
24 | -
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/java-post-gcm/src/main/java/com/hmkcode/vo/Content.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.vo;
2 |
3 | import java.io.Serializable;
4 | import java.util.HashMap;
5 | import java.util.LinkedList;
6 | import java.util.List;
7 | import java.util.Map;
8 |
9 | public class Content implements Serializable {
10 |
11 |
12 |
13 | private List registration_ids;
14 | private Map data;
15 |
16 |
17 | public void addRegId(String regId){
18 | if(registration_ids == null)
19 | registration_ids = new LinkedList();
20 | registration_ids.add(regId);
21 | }
22 |
23 | public void createData(String title, String message){
24 | if(data == null)
25 | data = new HashMap();
26 |
27 | data.put("title", title);
28 | data.put("message", message);
29 | }
30 |
31 |
32 | public List getRegistration_ids() {
33 | return registration_ids;
34 | }
35 |
36 | public void setRegistration_ids(List registration_ids) {
37 | this.registration_ids = registration_ids;
38 | }
39 |
40 | public Map getData() {
41 | return data;
42 | }
43 |
44 | public void setData(Map data) {
45 | this.data = data;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | defaultConfig {
6 | applicationId "com.hmkcode.android"
7 | minSdkVersion 19
8 | targetSdkVersion 26
9 | versionCode 1
10 | versionName "1.0"
11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation fileTree(dir: 'libs', include: ['*.jar'])
23 | implementation 'com.android.support:appcompat-v7:26.1.0'
24 | implementation 'com.android.support.constraint:constraint-layout:1.0.2'
25 | implementation 'com.android.support:support-v4:26.1.0'
26 | compile 'com.android.support:design:26.1.0'
27 | testImplementation 'junit:junit:4.12'
28 | androidTestImplementation 'com.android.support.test:runner:1.0.1'
29 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
30 | }
31 |
--------------------------------------------------------------------------------
/android-post-json/server-side-code/src/log4j.properties:
--------------------------------------------------------------------------------
1 | # A default log4j configuration for log4j users.
2 | #
3 | # To use this configuration, deploy it into your application's WEB-INF/classes
4 | # directory. You are also encouraged to edit it as you like.
5 |
6 | # Configure the console as our one appender
7 | log4j.appender.A1=org.apache.log4j.ConsoleAppender
8 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout
9 | log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n
10 |
11 | # tighten logging on the DataNucleus Categories
12 | log4j.category.DataNucleus.JDO=WARN, A1
13 | log4j.category.DataNucleus.Persistence=WARN, A1
14 | log4j.category.DataNucleus.Cache=WARN, A1
15 | log4j.category.DataNucleus.MetaData=WARN, A1
16 | log4j.category.DataNucleus.General=WARN, A1
17 | log4j.category.DataNucleus.Utility=WARN, A1
18 | log4j.category.DataNucleus.Transaction=WARN, A1
19 | log4j.category.DataNucleus.Datastore=WARN, A1
20 | log4j.category.DataNucleus.ClassLoading=WARN, A1
21 | log4j.category.DataNucleus.Plugin=WARN, A1
22 | log4j.category.DataNucleus.ValueGeneration=WARN, A1
23 | log4j.category.DataNucleus.Enhancer=WARN, A1
24 | log4j.category.DataNucleus.SchemaTool=WARN, A1
25 |
--------------------------------------------------------------------------------
/android-custom-view/src/com/hmkcode/views/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.views;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.View.OnClickListener;
7 | import android.widget.TextView;
8 |
9 |
10 | public class MainActivity extends Activity implements OnClickListener {
11 |
12 | SimpleView svCircle;
13 | SimpleView svSquare;
14 | TextView tv;
15 |
16 | @Override
17 | protected void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.activity_main);
20 |
21 | svCircle = (SimpleView) findViewById(R.id.simpleViewCircle);
22 | svSquare = (SimpleView) findViewById(R.id.simpleViewSquare);
23 | tv = (TextView) findViewById(R.id.tv);
24 |
25 | svCircle.setOnClickListener(this);
26 | svSquare.setOnClickListener(this);
27 |
28 | }
29 |
30 |
31 | @Override
32 | public void onClick(View view) {
33 |
34 | switch(view.getId()){
35 | case R.id.simpleViewCircle:
36 | tv.setText("Circle");
37 | break;
38 | case R.id.simpleViewSquare:
39 | tv.setText("Square");
40 | break;
41 |
42 | }
43 |
44 | }
45 |
46 |
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/java-post-gcm/src/main/java/com/hmkcode/App.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode;
2 |
3 | import java.io.BufferedReader;
4 | import java.io.DataOutputStream;
5 | import java.io.IOException;
6 | import java.io.InputStreamReader;
7 | import java.net.HttpURLConnection;
8 | import java.net.MalformedURLException;
9 | import java.net.URL;
10 |
11 | import com.fasterxml.jackson.databind.ObjectMapper;
12 | import com.hmkcode.vo.Content;
13 |
14 | /**
15 | * Hello world!
16 | *
17 | */
18 | public class App
19 | {
20 | public static void main( String[] args )
21 | {
22 | System.out.println( "Sending POST to GCM" );
23 |
24 | String apiKey = "AIzaSyB8azikXJKi_NjpWcVNJVO0dGFG1WuNJlg";
25 | Content content = createContent();
26 |
27 | POST2GCM.post(apiKey, content);
28 | }
29 |
30 | public static Content createContent(){
31 |
32 | Content c = new Content();
33 |
34 | c.addRegId("APA91bFqnQzp0z5IpXWdth1lagGQZw1PTbdBAD13c-UQ0T76BBYVsFrY96MA4SFduBW9RzDguLaad-7l4QWluQcP6zSoX1HSUaAzQYSmI93hMJQUYEdRLpBOpmAGkjckuoVFt6icRjgXKuOpqZEedWUvVsKOqRruXuAe3mDbkimcNAMpc7XMF8M");
35 | c.createData("Test Title", "Test Message");
36 |
37 | return c;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/layout/activity_main_2.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
15 |
16 |
17 |
27 |
28 |
--------------------------------------------------------------------------------
/android-post-json/server-side-code/war/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Spring MVC - View (JSON, XML, PDF, Excel)
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 | hmkcode.com
20 | The data in this demo is hard-coded in a Java class not as
21 | mentioned in the article in xml file since GAE is not allowing reading file.
22 | Spring MVC - View (JSON, XML, PDF, Excel)
23 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/android-custom-listview/src/com/hmkcode/android/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import java.util.ArrayList;
4 |
5 | import android.app.Activity;
6 | import android.app.ListActivity;
7 | import android.os.Bundle;
8 | import android.widget.ListView;
9 |
10 | public class MainActivity extends ListActivity {
11 |
12 |
13 | public void onCreate(Bundle icicle) {
14 | super.onCreate(icicle);
15 |
16 | // if extending Activity
17 | //setContentView(R.layout.activity_main);
18 |
19 | // 1. pass context and data to the custom adapter
20 | MyAdapter adapter = new MyAdapter(this, generateData());
21 |
22 | // if extending Activity 2. Get ListView from activity_main.xml
23 | //ListView listView = (ListView) findViewById(R.id.listview);
24 |
25 | // 3. setListAdapter
26 | //listView.setAdapter(adapter); if extending Activity
27 | setListAdapter(adapter);
28 | }
29 |
30 |
31 | private ArrayList- generateData(){
32 | ArrayList
- items = new ArrayList
- ();
33 | items.add(new Item("Item 1","First Item on the list"));
34 | items.add(new Item("Item 2","Second Item on the list"));
35 | items.add(new Item("Item 3","Third Item on the list"));
36 |
37 | return items;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/android-sign-in-up-screen/src/com/hmkcode/android/sign/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.sign;
2 |
3 | import android.os.Bundle;
4 | import android.app.Activity;
5 | import android.content.Intent;
6 | import android.view.Menu;
7 | import android.view.View;
8 | import android.view.View.OnClickListener;
9 | import android.widget.Button;
10 |
11 | public class MainActivity extends Activity implements OnClickListener {
12 |
13 | Button btnSignIn;
14 | Button btnSignUp;
15 | @Override
16 | protected void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.activity_main);
19 |
20 | btnSignIn = (Button) findViewById(R.id.btnSingIn);
21 | btnSignUp = (Button) findViewById(R.id.btnSignUp);
22 |
23 | btnSignIn.setOnClickListener(this);
24 | btnSignUp.setOnClickListener(this);
25 | }
26 | @Override
27 | public void onClick(View v) {
28 | Intent i = null;
29 | switch(v.getId()){
30 | case R.id.btnSingIn:
31 | i = new Intent(this,SignInActivity.class);
32 | break;
33 | case R.id.btnSignUp:
34 | i = new Intent(this,SignUpActivity.class);
35 | break;
36 | }
37 | startActivity(i);
38 | }
39 |
40 |
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/android-sqlite/src/com/hmkcode/android/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import java.util.List;
4 |
5 | import com.hmkcode.android.model.Book;
6 | import com.hmkcode.android.sqlite.MySQLiteHelper;
7 |
8 | import android.os.Bundle;
9 | import android.app.Activity;
10 |
11 |
12 | public class MainActivity extends Activity {
13 |
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.activity_main);
18 |
19 |
20 | MySQLiteHelper db = new MySQLiteHelper(this);
21 |
22 | /**
23 | * CRUD Operations
24 | * */
25 | // add Books
26 | db.addBook(new Book("Android Application Development Cookbook", "Wei Meng Lee"));
27 | db.addBook(new Book("Android Programming: The Big Nerd Ranch Guide", "Bill Phillips and Brian Hardy"));
28 | db.addBook(new Book("Learn Android App Development", "Wallace Jackson"));
29 |
30 | // get all books
31 | List list = db.getAllBooks();
32 |
33 | // delete one book
34 | db.deleteBook(list.get(0));
35 |
36 | // get all books
37 | db.getAllBooks();
38 |
39 |
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/android-clean-http-async-task/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
16 |
17 |
24 |
25 |
30 |
31 |
--------------------------------------------------------------------------------
/android-get-last-location-fused-api/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android-get-current-location/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/android-start-activity/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/android-pro-listview/src/com/hmkcode/android/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import java.util.ArrayList;
4 |
5 | import android.app.Activity;
6 | import android.app.ListActivity;
7 | import android.os.Bundle;
8 | import android.widget.ListView;
9 |
10 | public class MainActivity extends ListActivity {
11 |
12 |
13 | public void onCreate(Bundle bundle) {
14 | super.onCreate(bundle);
15 |
16 | // if extending Activity
17 | //setContentView(R.layout.activity_main);
18 |
19 | // 1. pass context and data to the custom adapter
20 | MyAdapter adapter = new MyAdapter(this, generateData());
21 |
22 | // if extending Activity 2. Get ListView from activity_main.xml
23 | //ListView listView = (ListView) findViewById(R.id.listview);
24 |
25 | // 3. setListAdapter
26 | //listView.setAdapter(adapter); if extending Activity
27 | setListAdapter(adapter);
28 | }
29 |
30 |
31 | private ArrayList generateData(){
32 | ArrayList models = new ArrayList();
33 | models.add(new Model("Group Title"));
34 | models.add(new Model(R.drawable.action_help_32,"Menu Item 1","1"));
35 | models.add(new Model(R.drawable.action_search_32,"Menu Item 2","2"));
36 | models.add(new Model(R.drawable.collections_cloud_32,"Menu Item 3","12"));
37 |
38 | return models;
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/android-recyclerview/res/layout/item_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
21 |
22 |
23 |
34 |
35 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/layout/activity_main_3.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
14 |
15 |
20 |
21 |
22 |
23 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android-post-json/server-side-code/war/post-json/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Java Servlet JSON
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
Java Servlet that Receives POST Request with JSON Data
20 |
21 |
22 | Warning! Invalid input.
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
Visitors
34 |
35 |
36 | | Name |
37 | Country |
38 | Twitter |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/java-post-gcm/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.hmkcode
6 | java-post-gcm
7 | 1.0-SNAPSHOT
8 | jar
9 |
10 | java-post-gcm
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | com.fasterxml.jackson.core
20 | jackson-core
21 | 2.2.2
22 |
23 |
24 | com.fasterxml.jackson.core
25 | jackson-databind
26 | 2.2.2
27 |
28 |
29 | com.fasterxml.jackson.core
30 | jackson-annotations
31 | 2.2.2
32 |
33 |
34 | junit
35 | junit
36 | 3.8.1
37 | test
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/user-interface/android-swipe-views-tabs/app/src/main/java/com/hmkcode/android/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import android.support.v4.view.ViewPager;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.os.Bundle;
6 | import android.support.design.widget.TabLayout;
7 |
8 | import com.hmkcode.android.adapters.MyFragmentPagerAdapter;
9 |
10 | public class MainActivity extends AppCompatActivity {
11 |
12 | MyFragmentPagerAdapter myFragmentPagerAdapter;
13 | ViewPager mViewPager;
14 | TabLayout tabLayout;
15 |
16 | @Override
17 | protected void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.activity_main);
20 |
21 | mViewPager = (ViewPager) findViewById(R.id.pager);
22 | tabLayout = (TabLayout) findViewById(R.id.tabLayout);
23 |
24 | setPagerAdapter();
25 | setTabLayout();
26 | }
27 |
28 | private void setPagerAdapter(){
29 |
30 | myFragmentPagerAdapter = new MyFragmentPagerAdapter(getSupportFragmentManager());
31 | mViewPager.setAdapter(myFragmentPagerAdapter);
32 |
33 | }
34 |
35 | private void setTabLayout() {
36 |
37 | tabLayout.setupWithViewPager(mViewPager);
38 |
39 | tabLayout.getTabAt(0).setText("First");
40 | tabLayout.getTabAt(1).setText("Second");
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/android-recyclerview/src/com/hmkcode/android/recyclerview/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.recyclerview;
2 |
3 | import android.support.v7.widget.DefaultItemAnimator;
4 | import android.support.v7.widget.LinearLayoutManager;
5 | import android.support.v7.widget.RecyclerView;
6 | import android.app.Activity;
7 | import android.os.Bundle;
8 |
9 | public class MainActivity extends Activity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_main);
15 |
16 | RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
17 |
18 |
19 | ItemData itemsData[] = { new ItemData("Help",R.drawable.help),
20 | new ItemData("Delete",R.drawable.content_discard),
21 | new ItemData("Cloud",R.drawable.collections_cloud),
22 | new ItemData("Favorite",R.drawable.rating_favorite),
23 | new ItemData("Like",R.drawable.rating_good),
24 | new ItemData("Rating",R.drawable.rating_important)};
25 |
26 |
27 | recyclerView.setLayoutManager(new LinearLayoutManager(this));
28 |
29 | MyAdapter mAdapter = new MyAdapter(itemsData);
30 | recyclerView.setAdapter(mAdapter);
31 | recyclerView.setItemAnimator(new DefaultItemAnimator());
32 |
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/android-custom-view/src/com/hmkcode/views/SimpleView.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.views;
2 |
3 | import android.content.Context;
4 | import android.content.res.TypedArray;
5 | import android.graphics.Canvas;
6 | import android.graphics.CornerPathEffect;
7 | import android.graphics.Paint;
8 | import android.util.AttributeSet;
9 | import android.view.View;
10 |
11 | public class SimpleView extends View {
12 |
13 | float dim;
14 | int shape;
15 | Paint paint;
16 |
17 | public static final int CIRCLE = 0;
18 | public static final int SQUARE = 1;
19 | public SimpleView(Context context, AttributeSet attrs) {
20 | super(context, attrs);
21 |
22 | TypedArray a = context.getTheme().obtainStyledAttributes(
23 | attrs,
24 | R.styleable.SimpleView,
25 | 0, 0
26 | );
27 |
28 | try {
29 | dim = a.getDimension(R.styleable.SimpleView_dim, 20f);
30 | shape = a.getInteger(R.styleable.SimpleView_shape, 0);
31 | } finally {
32 | a.recycle();
33 | }
34 |
35 | paint = new Paint();
36 | paint.setColor(0xfffed325); // yellow
37 | }
38 |
39 | @Override
40 | protected void onDraw(Canvas canvas) {
41 | super.onDraw(canvas);
42 |
43 | // draw circle
44 | switch(shape){
45 | case CIRCLE:
46 | canvas.drawCircle(dim, dim, dim, paint);
47 | break;
48 | case SQUARE:
49 | canvas.drawRect(0, 0, dim, dim, paint);
50 | break;
51 |
52 | }
53 |
54 | }
55 |
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/android-http/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
26 |
27 |
38 |
39 |
--------------------------------------------------------------------------------
/android-input-text-layout/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
16 |
21 |
22 |
23 |
28 |
29 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/android-custom-listview/src/com/hmkcode/android/MyAdapter.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import java.util.ArrayList;
4 |
5 | import android.content.Context;
6 | import android.view.LayoutInflater;
7 | import android.view.View;
8 | import android.view.ViewGroup;
9 | import android.widget.ArrayAdapter;
10 | import android.widget.TextView;
11 |
12 | public class MyAdapter extends ArrayAdapter- {
13 |
14 | private final Context context;
15 | private final ArrayList
- itemsArrayList;
16 |
17 | public MyAdapter(Context context, ArrayList
- itemsArrayList) {
18 |
19 | super(context, R.layout.row, itemsArrayList);
20 |
21 | this.context = context;
22 | this.itemsArrayList = itemsArrayList;
23 | }
24 |
25 | @Override
26 | public View getView(int position, View convertView, ViewGroup parent) {
27 |
28 | // 1. Create inflater
29 | LayoutInflater inflater = (LayoutInflater) context
30 | .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
31 |
32 | // 2. Get rowView from inflater
33 | View rowView = inflater.inflate(R.layout.row, parent, false);
34 |
35 | // 3. Get the two text view from the rowView
36 | TextView labelView = (TextView) rowView.findViewById(R.id.label);
37 | TextView valueView = (TextView) rowView.findViewById(R.id.value);
38 |
39 | // 4. Set the text for textView
40 | labelView.setText(itemsArrayList.get(position).getTitle());
41 | valueView.setText(itemsArrayList.get(position).getDescription());
42 |
43 | // 5. retrn rowView
44 | return rowView;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/android-custom-view/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
13 |
14 |
22 |
23 |
31 |
32 |
38 |
39 |
--------------------------------------------------------------------------------
/android-gcm-client/src/com/hmkcode/android/gcm/GcmMessageHandler.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android.gcm;
2 |
3 | import com.google.android.gms.gcm.GoogleCloudMessaging;
4 |
5 | import android.app.IntentService;
6 | import android.content.Intent;
7 | import android.os.Bundle;
8 | import android.os.Handler;
9 | import android.util.Log;
10 | import android.widget.Toast;
11 |
12 | public class GcmMessageHandler extends IntentService {
13 |
14 | String mes;
15 | private Handler handler;
16 | public GcmMessageHandler() {
17 | super("GcmMessageHandler");
18 | }
19 |
20 | @Override
21 | public void onCreate() {
22 | // TODO Auto-generated method stub
23 | super.onCreate();
24 | handler = new Handler();
25 | }
26 | @Override
27 | protected void onHandleIntent(Intent intent) {
28 | Bundle extras = intent.getExtras();
29 |
30 | GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
31 | // The getMessageType() intent parameter must be the intent you received
32 | // in your BroadcastReceiver.
33 | String messageType = gcm.getMessageType(intent);
34 |
35 | mes = extras.getString("title");
36 | showToast();
37 | Log.i("GCM", "Received : (" +messageType+") "+extras.getString("title"));
38 |
39 |
40 |
41 | GcmBroadcastReceiver.completeWakefulIntent(intent);
42 |
43 | }
44 |
45 | public void showToast(){
46 | handler.post(new Runnable() {
47 | public void run() {
48 | Toast.makeText(getApplicationContext(),mes , Toast.LENGTH_LONG).show();
49 | }
50 | });
51 |
52 | }
53 |
54 |
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/android-pro-listview/res/layout/target_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
18 |
19 |
20 |
27 |
28 |
29 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/android-material-design-appcompat/res/layout/activity_main_4.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
16 |
17 |
25 |
26 |
27 |
37 |
38 |
--------------------------------------------------------------------------------
/android-camera-app/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
19 |
20 |
29 |
30 |
36 |
37 |
43 |
44 |
--------------------------------------------------------------------------------
/android-menu-events-change/src/com/hmkcode/android/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hmkcode.android;
2 |
3 | import android.os.Bundle;
4 | import android.annotation.SuppressLint;
5 | import android.app.Activity;
6 | import android.view.Menu;
7 | import android.view.MenuItem;
8 | import android.widget.Toast;
9 |
10 | @SuppressLint("NewApi")
11 | public class MainActivity extends Activity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_main);
17 | }
18 |
19 | @Override
20 | public boolean onCreateOptionsMenu(Menu menu) {
21 | // Inflate the menu; this adds items to the action bar if it is present.
22 | getMenuInflater().inflate(R.menu.main, menu);
23 | return true;
24 | }
25 |
26 | boolean canAddItem = false;
27 | @Override
28 | public boolean onOptionsItemSelected(MenuItem item) {
29 | Toast toast;
30 | if(item.getItemId() == R.id.action_addItem){
31 | invalidateOptionsMenu();
32 | }
33 | else{
34 | toast = Toast.makeText(this, item.getTitle()+" Clicked!", Toast.LENGTH_SHORT);
35 | toast.show();
36 | }
37 |
38 | return super.onOptionsItemSelected(item);
39 | }
40 |
41 | @Override
42 | public boolean onPrepareOptionsMenu(Menu menu) {
43 |
44 | if(canAddItem){
45 | menu.getItem(0).setIcon(R.drawable.ic_content_remove);
46 | MenuItem mi = menu.add("New Item");
47 | mi.setIcon(R.drawable.ic_location_web_site);
48 | mi.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_IF_ROOM);
49 | canAddItem = false;
50 | }
51 | else{
52 | menu.getItem(0).setIcon(R.drawable.ic_content_new);
53 | canAddItem = true;
54 | }
55 |
56 | return super.onPrepareOptionsMenu(menu);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------