diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index 412eeda..0000000
--- a/.gitattributes
+++ /dev/null
@@ -1,22 +0,0 @@
-# Auto detect text files and perform LF normalization
-* text=auto
-
-# Custom for Visual Studio
-*.cs diff=csharp
-*.sln merge=union
-*.csproj merge=union
-*.vbproj merge=union
-*.fsproj merge=union
-*.dbproj merge=union
-
-# Standard to msysgit
-*.doc diff=astextplain
-*.DOC diff=astextplain
-*.docx diff=astextplain
-*.DOCX diff=astextplain
-*.dot diff=astextplain
-*.DOT diff=astextplain
-*.pdf diff=astextplain
-*.PDF diff=astextplain
-*.rtf diff=astextplain
-*.RTF diff=astextplain
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..e06d208
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright {yyyy} {name of copyright owner}
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
diff --git a/README.md b/README.md
index 62607da..81ad6ac 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,2 @@
-1. **Sending SMS in android Example**
- http://javatechig.com/android/sending-sms-message-in-android/
-2. **Android JSON Feed Reader**
- http://javatechig.com/android/json-feed-reader-in-android/
-3. **Asynchronous image downloader**
- http://javatechig.com/android/download-image-using-asynctask-in-android/
-4. **Asynchronous image loading list**
- http://javatechig.com/android/asynchronous-image-loader-in-android-listview/
-5. **Android app widget example**
- http://javatechig.com/android/app-widgets-example-in-android/
+# Advance Android Tutorials
+This series of tutorials shows you the list of basic tutorials to get you started in Android programming. Checkout our tutorials at https://stacktips.com/topics/android
diff --git a/TODO Android App/gen/android/support/v7/appcompat/R.java b/TODO Android App/gen/android/support/v7/appcompat/R.java
deleted file mode 100644
index e32228a..0000000
--- a/TODO Android App/gen/android/support/v7/appcompat/R.java
+++ /dev/null
@@ -1,616 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-package android.support.v7.appcompat;
-
-public final class R {
- public static final class anim {
- public static final int abc_fade_in = 0x7f040000;
- public static final int abc_fade_out = 0x7f040001;
- public static final int abc_slide_in_bottom = 0x7f040002;
- public static final int abc_slide_in_top = 0x7f040003;
- public static final int abc_slide_out_bottom = 0x7f040004;
- public static final int abc_slide_out_top = 0x7f040005;
- }
- public static final class attr {
- public static final int actionBarDivider = 0x7f01000f;
- public static final int actionBarItemBackground = 0x7f010010;
- public static final int actionBarSize = 0x7f01000e;
- public static final int actionBarSplitStyle = 0x7f01000c;
- public static final int actionBarStyle = 0x7f01000b;
- public static final int actionBarTabBarStyle = 0x7f010008;
- public static final int actionBarTabStyle = 0x7f010007;
- public static final int actionBarTabTextStyle = 0x7f010009;
- public static final int actionBarWidgetTheme = 0x7f01000d;
- public static final int actionButtonStyle = 0x7f010016;
- public static final int actionDropDownStyle = 0x7f010047;
- public static final int actionLayout = 0x7f01004e;
- public static final int actionMenuTextAppearance = 0x7f010011;
- public static final int actionMenuTextColor = 0x7f010012;
- public static final int actionModeBackground = 0x7f01003c;
- public static final int actionModeCloseButtonStyle = 0x7f01003b;
- public static final int actionModeCloseDrawable = 0x7f01003e;
- public static final int actionModeCopyDrawable = 0x7f010040;
- public static final int actionModeCutDrawable = 0x7f01003f;
- public static final int actionModeFindDrawable = 0x7f010044;
- public static final int actionModePasteDrawable = 0x7f010041;
- public static final int actionModePopupWindowStyle = 0x7f010046;
- public static final int actionModeSelectAllDrawable = 0x7f010042;
- public static final int actionModeShareDrawable = 0x7f010043;
- public static final int actionModeSplitBackground = 0x7f01003d;
- public static final int actionModeStyle = 0x7f01003a;
- public static final int actionModeWebSearchDrawable = 0x7f010045;
- public static final int actionOverflowButtonStyle = 0x7f01000a;
- public static final int actionProviderClass = 0x7f010050;
- public static final int actionViewClass = 0x7f01004f;
- public static final int activityChooserViewStyle = 0x7f01006c;
- public static final int background = 0x7f01002f;
- public static final int backgroundSplit = 0x7f010031;
- public static final int backgroundStacked = 0x7f010030;
- public static final int buttonBarButtonStyle = 0x7f010018;
- public static final int buttonBarStyle = 0x7f010017;
- public static final int customNavigationLayout = 0x7f010032;
- public static final int disableChildrenWhenDisabled = 0x7f010054;
- public static final int displayOptions = 0x7f010028;
- public static final int divider = 0x7f01002e;
- public static final int dividerHorizontal = 0x7f01001b;
- public static final int dividerPadding = 0x7f010056;
- public static final int dividerVertical = 0x7f01001a;
- public static final int dropDownListViewStyle = 0x7f010021;
- public static final int dropdownListPreferredItemHeight = 0x7f010048;
- public static final int expandActivityOverflowButtonDrawable = 0x7f01006b;
- public static final int height = 0x7f010026;
- public static final int homeAsUpIndicator = 0x7f010013;
- public static final int homeLayout = 0x7f010033;
- public static final int icon = 0x7f01002c;
- public static final int iconifiedByDefault = 0x7f01005a;
- public static final int indeterminateProgressStyle = 0x7f010035;
- public static final int initialActivityCount = 0x7f01006a;
- public static final int isLightTheme = 0x7f010059;
- public static final int itemPadding = 0x7f010037;
- public static final int listChoiceBackgroundIndicator = 0x7f01004c;
- public static final int listPopupWindowStyle = 0x7f010022;
- public static final int listPreferredItemHeight = 0x7f01001c;
- public static final int listPreferredItemHeightLarge = 0x7f01001e;
- public static final int listPreferredItemHeightSmall = 0x7f01001d;
- public static final int listPreferredItemPaddingLeft = 0x7f01001f;
- public static final int listPreferredItemPaddingRight = 0x7f010020;
- public static final int logo = 0x7f01002d;
- public static final int navigationMode = 0x7f010027;
- public static final int paddingEnd = 0x7f010039;
- public static final int paddingStart = 0x7f010038;
- public static final int panelMenuListTheme = 0x7f01004b;
- public static final int panelMenuListWidth = 0x7f01004a;
- public static final int popupMenuStyle = 0x7f010049;
- public static final int popupPromptView = 0x7f010053;
- public static final int progressBarPadding = 0x7f010036;
- public static final int progressBarStyle = 0x7f010034;
- public static final int prompt = 0x7f010051;
- public static final int queryHint = 0x7f01005b;
- public static final int searchDropdownBackground = 0x7f01005c;
- public static final int searchResultListItemHeight = 0x7f010065;
- public static final int searchViewAutoCompleteTextView = 0x7f010069;
- public static final int searchViewCloseIcon = 0x7f01005d;
- public static final int searchViewEditQuery = 0x7f010061;
- public static final int searchViewEditQueryBackground = 0x7f010062;
- public static final int searchViewGoIcon = 0x7f01005e;
- public static final int searchViewSearchIcon = 0x7f01005f;
- public static final int searchViewTextField = 0x7f010063;
- public static final int searchViewTextFieldRight = 0x7f010064;
- public static final int searchViewVoiceIcon = 0x7f010060;
- public static final int selectableItemBackground = 0x7f010019;
- public static final int showAsAction = 0x7f01004d;
- public static final int showDividers = 0x7f010055;
- public static final int spinnerDropDownItemStyle = 0x7f010058;
- public static final int spinnerMode = 0x7f010052;
- public static final int spinnerStyle = 0x7f010057;
- public static final int subtitle = 0x7f010029;
- public static final int subtitleTextStyle = 0x7f01002b;
- public static final int textAllCaps = 0x7f01006d;
- public static final int textAppearanceLargePopupMenu = 0x7f010014;
- public static final int textAppearanceListItem = 0x7f010023;
- public static final int textAppearanceListItemSmall = 0x7f010024;
- public static final int textAppearanceSearchResultSubtitle = 0x7f010067;
- public static final int textAppearanceSearchResultTitle = 0x7f010066;
- public static final int textAppearanceSmallPopupMenu = 0x7f010015;
- public static final int textColorSearchUrl = 0x7f010068;
- public static final int title = 0x7f010025;
- public static final int titleTextStyle = 0x7f01002a;
- public static final int windowActionBar = 0x7f010000;
- public static final int windowActionBarOverlay = 0x7f010001;
- public static final int windowFixedHeightMajor = 0x7f010006;
- public static final int windowFixedHeightMinor = 0x7f010004;
- public static final int windowFixedWidthMajor = 0x7f010003;
- public static final int windowFixedWidthMinor = 0x7f010005;
- public static final int windowSplitActionBar = 0x7f010002;
- }
- public static final class bool {
- public static final int abc_action_bar_embed_tabs_pre_jb = 0x7f060000;
- public static final int abc_action_bar_expanded_action_views_exclusive = 0x7f060001;
- public static final int abc_config_actionMenuItemAllCaps = 0x7f060005;
- public static final int abc_config_allowActionMenuItemTextWithIcon = 0x7f060004;
- public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f060003;
- public static final int abc_split_action_bar_is_narrow = 0x7f060002;
- }
- public static final class color {
- public static final int abc_search_url_text_holo = 0x7f070003;
- public static final int abc_search_url_text_normal = 0x7f070000;
- public static final int abc_search_url_text_pressed = 0x7f070002;
- public static final int abc_search_url_text_selected = 0x7f070001;
- }
- public static final class dimen {
- public static final int abc_action_bar_default_height = 0x7f080002;
- public static final int abc_action_bar_icon_vertical_padding = 0x7f080003;
- public static final int abc_action_bar_progress_bar_size = 0x7f08000a;
- public static final int abc_action_bar_stacked_max_height = 0x7f080009;
- public static final int abc_action_bar_stacked_tab_max_width = 0x7f080001;
- public static final int abc_action_bar_subtitle_bottom_margin = 0x7f080007;
- public static final int abc_action_bar_subtitle_text_size = 0x7f080005;
- public static final int abc_action_bar_subtitle_top_margin = 0x7f080006;
- public static final int abc_action_bar_title_text_size = 0x7f080004;
- public static final int abc_action_button_min_width = 0x7f080008;
- public static final int abc_config_prefDialogWidth = 0x7f080000;
- public static final int abc_dropdownitem_icon_width = 0x7f080010;
- public static final int abc_dropdownitem_text_padding_left = 0x7f08000e;
- public static final int abc_dropdownitem_text_padding_right = 0x7f08000f;
- public static final int abc_panel_menu_list_width = 0x7f08000b;
- public static final int abc_search_view_preferred_width = 0x7f08000d;
- public static final int abc_search_view_text_min_width = 0x7f08000c;
- public static final int dialog_fixed_height_major = 0x7f080013;
- public static final int dialog_fixed_height_minor = 0x7f080014;
- public static final int dialog_fixed_width_major = 0x7f080011;
- public static final int dialog_fixed_width_minor = 0x7f080012;
- }
- public static final class drawable {
- public static final int abc_ab_bottom_solid_dark_holo = 0x7f020000;
- public static final int abc_ab_bottom_solid_light_holo = 0x7f020001;
- public static final int abc_ab_bottom_transparent_dark_holo = 0x7f020002;
- public static final int abc_ab_bottom_transparent_light_holo = 0x7f020003;
- public static final int abc_ab_share_pack_holo_dark = 0x7f020004;
- public static final int abc_ab_share_pack_holo_light = 0x7f020005;
- public static final int abc_ab_solid_dark_holo = 0x7f020006;
- public static final int abc_ab_solid_light_holo = 0x7f020007;
- public static final int abc_ab_stacked_solid_dark_holo = 0x7f020008;
- public static final int abc_ab_stacked_solid_light_holo = 0x7f020009;
- public static final int abc_ab_stacked_transparent_dark_holo = 0x7f02000a;
- public static final int abc_ab_stacked_transparent_light_holo = 0x7f02000b;
- public static final int abc_ab_transparent_dark_holo = 0x7f02000c;
- public static final int abc_ab_transparent_light_holo = 0x7f02000d;
- public static final int abc_cab_background_bottom_holo_dark = 0x7f02000e;
- public static final int abc_cab_background_bottom_holo_light = 0x7f02000f;
- public static final int abc_cab_background_top_holo_dark = 0x7f020010;
- public static final int abc_cab_background_top_holo_light = 0x7f020011;
- public static final int abc_ic_ab_back_holo_dark = 0x7f020012;
- public static final int abc_ic_ab_back_holo_light = 0x7f020013;
- public static final int abc_ic_cab_done_holo_dark = 0x7f020014;
- public static final int abc_ic_cab_done_holo_light = 0x7f020015;
- public static final int abc_ic_clear = 0x7f020016;
- public static final int abc_ic_clear_disabled = 0x7f020017;
- public static final int abc_ic_clear_holo_light = 0x7f020018;
- public static final int abc_ic_clear_normal = 0x7f020019;
- public static final int abc_ic_clear_search_api_disabled_holo_light = 0x7f02001a;
- public static final int abc_ic_clear_search_api_holo_light = 0x7f02001b;
- public static final int abc_ic_commit_search_api_holo_dark = 0x7f02001c;
- public static final int abc_ic_commit_search_api_holo_light = 0x7f02001d;
- public static final int abc_ic_go = 0x7f02001e;
- public static final int abc_ic_go_search_api_holo_light = 0x7f02001f;
- public static final int abc_ic_menu_moreoverflow_normal_holo_dark = 0x7f020020;
- public static final int abc_ic_menu_moreoverflow_normal_holo_light = 0x7f020021;
- public static final int abc_ic_menu_share_holo_dark = 0x7f020022;
- public static final int abc_ic_menu_share_holo_light = 0x7f020023;
- public static final int abc_ic_search = 0x7f020024;
- public static final int abc_ic_search_api_holo_light = 0x7f020025;
- public static final int abc_ic_voice_search = 0x7f020026;
- public static final int abc_ic_voice_search_api_holo_light = 0x7f020027;
- public static final int abc_item_background_holo_dark = 0x7f020028;
- public static final int abc_item_background_holo_light = 0x7f020029;
- public static final int abc_list_divider_holo_dark = 0x7f02002a;
- public static final int abc_list_divider_holo_light = 0x7f02002b;
- public static final int abc_list_focused_holo = 0x7f02002c;
- public static final int abc_list_longpressed_holo = 0x7f02002d;
- public static final int abc_list_pressed_holo_dark = 0x7f02002e;
- public static final int abc_list_pressed_holo_light = 0x7f02002f;
- public static final int abc_list_selector_background_transition_holo_dark = 0x7f020030;
- public static final int abc_list_selector_background_transition_holo_light = 0x7f020031;
- public static final int abc_list_selector_disabled_holo_dark = 0x7f020032;
- public static final int abc_list_selector_disabled_holo_light = 0x7f020033;
- public static final int abc_list_selector_holo_dark = 0x7f020034;
- public static final int abc_list_selector_holo_light = 0x7f020035;
- public static final int abc_menu_dropdown_panel_holo_dark = 0x7f020036;
- public static final int abc_menu_dropdown_panel_holo_light = 0x7f020037;
- public static final int abc_menu_hardkey_panel_holo_dark = 0x7f020038;
- public static final int abc_menu_hardkey_panel_holo_light = 0x7f020039;
- public static final int abc_search_dropdown_dark = 0x7f02003a;
- public static final int abc_search_dropdown_light = 0x7f02003b;
- public static final int abc_spinner_ab_default_holo_dark = 0x7f02003c;
- public static final int abc_spinner_ab_default_holo_light = 0x7f02003d;
- public static final int abc_spinner_ab_disabled_holo_dark = 0x7f02003e;
- public static final int abc_spinner_ab_disabled_holo_light = 0x7f02003f;
- public static final int abc_spinner_ab_focused_holo_dark = 0x7f020040;
- public static final int abc_spinner_ab_focused_holo_light = 0x7f020041;
- public static final int abc_spinner_ab_holo_dark = 0x7f020042;
- public static final int abc_spinner_ab_holo_light = 0x7f020043;
- public static final int abc_spinner_ab_pressed_holo_dark = 0x7f020044;
- public static final int abc_spinner_ab_pressed_holo_light = 0x7f020045;
- public static final int abc_tab_indicator_ab_holo = 0x7f020046;
- public static final int abc_tab_selected_focused_holo = 0x7f020047;
- public static final int abc_tab_selected_holo = 0x7f020048;
- public static final int abc_tab_selected_pressed_holo = 0x7f020049;
- public static final int abc_tab_unselected_pressed_holo = 0x7f02004a;
- public static final int abc_textfield_search_default_holo_dark = 0x7f02004b;
- public static final int abc_textfield_search_default_holo_light = 0x7f02004c;
- public static final int abc_textfield_search_right_default_holo_dark = 0x7f02004d;
- public static final int abc_textfield_search_right_default_holo_light = 0x7f02004e;
- public static final int abc_textfield_search_right_selected_holo_dark = 0x7f02004f;
- public static final int abc_textfield_search_right_selected_holo_light = 0x7f020050;
- public static final int abc_textfield_search_selected_holo_dark = 0x7f020051;
- public static final int abc_textfield_search_selected_holo_light = 0x7f020052;
- public static final int abc_textfield_searchview_holo_dark = 0x7f020053;
- public static final int abc_textfield_searchview_holo_light = 0x7f020054;
- public static final int abc_textfield_searchview_right_holo_dark = 0x7f020055;
- public static final int abc_textfield_searchview_right_holo_light = 0x7f020056;
- }
- public static final class id {
- public static final int action_bar = 0x7f05001c;
- public static final int action_bar_activity_content = 0x7f050015;
- public static final int action_bar_container = 0x7f05001b;
- public static final int action_bar_overlay_layout = 0x7f05001f;
- public static final int action_bar_root = 0x7f05001a;
- public static final int action_bar_subtitle = 0x7f050023;
- public static final int action_bar_title = 0x7f050022;
- public static final int action_context_bar = 0x7f05001d;
- public static final int action_menu_divider = 0x7f050016;
- public static final int action_menu_presenter = 0x7f050017;
- public static final int action_mode_close_button = 0x7f050024;
- public static final int activity_chooser_view_content = 0x7f050025;
- public static final int always = 0x7f05000b;
- public static final int beginning = 0x7f050011;
- public static final int checkbox = 0x7f05002d;
- public static final int collapseActionView = 0x7f05000d;
- public static final int default_activity_button = 0x7f050028;
- public static final int dialog = 0x7f05000e;
- public static final int disableHome = 0x7f050008;
- public static final int dropdown = 0x7f05000f;
- public static final int edit_query = 0x7f050030;
- public static final int end = 0x7f050013;
- public static final int expand_activities_button = 0x7f050026;
- public static final int expanded_menu = 0x7f05002c;
- public static final int home = 0x7f050014;
- public static final int homeAsUp = 0x7f050005;
- public static final int icon = 0x7f05002a;
- public static final int ifRoom = 0x7f05000a;
- public static final int image = 0x7f050027;
- public static final int listMode = 0x7f050001;
- public static final int list_item = 0x7f050029;
- public static final int middle = 0x7f050012;
- public static final int never = 0x7f050009;
- public static final int none = 0x7f050010;
- public static final int normal = 0x7f050000;
- public static final int progress_circular = 0x7f050018;
- public static final int progress_horizontal = 0x7f050019;
- public static final int radio = 0x7f05002f;
- public static final int search_badge = 0x7f050032;
- public static final int search_bar = 0x7f050031;
- public static final int search_button = 0x7f050033;
- public static final int search_close_btn = 0x7f050038;
- public static final int search_edit_frame = 0x7f050034;
- public static final int search_go_btn = 0x7f05003a;
- public static final int search_mag_icon = 0x7f050035;
- public static final int search_plate = 0x7f050036;
- public static final int search_src_text = 0x7f050037;
- public static final int search_voice_btn = 0x7f05003b;
- public static final int shortcut = 0x7f05002e;
- public static final int showCustom = 0x7f050007;
- public static final int showHome = 0x7f050004;
- public static final int showTitle = 0x7f050006;
- public static final int split_action_bar = 0x7f05001e;
- public static final int submit_area = 0x7f050039;
- public static final int tabMode = 0x7f050002;
- public static final int title = 0x7f05002b;
- public static final int top_action_bar = 0x7f050020;
- public static final int up = 0x7f050021;
- public static final int useLogo = 0x7f050003;
- public static final int withText = 0x7f05000c;
- }
- public static final class integer {
- public static final int abc_max_action_buttons = 0x7f090000;
- }
- public static final class layout {
- public static final int abc_action_bar_decor = 0x7f030000;
- public static final int abc_action_bar_decor_include = 0x7f030001;
- public static final int abc_action_bar_decor_overlay = 0x7f030002;
- public static final int abc_action_bar_home = 0x7f030003;
- public static final int abc_action_bar_tab = 0x7f030004;
- public static final int abc_action_bar_tabbar = 0x7f030005;
- public static final int abc_action_bar_title_item = 0x7f030006;
- public static final int abc_action_bar_view_list_nav_layout = 0x7f030007;
- public static final int abc_action_menu_item_layout = 0x7f030008;
- public static final int abc_action_menu_layout = 0x7f030009;
- public static final int abc_action_mode_bar = 0x7f03000a;
- public static final int abc_action_mode_close_item = 0x7f03000b;
- public static final int abc_activity_chooser_view = 0x7f03000c;
- public static final int abc_activity_chooser_view_include = 0x7f03000d;
- public static final int abc_activity_chooser_view_list_item = 0x7f03000e;
- public static final int abc_expanded_menu_layout = 0x7f03000f;
- public static final int abc_list_menu_item_checkbox = 0x7f030010;
- public static final int abc_list_menu_item_icon = 0x7f030011;
- public static final int abc_list_menu_item_layout = 0x7f030012;
- public static final int abc_list_menu_item_radio = 0x7f030013;
- public static final int abc_popup_menu_item_layout = 0x7f030014;
- public static final int abc_search_dropdown_item_icons_2line = 0x7f030015;
- public static final int abc_search_view = 0x7f030016;
- public static final int abc_simple_decor = 0x7f030017;
- public static final int support_simple_spinner_dropdown_item = 0x7f03001d;
- }
- public static final class string {
- public static final int abc_action_bar_home_description = 0x7f0a0001;
- public static final int abc_action_bar_up_description = 0x7f0a0002;
- public static final int abc_action_menu_overflow_description = 0x7f0a0003;
- public static final int abc_action_mode_done = 0x7f0a0000;
- public static final int abc_activity_chooser_view_see_all = 0x7f0a000a;
- public static final int abc_activitychooserview_choose_application = 0x7f0a0009;
- public static final int abc_searchview_description_clear = 0x7f0a0006;
- public static final int abc_searchview_description_query = 0x7f0a0005;
- public static final int abc_searchview_description_search = 0x7f0a0004;
- public static final int abc_searchview_description_submit = 0x7f0a0007;
- public static final int abc_searchview_description_voice = 0x7f0a0008;
- public static final int abc_shareactionprovider_share_with = 0x7f0a000c;
- public static final int abc_shareactionprovider_share_with_application = 0x7f0a000b;
- }
- public static final class style {
- public static final int TextAppearance_AppCompat_Base_CompactMenu_Dialog = 0x7f0b0063;
- public static final int TextAppearance_AppCompat_Base_SearchResult = 0x7f0b006d;
- public static final int TextAppearance_AppCompat_Base_SearchResult_Subtitle = 0x7f0b006f;
- public static final int TextAppearance_AppCompat_Base_SearchResult_Title = 0x7f0b006e;
- public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Large = 0x7f0b0069;
- public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Small = 0x7f0b006a;
- public static final int TextAppearance_AppCompat_Light_Base_SearchResult = 0x7f0b0070;
- public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle = 0x7f0b0072;
- public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Title = 0x7f0b0071;
- public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large = 0x7f0b006b;
- public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small = 0x7f0b006c;
- public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0b0035;
- public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0b0034;
- public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0b0030;
- public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0b0031;
- public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0b0033;
- public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0b0032;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0b001a;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0b0006;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0b0008;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0b0005;
- public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0b0007;
- public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0b001e;
- public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0b0020;
- public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0b001d;
- public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0b001f;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Menu = 0x7f0b0054;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle = 0x7f0b0056;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse = 0x7f0b0058;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title = 0x7f0b0055;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse = 0x7f0b0057;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle = 0x7f0b0051;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse = 0x7f0b0053;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title = 0x7f0b0050;
- public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse = 0x7f0b0052;
- public static final int TextAppearance_AppCompat_Widget_Base_DropDownItem = 0x7f0b0061;
- public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0b0021;
- public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0b002e;
- public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0b002f;
- public static final int TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item = 0x7f0b0062;
- public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0b0028;
- public static final int Theme_AppCompat = 0x7f0b0077;
- public static final int Theme_AppCompat_Base_CompactMenu = 0x7f0b0083;
- public static final int Theme_AppCompat_Base_CompactMenu_Dialog = 0x7f0b0084;
- public static final int Theme_AppCompat_CompactMenu = 0x7f0b007c;
- public static final int Theme_AppCompat_CompactMenu_Dialog = 0x7f0b007d;
- public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0b007a;
- public static final int Theme_AppCompat_Light = 0x7f0b0078;
- public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0b0079;
- public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0b007b;
- public static final int Theme_Base = 0x7f0b007e;
- public static final int Theme_Base_AppCompat = 0x7f0b0080;
- public static final int Theme_Base_AppCompat_DialogWhenLarge = 0x7f0b0085;
- public static final int Theme_Base_AppCompat_DialogWhenLarge_Base = 0x7f0b0089;
- public static final int Theme_Base_AppCompat_Dialog_FixedSize = 0x7f0b0087;
- public static final int Theme_Base_AppCompat_Dialog_Light_FixedSize = 0x7f0b0088;
- public static final int Theme_Base_AppCompat_Light = 0x7f0b0081;
- public static final int Theme_Base_AppCompat_Light_DarkActionBar = 0x7f0b0082;
- public static final int Theme_Base_AppCompat_Light_DialogWhenLarge = 0x7f0b0086;
- public static final int Theme_Base_AppCompat_Light_DialogWhenLarge_Base = 0x7f0b008a;
- public static final int Theme_Base_Light = 0x7f0b007f;
- public static final int Widget_AppCompat_ActionBar = 0x7f0b0000;
- public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0b0002;
- public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0b0011;
- public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0b0017;
- public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0b0014;
- public static final int Widget_AppCompat_ActionButton = 0x7f0b000b;
- public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0b000d;
- public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0b000f;
- public static final int Widget_AppCompat_ActionMode = 0x7f0b001b;
- public static final int Widget_AppCompat_ActivityChooserView = 0x7f0b0038;
- public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0b0036;
- public static final int Widget_AppCompat_Base_ActionBar = 0x7f0b003a;
- public static final int Widget_AppCompat_Base_ActionBar_Solid = 0x7f0b003c;
- public static final int Widget_AppCompat_Base_ActionBar_TabBar = 0x7f0b0045;
- public static final int Widget_AppCompat_Base_ActionBar_TabText = 0x7f0b004b;
- public static final int Widget_AppCompat_Base_ActionBar_TabView = 0x7f0b0048;
- public static final int Widget_AppCompat_Base_ActionButton = 0x7f0b003f;
- public static final int Widget_AppCompat_Base_ActionButton_CloseMode = 0x7f0b0041;
- public static final int Widget_AppCompat_Base_ActionButton_Overflow = 0x7f0b0043;
- public static final int Widget_AppCompat_Base_ActionMode = 0x7f0b004e;
- public static final int Widget_AppCompat_Base_ActivityChooserView = 0x7f0b0075;
- public static final int Widget_AppCompat_Base_AutoCompleteTextView = 0x7f0b0073;
- public static final int Widget_AppCompat_Base_DropDownItem_Spinner = 0x7f0b005d;
- public static final int Widget_AppCompat_Base_ListPopupWindow = 0x7f0b0065;
- public static final int Widget_AppCompat_Base_ListView_DropDown = 0x7f0b005f;
- public static final int Widget_AppCompat_Base_ListView_Menu = 0x7f0b0064;
- public static final int Widget_AppCompat_Base_PopupMenu = 0x7f0b0067;
- public static final int Widget_AppCompat_Base_ProgressBar = 0x7f0b005a;
- public static final int Widget_AppCompat_Base_ProgressBar_Horizontal = 0x7f0b0059;
- public static final int Widget_AppCompat_Base_Spinner = 0x7f0b005b;
- public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0b0024;
- public static final int Widget_AppCompat_Light_ActionBar = 0x7f0b0001;
- public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0b0003;
- public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0b0004;
- public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0b0012;
- public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0b0013;
- public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0b0018;
- public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0b0019;
- public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0b0015;
- public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0b0016;
- public static final int Widget_AppCompat_Light_ActionButton = 0x7f0b000c;
- public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0b000e;
- public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0b0010;
- public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0b001c;
- public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0b0039;
- public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0b0037;
- public static final int Widget_AppCompat_Light_Base_ActionBar = 0x7f0b003b;
- public static final int Widget_AppCompat_Light_Base_ActionBar_Solid = 0x7f0b003d;
- public static final int Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse = 0x7f0b003e;
- public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar = 0x7f0b0046;
- public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse = 0x7f0b0047;
- public static final int Widget_AppCompat_Light_Base_ActionBar_TabText = 0x7f0b004c;
- public static final int Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse = 0x7f0b004d;
- public static final int Widget_AppCompat_Light_Base_ActionBar_TabView = 0x7f0b0049;
- public static final int Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse = 0x7f0b004a;
- public static final int Widget_AppCompat_Light_Base_ActionButton = 0x7f0b0040;
- public static final int Widget_AppCompat_Light_Base_ActionButton_CloseMode = 0x7f0b0042;
- public static final int Widget_AppCompat_Light_Base_ActionButton_Overflow = 0x7f0b0044;
- public static final int Widget_AppCompat_Light_Base_ActionMode_Inverse = 0x7f0b004f;
- public static final int Widget_AppCompat_Light_Base_ActivityChooserView = 0x7f0b0076;
- public static final int Widget_AppCompat_Light_Base_AutoCompleteTextView = 0x7f0b0074;
- public static final int Widget_AppCompat_Light_Base_DropDownItem_Spinner = 0x7f0b005e;
- public static final int Widget_AppCompat_Light_Base_ListPopupWindow = 0x7f0b0066;
- public static final int Widget_AppCompat_Light_Base_ListView_DropDown = 0x7f0b0060;
- public static final int Widget_AppCompat_Light_Base_PopupMenu = 0x7f0b0068;
- public static final int Widget_AppCompat_Light_Base_Spinner = 0x7f0b005c;
- public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0b0025;
- public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0b002a;
- public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0b0027;
- public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0b002c;
- public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0b0023;
- public static final int Widget_AppCompat_ListPopupWindow = 0x7f0b0029;
- public static final int Widget_AppCompat_ListView_DropDown = 0x7f0b0026;
- public static final int Widget_AppCompat_ListView_Menu = 0x7f0b002d;
- public static final int Widget_AppCompat_PopupMenu = 0x7f0b002b;
- public static final int Widget_AppCompat_ProgressBar = 0x7f0b000a;
- public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0b0009;
- public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0b0022;
- }
- public static final class styleable {
- public static final int[] ActionBar = { 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037 };
- public static final int[] ActionBarLayout = { 0x010100b3 };
- public static final int ActionBarLayout_android_layout_gravity = 0;
- public static final int[] ActionBarWindow = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006 };
- public static final int ActionBarWindow_windowActionBar = 0;
- public static final int ActionBarWindow_windowActionBarOverlay = 1;
- public static final int ActionBarWindow_windowFixedHeightMajor = 6;
- public static final int ActionBarWindow_windowFixedHeightMinor = 4;
- public static final int ActionBarWindow_windowFixedWidthMajor = 3;
- public static final int ActionBarWindow_windowFixedWidthMinor = 5;
- public static final int ActionBarWindow_windowSplitActionBar = 2;
- public static final int ActionBar_background = 10;
- public static final int ActionBar_backgroundSplit = 12;
- public static final int ActionBar_backgroundStacked = 11;
- public static final int ActionBar_customNavigationLayout = 13;
- public static final int ActionBar_displayOptions = 3;
- public static final int ActionBar_divider = 9;
- public static final int ActionBar_height = 1;
- public static final int ActionBar_homeLayout = 14;
- public static final int ActionBar_icon = 7;
- public static final int ActionBar_indeterminateProgressStyle = 16;
- public static final int ActionBar_itemPadding = 18;
- public static final int ActionBar_logo = 8;
- public static final int ActionBar_navigationMode = 2;
- public static final int ActionBar_progressBarPadding = 17;
- public static final int ActionBar_progressBarStyle = 15;
- public static final int ActionBar_subtitle = 4;
- public static final int ActionBar_subtitleTextStyle = 6;
- public static final int ActionBar_title = 0;
- public static final int ActionBar_titleTextStyle = 5;
- public static final int[] ActionMenuItemView = { 0x0101013f };
- public static final int ActionMenuItemView_android_minWidth = 0;
- public static final int[] ActionMenuView = { };
- public static final int[] ActionMode = { 0x7f010026, 0x7f01002a, 0x7f01002b, 0x7f01002f, 0x7f010031 };
- public static final int ActionMode_background = 3;
- public static final int ActionMode_backgroundSplit = 4;
- public static final int ActionMode_height = 0;
- public static final int ActionMode_subtitleTextStyle = 2;
- public static final int ActionMode_titleTextStyle = 1;
- public static final int[] ActivityChooserView = { 0x7f01006a, 0x7f01006b };
- public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
- public static final int ActivityChooserView_initialActivityCount = 0;
- public static final int[] CompatTextView = { 0x7f01006d };
- public static final int CompatTextView_textAllCaps = 0;
- public static final int[] LinearLayoutICS = { 0x7f01002e, 0x7f010055, 0x7f010056 };
- public static final int LinearLayoutICS_divider = 0;
- public static final int LinearLayoutICS_dividerPadding = 2;
- public static final int LinearLayoutICS_showDividers = 1;
- public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 };
- public static final int MenuGroup_android_checkableBehavior = 5;
- public static final int MenuGroup_android_enabled = 0;
- public static final int MenuGroup_android_id = 1;
- public static final int MenuGroup_android_menuCategory = 3;
- public static final int MenuGroup_android_orderInCategory = 4;
- public static final int MenuGroup_android_visible = 2;
- public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050 };
- public static final int MenuItem_actionLayout = 14;
- public static final int MenuItem_actionProviderClass = 16;
- public static final int MenuItem_actionViewClass = 15;
- public static final int MenuItem_android_alphabeticShortcut = 9;
- public static final int MenuItem_android_checkable = 11;
- public static final int MenuItem_android_checked = 3;
- public static final int MenuItem_android_enabled = 1;
- public static final int MenuItem_android_icon = 0;
- public static final int MenuItem_android_id = 2;
- public static final int MenuItem_android_menuCategory = 5;
- public static final int MenuItem_android_numericShortcut = 10;
- public static final int MenuItem_android_onClick = 12;
- public static final int MenuItem_android_orderInCategory = 6;
- public static final int MenuItem_android_title = 7;
- public static final int MenuItem_android_titleCondensed = 8;
- public static final int MenuItem_android_visible = 4;
- public static final int MenuItem_showAsAction = 13;
- public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x01010435 };
- public static final int MenuView_android_headerBackground = 4;
- public static final int MenuView_android_horizontalDivider = 2;
- public static final int MenuView_android_itemBackground = 5;
- public static final int MenuView_android_itemIconDisabledAlpha = 6;
- public static final int MenuView_android_itemTextAppearance = 1;
- public static final int MenuView_android_preserveIconSpacing = 7;
- public static final int MenuView_android_verticalDivider = 3;
- public static final int MenuView_android_windowAnimationStyle = 0;
- public static final int[] SearchView = { 0x0101011f, 0x01010220, 0x01010264, 0x7f01005a, 0x7f01005b };
- public static final int SearchView_android_imeOptions = 2;
- public static final int SearchView_android_inputType = 1;
- public static final int SearchView_android_maxWidth = 0;
- public static final int SearchView_iconifiedByDefault = 3;
- public static final int SearchView_queryHint = 4;
- public static final int[] Spinner = { 0x010100af, 0x01010175, 0x01010176, 0x01010262, 0x010102ac, 0x010102ad, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054 };
- public static final int Spinner_android_dropDownHorizontalOffset = 4;
- public static final int Spinner_android_dropDownSelector = 1;
- public static final int Spinner_android_dropDownVerticalOffset = 5;
- public static final int Spinner_android_dropDownWidth = 3;
- public static final int Spinner_android_gravity = 0;
- public static final int Spinner_android_popupBackground = 2;
- public static final int Spinner_disableChildrenWhenDisabled = 9;
- public static final int Spinner_popupPromptView = 8;
- public static final int Spinner_prompt = 6;
- public static final int Spinner_spinnerMode = 7;
- public static final int[] Theme = { 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c };
- public static final int Theme_actionDropDownStyle = 0;
- public static final int Theme_dropdownListPreferredItemHeight = 1;
- public static final int Theme_listChoiceBackgroundIndicator = 5;
- public static final int Theme_panelMenuListTheme = 4;
- public static final int Theme_panelMenuListWidth = 3;
- public static final int Theme_popupMenuStyle = 2;
- public static final int[] View = { 0x010100da, 0x7f010038, 0x7f010039 };
- public static final int View_android_focusable = 0;
- public static final int View_paddingEnd = 2;
- public static final int View_paddingStart = 1;
- }
-}
diff --git a/TestSample.txt.txt b/TestSample.txt.txt
deleted file mode 100644
index e69de29..0000000
diff --git a/add-calendar-event/AddCalendarEvent.iml b/add-calendar-event/AddCalendarEvent.iml
new file mode 100644
index 0000000..42f4ed5
--- /dev/null
+++ b/add-calendar-event/AddCalendarEvent.iml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/add-calendar-event/app/.gitignore b/add-calendar-event/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/add-calendar-event/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/add-calendar-event/app/app.iml b/add-calendar-event/app/app.iml
new file mode 100644
index 0000000..41146ee
--- /dev/null
+++ b/add-calendar-event/app/app.iml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/add-calendar-event/app/build.gradle b/add-calendar-event/app/build.gradle
new file mode 100644
index 0000000..e288cc1
--- /dev/null
+++ b/add-calendar-event/app/build.gradle
@@ -0,0 +1,25 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 21
+ buildToolsVersion "21.1.2"
+
+ defaultConfig {
+ applicationId "com.javatechig.addevent"
+ minSdkVersion 14
+ targetSdkVersion 21
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile 'com.android.support:appcompat-v7:21.0.3'
+}
diff --git a/add-calendar-event/app/proguard-rules.pro b/add-calendar-event/app/proguard-rules.pro
new file mode 100644
index 0000000..85a5e2e
--- /dev/null
+++ b/add-calendar-event/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Applications/adt-bundle-mac-x86_64-20140702/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/add-calendar-event/app/src/androidTest/java/com/javatechig/addevent/ApplicationTest.java b/add-calendar-event/app/src/androidTest/java/com/javatechig/addevent/ApplicationTest.java
new file mode 100644
index 0000000..3b2b05d
--- /dev/null
+++ b/add-calendar-event/app/src/androidTest/java/com/javatechig/addevent/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.javatechig.addevent;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/add-calendar-event/app/src/main/AndroidManifest.xml b/add-calendar-event/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..cf65ff8
--- /dev/null
+++ b/add-calendar-event/app/src/main/AndroidManifest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/add-calendar-event/app/src/main/java/com/javatechig/addevent/MainActivity.java b/add-calendar-event/app/src/main/java/com/javatechig/addevent/MainActivity.java
new file mode 100644
index 0000000..6e4780f
--- /dev/null
+++ b/add-calendar-event/app/src/main/java/com/javatechig/addevent/MainActivity.java
@@ -0,0 +1,38 @@
+package com.javatechig.addevent;
+
+import android.content.Intent;
+import android.provider.CalendarContract;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.view.View;
+import java.util.Calendar;
+import android.provider.CalendarContract.Events;
+
+public class MainActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ }
+
+ public void onAddEventClicked(View view){
+ Intent intent = new Intent(Intent.ACTION_INSERT);
+ intent.setType("vnd.android.cursor.item/event");
+
+ Calendar cal = Calendar.getInstance();
+ long startTime = cal.getTimeInMillis();
+ long endTime = cal.getTimeInMillis() + 60 * 60 * 1000;
+
+ intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, startTime);
+ intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME,endTime);
+ intent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY, true);
+
+ intent.putExtra(Events.TITLE, "Neel Birthday");
+ intent.putExtra(Events.DESCRIPTION, "This is a sample description");
+ intent.putExtra(Events.EVENT_LOCATION, "My Guest House");
+ intent.putExtra(Events.RRULE, "FREQ=YEARLY");
+
+ startActivity(intent);
+ }
+}
diff --git a/WidgetDemo/res/drawable-hdpi/ic_launcher.png b/add-calendar-event/app/src/main/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from WidgetDemo/res/drawable-hdpi/ic_launcher.png
rename to add-calendar-event/app/src/main/res/drawable-hdpi/ic_launcher.png
diff --git a/add-calendar-event/app/src/main/res/drawable-mdpi/ic_launcher.png b/add-calendar-event/app/src/main/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
Binary files /dev/null and b/add-calendar-event/app/src/main/res/drawable-mdpi/ic_launcher.png differ
diff --git a/add-calendar-event/app/src/main/res/drawable-xhdpi/ic_launcher.png b/add-calendar-event/app/src/main/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
Binary files /dev/null and b/add-calendar-event/app/src/main/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/add-calendar-event/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/add-calendar-event/app/src/main/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4df1894
Binary files /dev/null and b/add-calendar-event/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/add-calendar-event/app/src/main/res/layout/activity_main.xml b/add-calendar-event/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..5be0453
--- /dev/null
+++ b/add-calendar-event/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
diff --git a/add-calendar-event/app/src/main/res/menu/menu_main.xml b/add-calendar-event/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 0000000..b1cb908
--- /dev/null
+++ b/add-calendar-event/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,6 @@
+
diff --git a/add-calendar-event/app/src/main/res/values-w820dp/dimens.xml b/add-calendar-event/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/add-calendar-event/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/add-calendar-event/app/src/main/res/values/dimens.xml b/add-calendar-event/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/add-calendar-event/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/add-calendar-event/app/src/main/res/values/strings.xml b/add-calendar-event/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..172e020
--- /dev/null
+++ b/add-calendar-event/app/src/main/res/values/strings.xml
@@ -0,0 +1,8 @@
+
+
+
+ AddCalendarEvent
+ Hello world!
+ Settings
+
+
diff --git a/add-calendar-event/app/src/main/res/values/styles.xml b/add-calendar-event/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..766ab99
--- /dev/null
+++ b/add-calendar-event/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/add-calendar-event/build.gradle b/add-calendar-event/build.gradle
new file mode 100644
index 0000000..fc67c9c
--- /dev/null
+++ b/add-calendar-event/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.0.0-rc2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/add-calendar-event/gradle.properties b/add-calendar-event/gradle.properties
new file mode 100644
index 0000000..1d3591c
--- /dev/null
+++ b/add-calendar-event/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/add-calendar-event/gradle/wrapper/gradle-wrapper.jar b/add-calendar-event/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/add-calendar-event/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/add-calendar-event/gradle/wrapper/gradle-wrapper.properties b/add-calendar-event/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..0c71e76
--- /dev/null
+++ b/add-calendar-event/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
diff --git a/add-calendar-event/gradlew b/add-calendar-event/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/add-calendar-event/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/add-calendar-event/gradlew.bat b/add-calendar-event/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/add-calendar-event/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/add-calendar-event/settings.gradle b/add-calendar-event/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/add-calendar-event/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/alarm-service-android/AlarmService.iml b/alarm-service-android/AlarmService.iml
new file mode 100644
index 0000000..0bb6048
--- /dev/null
+++ b/alarm-service-android/AlarmService.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/alarm-service-android/README.md b/alarm-service-android/README.md
new file mode 100644
index 0000000..46c9454
--- /dev/null
+++ b/alarm-service-android/README.md
@@ -0,0 +1,4 @@
+Android-Alarm-Service-Example
+=============================
+
+Android Alarm Service Example
diff --git a/alarm-service-android/app/.gitignore b/alarm-service-android/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/alarm-service-android/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/alarm-service-android/app/app.iml b/alarm-service-android/app/app.iml
new file mode 100644
index 0000000..5956b62
--- /dev/null
+++ b/alarm-service-android/app/app.iml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/alarm-service-android/app/build.gradle b/alarm-service-android/app/build.gradle
new file mode 100644
index 0000000..cab25aa
--- /dev/null
+++ b/alarm-service-android/app/build.gradle
@@ -0,0 +1,24 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 20
+ buildToolsVersion "20.0.0"
+
+ defaultConfig {
+ applicationId "com.javatechig.alarmservice"
+ minSdkVersion 14
+ targetSdkVersion 20
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ runProguard false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+}
diff --git a/alarm-service-android/app/proguard-rules.pro b/alarm-service-android/app/proguard-rules.pro
new file mode 100644
index 0000000..85a5e2e
--- /dev/null
+++ b/alarm-service-android/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Applications/adt-bundle-mac-x86_64-20140702/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/alarm-service-android/app/src/androidTest/java/com/javatechig/alarmservice/ApplicationTest.java b/alarm-service-android/app/src/androidTest/java/com/javatechig/alarmservice/ApplicationTest.java
new file mode 100644
index 0000000..6108705
--- /dev/null
+++ b/alarm-service-android/app/src/androidTest/java/com/javatechig/alarmservice/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.javatechig.alarmservice;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/alarm-service-android/app/src/main/AndroidManifest.xml b/alarm-service-android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..3c18f59
--- /dev/null
+++ b/alarm-service-android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/AlarmReceiver.java b/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/AlarmReceiver.java
new file mode 100644
index 0000000..a4caf37
--- /dev/null
+++ b/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/AlarmReceiver.java
@@ -0,0 +1,16 @@
+package com.javatechig.alarmservice;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.widget.Toast;
+
+public class AlarmReceiver extends BroadcastReceiver {
+
+ @Override
+ public void onReceive(Context context, Intent intent) {
+
+ // For our recurring task, we'll just display a message
+ Toast.makeText(context, "I'm running", Toast.LENGTH_SHORT).show();
+ }
+}
\ No newline at end of file
diff --git a/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/DeviceBootReceiver.java b/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/DeviceBootReceiver.java
new file mode 100644
index 0000000..4cefa59
--- /dev/null
+++ b/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/DeviceBootReceiver.java
@@ -0,0 +1,37 @@
+package com.javatechig.alarmservice;
+
+import android.app.AlarmManager;
+import android.app.PendingIntent;
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.widget.Toast;
+
+
+/**
+ * @author Neel
+ *
+ * Broadcast reciever, starts when the device gets starts.
+ * Start your repeating alarm here.
+ */
+public class DeviceBootReceiver extends BroadcastReceiver {
+
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
+ /* Setting the alarm here */
+
+ Intent alarmIntent = new Intent(context, AlarmReceiver.class);
+
+ PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, alarmIntent, 0);
+
+ AlarmManager manager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
+
+ int interval = 8000;
+
+ manager.setInexactRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), interval, pendingIntent);
+
+ Toast.makeText(context, "Alarm Set", Toast.LENGTH_SHORT).show();
+ }
+ }
+}
diff --git a/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/MyActivity.java b/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/MyActivity.java
new file mode 100644
index 0000000..a5122b9
--- /dev/null
+++ b/alarm-service-android/app/src/main/java/com/javatechig/alarmservice/MyActivity.java
@@ -0,0 +1,78 @@
+package com.javatechig.alarmservice;
+
+import android.app.Activity;
+import android.app.AlarmManager;
+import android.app.PendingIntent;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Toast;
+import java.util.Calendar;
+
+//https://developer.android.com/training/scheduling/alarms.html
+public class MyActivity extends Activity {
+
+ private PendingIntent pendingIntent;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_my);
+
+ /* Retrieve a PendingIntent that will perform a broadcast */
+ Intent alarmIntent = new Intent(MyActivity.this, AlarmReceiver.class);
+ pendingIntent = PendingIntent.getBroadcast(MyActivity.this, 0, alarmIntent, 0);
+
+ findViewById(R.id.startAlarm).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ start();
+ }
+ });
+
+ findViewById(R.id.stopAlarm).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ cancel();
+ }
+ });
+
+ findViewById(R.id.stopAlarmAt10).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ startAt10();
+ }
+ });
+ }
+
+ public void start() {
+ AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
+ int interval = 8000;
+
+ manager.setInexactRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), interval, pendingIntent);
+ Toast.makeText(this, "Alarm Set", Toast.LENGTH_SHORT).show();
+ }
+
+ public void cancel() {
+ AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
+ manager.cancel(pendingIntent);
+ Toast.makeText(this, "Alarm Canceled", Toast.LENGTH_SHORT).show();
+ }
+
+ public void startAt10() {
+ AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
+ int interval = 1000 * 60 * 20;
+
+ /* Set the alarm to start at 10:30 AM */
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTimeInMillis(System.currentTimeMillis());
+ calendar.set(Calendar.HOUR_OF_DAY, 10);
+ calendar.set(Calendar.MINUTE, 30);
+
+ /* Repeating on every 20 minutes interval */
+ manager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),
+ 1000 * 60 * 20, pendingIntent);
+ }
+
+}
diff --git a/alarm-service-android/app/src/main/res/drawable-hdpi/ic_launcher.png b/alarm-service-android/app/src/main/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
Binary files /dev/null and b/alarm-service-android/app/src/main/res/drawable-hdpi/ic_launcher.png differ
diff --git a/alarm-service-android/app/src/main/res/drawable-mdpi/ic_launcher.png b/alarm-service-android/app/src/main/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
Binary files /dev/null and b/alarm-service-android/app/src/main/res/drawable-mdpi/ic_launcher.png differ
diff --git a/alarm-service-android/app/src/main/res/drawable-xhdpi/ic_launcher.png b/alarm-service-android/app/src/main/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
Binary files /dev/null and b/alarm-service-android/app/src/main/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/alarm-service-android/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/alarm-service-android/app/src/main/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4df1894
Binary files /dev/null and b/alarm-service-android/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/alarm-service-android/app/src/main/res/layout/activity_my.xml b/alarm-service-android/app/src/main/res/layout/activity_my.xml
new file mode 100644
index 0000000..bcdec27
--- /dev/null
+++ b/alarm-service-android/app/src/main/res/layout/activity_my.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/alarm-service-android/app/src/main/res/menu/my.xml b/alarm-service-android/app/src/main/res/menu/my.xml
new file mode 100644
index 0000000..bea58cc
--- /dev/null
+++ b/alarm-service-android/app/src/main/res/menu/my.xml
@@ -0,0 +1,8 @@
+
diff --git a/alarm-service-android/app/src/main/res/values-w820dp/dimens.xml b/alarm-service-android/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/alarm-service-android/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/alarm-service-android/app/src/main/res/values/dimens.xml b/alarm-service-android/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/alarm-service-android/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/alarm-service-android/app/src/main/res/values/strings.xml b/alarm-service-android/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..17b3c85
--- /dev/null
+++ b/alarm-service-android/app/src/main/res/values/strings.xml
@@ -0,0 +1,9 @@
+
+
+
+ AlarmService
+ Hello world!
+ Settings
+ Example explaining how to scheduling repeating alarms in android using AlarmManager.
+
+
diff --git a/alarm-service-android/app/src/main/res/values/styles.xml b/alarm-service-android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..ff6c9d2
--- /dev/null
+++ b/alarm-service-android/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/alarm-service-android/build.gradle b/alarm-service-android/build.gradle
new file mode 100644
index 0000000..9b8abe4
--- /dev/null
+++ b/alarm-service-android/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.12.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/alarm-service-android/gradle.properties b/alarm-service-android/gradle.properties
new file mode 100644
index 0000000..5d08ba7
--- /dev/null
+++ b/alarm-service-android/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Settings specified in this file will override any Gradle settings
+# configured through the IDE.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/alarm-service-android/gradle/wrapper/gradle-wrapper.jar b/alarm-service-android/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/alarm-service-android/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/alarm-service-android/gradle/wrapper/gradle-wrapper.properties b/alarm-service-android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..1e61d1f
--- /dev/null
+++ b/alarm-service-android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
diff --git a/alarm-service-android/gradlew b/alarm-service-android/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/alarm-service-android/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/alarm-service-android/gradlew.bat b/alarm-service-android/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/alarm-service-android/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/alarm-service-android/settings.gradle b/alarm-service-android/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/alarm-service-android/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/AndroidZip/AndroidManifest.xml b/android-creating-zip/AndroidManifest.xml
similarity index 100%
rename from AndroidZip/AndroidManifest.xml
rename to android-creating-zip/AndroidManifest.xml
diff --git a/AndroidZip/assets/diode.png b/android-creating-zip/assets/diode.png
similarity index 100%
rename from AndroidZip/assets/diode.png
rename to android-creating-zip/assets/diode.png
diff --git a/AndroidZip/assets/passive.png b/android-creating-zip/assets/passive.png
similarity index 100%
rename from AndroidZip/assets/passive.png
rename to android-creating-zip/assets/passive.png
diff --git a/AndroidZip/project.properties b/android-creating-zip/project.properties
similarity index 100%
rename from AndroidZip/project.properties
rename to android-creating-zip/project.properties
diff --git a/AndroidZip/res/drawable-hdpi/ic_launcher.png b/android-creating-zip/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from AndroidZip/res/drawable-hdpi/ic_launcher.png
rename to android-creating-zip/res/drawable-hdpi/ic_launcher.png
diff --git a/AndroidZip/res/drawable-ldpi/ic_launcher.png b/android-creating-zip/res/drawable-ldpi/ic_launcher.png
similarity index 100%
rename from AndroidZip/res/drawable-ldpi/ic_launcher.png
rename to android-creating-zip/res/drawable-ldpi/ic_launcher.png
diff --git a/AndroidZip/res/drawable-mdpi/ic_launcher.png b/android-creating-zip/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from AndroidZip/res/drawable-mdpi/ic_launcher.png
rename to android-creating-zip/res/drawable-mdpi/ic_launcher.png
diff --git a/AndroidZip/res/layout/main.xml b/android-creating-zip/res/layout/main.xml
similarity index 100%
rename from AndroidZip/res/layout/main.xml
rename to android-creating-zip/res/layout/main.xml
diff --git a/AndroidZip/res/values/strings.xml b/android-creating-zip/res/values/strings.xml
similarity index 100%
rename from AndroidZip/res/values/strings.xml
rename to android-creating-zip/res/values/strings.xml
diff --git a/AndroidZip/src/com/zipp/MainActivity.java b/android-creating-zip/src/com/zipp/MainActivity.java
similarity index 100%
rename from AndroidZip/src/com/zipp/MainActivity.java
rename to android-creating-zip/src/com/zipp/MainActivity.java
diff --git a/AndroidZip/src/com/zipp/ZipManager.java b/android-creating-zip/src/com/zipp/ZipManager.java
similarity index 100%
rename from AndroidZip/src/com/zipp/ZipManager.java
rename to android-creating-zip/src/com/zipp/ZipManager.java
diff --git a/Feed Reader/AndroidManifest.xml b/android-feed-reader/AndroidManifest.xml
similarity index 100%
rename from Feed Reader/AndroidManifest.xml
rename to android-feed-reader/AndroidManifest.xml
diff --git a/Feed Reader/assets/Leo Arrow.ttf b/android-feed-reader/assets/Leo Arrow.ttf
similarity index 100%
rename from Feed Reader/assets/Leo Arrow.ttf
rename to android-feed-reader/assets/Leo Arrow.ttf
diff --git a/AsyncImageLoaderListview/ic_launcher-web.png b/android-feed-reader/ic_launcher-web.png
similarity index 100%
rename from AsyncImageLoaderListview/ic_launcher-web.png
rename to android-feed-reader/ic_launcher-web.png
diff --git a/AndroidSMS/libs/android-support-v4.jar b/android-feed-reader/libs/android-support-v4.jar
similarity index 100%
rename from AndroidSMS/libs/android-support-v4.jar
rename to android-feed-reader/libs/android-support-v4.jar
diff --git a/AndroidSMS/proguard-project.txt b/android-feed-reader/proguard-project.txt
similarity index 100%
rename from AndroidSMS/proguard-project.txt
rename to android-feed-reader/proguard-project.txt
diff --git a/AndroidSMS/project.properties b/android-feed-reader/project.properties
similarity index 100%
rename from AndroidSMS/project.properties
rename to android-feed-reader/project.properties
diff --git a/Feed Reader/res/drawable-hdpi/ic_launcher.png b/android-feed-reader/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from Feed Reader/res/drawable-hdpi/ic_launcher.png
rename to android-feed-reader/res/drawable-hdpi/ic_launcher.png
diff --git a/Feed Reader/res/drawable-mdpi/ic_launcher.png b/android-feed-reader/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from Feed Reader/res/drawable-mdpi/ic_launcher.png
rename to android-feed-reader/res/drawable-mdpi/ic_launcher.png
diff --git a/Feed Reader/res/drawable-xhdpi/ic_launcher.png b/android-feed-reader/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from Feed Reader/res/drawable-xhdpi/ic_launcher.png
rename to android-feed-reader/res/drawable-xhdpi/ic_launcher.png
diff --git a/Feed Reader/res/drawable-xxhdpi/ic_launcher.png b/android-feed-reader/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from Feed Reader/res/drawable-xxhdpi/ic_launcher.png
rename to android-feed-reader/res/drawable-xxhdpi/ic_launcher.png
diff --git a/Feed Reader/res/drawable/image_border.png b/android-feed-reader/res/drawable/image_border.png
similarity index 100%
rename from Feed Reader/res/drawable/image_border.png
rename to android-feed-reader/res/drawable/image_border.png
diff --git a/Feed Reader/res/drawable/list_item_text_selector.xml b/android-feed-reader/res/drawable/list_item_text_selector.xml
similarity index 100%
rename from Feed Reader/res/drawable/list_item_text_selector.xml
rename to android-feed-reader/res/drawable/list_item_text_selector.xml
diff --git a/Feed Reader/res/drawable/list_placeholder.png b/android-feed-reader/res/drawable/list_placeholder.png
similarity index 100%
rename from Feed Reader/res/drawable/list_placeholder.png
rename to android-feed-reader/res/drawable/list_placeholder.png
diff --git a/AsyncImageLoaderListview/res/drawable/list_selector_flatcolor.xml b/android-feed-reader/res/drawable/list_selector_flatcolor.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/drawable/list_selector_flatcolor.xml
rename to android-feed-reader/res/drawable/list_selector_flatcolor.xml
diff --git a/Feed Reader/res/layout/activity_feed_details.xml b/android-feed-reader/res/layout/activity_feed_details.xml
similarity index 100%
rename from Feed Reader/res/layout/activity_feed_details.xml
rename to android-feed-reader/res/layout/activity_feed_details.xml
diff --git a/Feed Reader/res/layout/activity_posts_list.xml b/android-feed-reader/res/layout/activity_posts_list.xml
similarity index 100%
rename from Feed Reader/res/layout/activity_posts_list.xml
rename to android-feed-reader/res/layout/activity_posts_list.xml
diff --git a/Feed Reader/res/layout/activity_webview.xml b/android-feed-reader/res/layout/activity_webview.xml
similarity index 100%
rename from Feed Reader/res/layout/activity_webview.xml
rename to android-feed-reader/res/layout/activity_webview.xml
diff --git a/Feed Reader/res/layout/list_row_layout.xml b/android-feed-reader/res/layout/list_row_layout.xml
similarity index 100%
rename from Feed Reader/res/layout/list_row_layout.xml
rename to android-feed-reader/res/layout/list_row_layout.xml
diff --git a/Feed Reader/res/menu/main.xml b/android-feed-reader/res/menu/main.xml
similarity index 100%
rename from Feed Reader/res/menu/main.xml
rename to android-feed-reader/res/menu/main.xml
diff --git a/AndroidSMS/res/values-sw600dp/dimens.xml b/android-feed-reader/res/values-sw600dp/dimens.xml
similarity index 100%
rename from AndroidSMS/res/values-sw600dp/dimens.xml
rename to android-feed-reader/res/values-sw600dp/dimens.xml
diff --git a/AndroidSMS/res/values-sw720dp-land/dimens.xml b/android-feed-reader/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from AndroidSMS/res/values-sw720dp-land/dimens.xml
rename to android-feed-reader/res/values-sw720dp-land/dimens.xml
diff --git a/AndroidSMS/res/values-v11/styles.xml b/android-feed-reader/res/values-v11/styles.xml
similarity index 100%
rename from AndroidSMS/res/values-v11/styles.xml
rename to android-feed-reader/res/values-v11/styles.xml
diff --git a/AndroidSMS/res/values-v14/styles.xml b/android-feed-reader/res/values-v14/styles.xml
similarity index 100%
rename from AndroidSMS/res/values-v14/styles.xml
rename to android-feed-reader/res/values-v14/styles.xml
diff --git a/AsyncImageLoaderListview/res/values/colors.xml b/android-feed-reader/res/values/colors.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/values/colors.xml
rename to android-feed-reader/res/values/colors.xml
diff --git a/AndroidSMS/res/values/dimens.xml b/android-feed-reader/res/values/dimens.xml
similarity index 100%
rename from AndroidSMS/res/values/dimens.xml
rename to android-feed-reader/res/values/dimens.xml
diff --git a/Feed Reader/res/values/strings.xml b/android-feed-reader/res/values/strings.xml
similarity index 100%
rename from Feed Reader/res/values/strings.xml
rename to android-feed-reader/res/values/strings.xml
diff --git a/AndroidSMS/res/values/styles.xml b/android-feed-reader/res/values/styles.xml
similarity index 100%
rename from AndroidSMS/res/values/styles.xml
rename to android-feed-reader/res/values/styles.xml
diff --git a/Feed Reader/src/com/javatechig/feedreader/CustomListAdapter.java b/android-feed-reader/src/com/javatechig/feedreader/CustomListAdapter.java
similarity index 100%
rename from Feed Reader/src/com/javatechig/feedreader/CustomListAdapter.java
rename to android-feed-reader/src/com/javatechig/feedreader/CustomListAdapter.java
diff --git a/Feed Reader/src/com/javatechig/feedreader/FeedDetailsActivity.java b/android-feed-reader/src/com/javatechig/feedreader/FeedDetailsActivity.java
similarity index 100%
rename from Feed Reader/src/com/javatechig/feedreader/FeedDetailsActivity.java
rename to android-feed-reader/src/com/javatechig/feedreader/FeedDetailsActivity.java
diff --git a/Feed Reader/src/com/javatechig/feedreader/FeedListActivity.java b/android-feed-reader/src/com/javatechig/feedreader/FeedListActivity.java
similarity index 100%
rename from Feed Reader/src/com/javatechig/feedreader/FeedListActivity.java
rename to android-feed-reader/src/com/javatechig/feedreader/FeedListActivity.java
diff --git a/Feed Reader/src/com/javatechig/feedreader/WebViewActivity.java b/android-feed-reader/src/com/javatechig/feedreader/WebViewActivity.java
similarity index 100%
rename from Feed Reader/src/com/javatechig/feedreader/WebViewActivity.java
rename to android-feed-reader/src/com/javatechig/feedreader/WebViewActivity.java
diff --git a/Feed Reader/src/com/javatechig/feedreader/asynctaask/ImageDownloaderTask.java b/android-feed-reader/src/com/javatechig/feedreader/asynctaask/ImageDownloaderTask.java
similarity index 100%
rename from Feed Reader/src/com/javatechig/feedreader/asynctaask/ImageDownloaderTask.java
rename to android-feed-reader/src/com/javatechig/feedreader/asynctaask/ImageDownloaderTask.java
diff --git a/Feed Reader/src/com/javatechig/feedreader/model/FeedItem.java b/android-feed-reader/src/com/javatechig/feedreader/model/FeedItem.java
similarity index 100%
rename from Feed Reader/src/com/javatechig/feedreader/model/FeedItem.java
rename to android-feed-reader/src/com/javatechig/feedreader/model/FeedItem.java
diff --git a/HandlerExample/AndroidManifest.xml b/android-handler/AndroidManifest.xml
similarity index 100%
rename from HandlerExample/AndroidManifest.xml
rename to android-handler/AndroidManifest.xml
diff --git a/HandlerExample/libs/android-support-v4.jar b/android-handler/libs/android-support-v4.jar
similarity index 100%
rename from HandlerExample/libs/android-support-v4.jar
rename to android-handler/libs/android-support-v4.jar
diff --git a/HandlerExample/project.properties b/android-handler/project.properties
similarity index 100%
rename from HandlerExample/project.properties
rename to android-handler/project.properties
diff --git a/AndroidSMS/res/drawable-hdpi/ic_launcher.png b/android-handler/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from AndroidSMS/res/drawable-hdpi/ic_launcher.png
rename to android-handler/res/drawable-hdpi/ic_launcher.png
diff --git a/AndroidSMS/res/drawable-mdpi/ic_launcher.png b/android-handler/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from AndroidSMS/res/drawable-mdpi/ic_launcher.png
rename to android-handler/res/drawable-mdpi/ic_launcher.png
diff --git a/AndroidSMS/res/drawable-xhdpi/ic_launcher.png b/android-handler/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from AndroidSMS/res/drawable-xhdpi/ic_launcher.png
rename to android-handler/res/drawable-xhdpi/ic_launcher.png
diff --git a/AndroidSMS/res/drawable-xxhdpi/ic_launcher.png b/android-handler/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from AndroidSMS/res/drawable-xxhdpi/ic_launcher.png
rename to android-handler/res/drawable-xxhdpi/ic_launcher.png
diff --git a/HandlerExample/res/layout/activity_main.xml b/android-handler/res/layout/activity_main.xml
similarity index 100%
rename from HandlerExample/res/layout/activity_main.xml
rename to android-handler/res/layout/activity_main.xml
diff --git a/GoogleAnalyticsDemo/res/menu/main.xml b/android-handler/res/menu/main.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/menu/main.xml
rename to android-handler/res/menu/main.xml
diff --git a/GetRegisteredEmailAccounts/res/values-sw600dp/dimens.xml b/android-handler/res/values-sw600dp/dimens.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/values-sw600dp/dimens.xml
rename to android-handler/res/values-sw600dp/dimens.xml
diff --git a/GetRegisteredEmailAccounts/res/values-sw720dp-land/dimens.xml b/android-handler/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/values-sw720dp-land/dimens.xml
rename to android-handler/res/values-sw720dp-land/dimens.xml
diff --git a/GetRegisteredEmailAccounts/res/values-v11/styles.xml b/android-handler/res/values-v11/styles.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/values-v11/styles.xml
rename to android-handler/res/values-v11/styles.xml
diff --git a/GetRegisteredEmailAccounts/res/values-v14/styles.xml b/android-handler/res/values-v14/styles.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/values-v14/styles.xml
rename to android-handler/res/values-v14/styles.xml
diff --git a/GetRegisteredEmailAccounts/res/values/dimens.xml b/android-handler/res/values/dimens.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/values/dimens.xml
rename to android-handler/res/values/dimens.xml
diff --git a/HandlerExample/res/values/strings.xml b/android-handler/res/values/strings.xml
similarity index 100%
rename from HandlerExample/res/values/strings.xml
rename to android-handler/res/values/strings.xml
diff --git a/GetRegisteredEmailAccounts/res/values/styles.xml b/android-handler/res/values/styles.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/values/styles.xml
rename to android-handler/res/values/styles.xml
diff --git a/HandlerExample/src/com/javatechig/handlerexample/MainActivity.java b/android-handler/src/com/javatechig/handlerexample/MainActivity.java
similarity index 100%
rename from HandlerExample/src/com/javatechig/handlerexample/MainActivity.java
rename to android-handler/src/com/javatechig/handlerexample/MainActivity.java
diff --git a/android-httpurlconnection/HttpAsyncTask.iml b/android-httpurlconnection/HttpAsyncTask.iml
new file mode 100644
index 0000000..0bb6048
--- /dev/null
+++ b/android-httpurlconnection/HttpAsyncTask.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-httpurlconnection/README.md b/android-httpurlconnection/README.md
new file mode 100644
index 0000000..d41a5bc
--- /dev/null
+++ b/android-httpurlconnection/README.md
@@ -0,0 +1,2 @@
+Android-HttpGet-HttpURLConnection
+=================================
diff --git a/android-httpurlconnection/app/.gitignore b/android-httpurlconnection/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/android-httpurlconnection/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/android-httpurlconnection/app/app.iml b/android-httpurlconnection/app/app.iml
new file mode 100644
index 0000000..a85675f
--- /dev/null
+++ b/android-httpurlconnection/app/app.iml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-httpurlconnection/app/build.gradle b/android-httpurlconnection/app/build.gradle
new file mode 100644
index 0000000..4cdcb34
--- /dev/null
+++ b/android-httpurlconnection/app/build.gradle
@@ -0,0 +1,24 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 20
+ buildToolsVersion "20.0.0"
+
+ defaultConfig {
+ applicationId "com.javatechig.httpasynctask"
+ minSdkVersion 14
+ targetSdkVersion 20
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ runProguard false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+}
diff --git a/android-httpurlconnection/app/proguard-rules.pro b/android-httpurlconnection/app/proguard-rules.pro
new file mode 100644
index 0000000..01442bc
--- /dev/null
+++ b/android-httpurlconnection/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Applications/android-sdk-macosx/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/android-httpurlconnection/app/src/androidTest/java/com/javatechig/httpasynctask/ApplicationTest.java b/android-httpurlconnection/app/src/androidTest/java/com/javatechig/httpasynctask/ApplicationTest.java
new file mode 100644
index 0000000..80af5db
--- /dev/null
+++ b/android-httpurlconnection/app/src/androidTest/java/com/javatechig/httpasynctask/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.javatechig.httpasynctask;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/android-httpurlconnection/app/src/main/AndroidManifest.xml b/android-httpurlconnection/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..23fc996
--- /dev/null
+++ b/android-httpurlconnection/app/src/main/AndroidManifest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-httpurlconnection/app/src/main/java/com/javatechig/httpasynctask/MyActivity.java b/android-httpurlconnection/app/src/main/java/com/javatechig/httpasynctask/MyActivity.java
new file mode 100644
index 0000000..d0b3635
--- /dev/null
+++ b/android-httpurlconnection/app/src/main/java/com/javatechig/httpasynctask/MyActivity.java
@@ -0,0 +1,146 @@
+package com.javatechig.httpasynctask;
+
+import android.app.Activity;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.util.Log;
+import android.widget.ArrayAdapter;
+import android.widget.ListView;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+import java.io.BufferedInputStream;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+
+public class MyActivity extends Activity {
+
+ private static final String TAG = "Http Connection";
+
+ private ListView listView = null;
+
+ private ArrayAdapter arrayAdapter = null;
+
+ private String[] blogTitles;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_my);
+
+ listView = (ListView) findViewById(R.id.listView);
+
+ final String url = "http://javatechig.com/api/get_category_posts/?dev=1&slug=android";
+
+ new AsyncHttpTask().execute(url);
+ }
+
+
+ public class AsyncHttpTask extends AsyncTask {
+
+ @Override
+ protected Integer doInBackground(String... params) {
+ InputStream inputStream = null;
+
+ HttpURLConnection urlConnection = null;
+
+ Integer result = 0;
+ try {
+ /* forming th java.net.URL object */
+ URL url = new URL(params[0]);
+
+ urlConnection = (HttpURLConnection) url.openConnection();
+
+ /* optional request header */
+ urlConnection.setRequestProperty("Content-Type", "application/json");
+
+ /* optional request header */
+ urlConnection.setRequestProperty("Accept", "application/json");
+
+ /* for Get request */
+ urlConnection.setRequestMethod("GET");
+
+ int statusCode = urlConnection.getResponseCode();
+
+ /* 200 represents HTTP OK */
+ if (statusCode == 200) {
+
+ inputStream = new BufferedInputStream(urlConnection.getInputStream());
+
+ String response = convertInputStreamToString(inputStream);
+
+ parseResult(response);
+
+ result = 1; // Successful
+
+ }else{
+ result = 0; //"Failed to fetch data!";
+ }
+
+ } catch (Exception e) {
+ Log.d(TAG, e.getLocalizedMessage());
+ }
+
+ return result; //"Failed to fetch data!";
+ }
+
+
+ @Override
+ protected void onPostExecute(Integer result) {
+ /* Download complete. Lets update UI */
+
+ if(result == 1){
+
+ arrayAdapter = new ArrayAdapter(MyActivity.this, android.R.layout.simple_list_item_1, blogTitles);
+
+ listView.setAdapter(arrayAdapter);
+ }else{
+ Log.e(TAG, "Failed to fetch data!");
+ }
+ }
+ }
+
+
+ private String convertInputStreamToString(InputStream inputStream) throws IOException {
+
+ BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));
+
+ String line = "";
+ String result = "";
+
+ while((line = bufferedReader.readLine()) != null){
+ result += line;
+ }
+
+ /* Close Stream */
+ if(null!=inputStream){
+ inputStream.close();
+ }
+
+ return result;
+ }
+ private void parseResult(String result) {
+
+ try{
+ JSONObject response = new JSONObject(result);
+
+ JSONArray posts = response.optJSONArray("posts");
+
+ blogTitles = new String[posts.length()];
+
+ for(int i=0; i< posts.length();i++ ){
+ JSONObject post = posts.optJSONObject(i);
+ String title = post.optString("title");
+
+ blogTitles[i] = title;
+ }
+
+ }catch (JSONException e){
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/android-httpurlconnection/app/src/main/res/drawable-hdpi/ic_launcher.png b/android-httpurlconnection/app/src/main/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
Binary files /dev/null and b/android-httpurlconnection/app/src/main/res/drawable-hdpi/ic_launcher.png differ
diff --git a/android-httpurlconnection/app/src/main/res/drawable-mdpi/ic_launcher.png b/android-httpurlconnection/app/src/main/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
Binary files /dev/null and b/android-httpurlconnection/app/src/main/res/drawable-mdpi/ic_launcher.png differ
diff --git a/android-httpurlconnection/app/src/main/res/drawable-xhdpi/ic_launcher.png b/android-httpurlconnection/app/src/main/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
Binary files /dev/null and b/android-httpurlconnection/app/src/main/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/android-httpurlconnection/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/android-httpurlconnection/app/src/main/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4df1894
Binary files /dev/null and b/android-httpurlconnection/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/android-httpurlconnection/app/src/main/res/layout/activity_my.xml b/android-httpurlconnection/app/src/main/res/layout/activity_my.xml
new file mode 100644
index 0000000..0373d17
--- /dev/null
+++ b/android-httpurlconnection/app/src/main/res/layout/activity_my.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/android-httpurlconnection/app/src/main/res/menu/my.xml b/android-httpurlconnection/app/src/main/res/menu/my.xml
new file mode 100644
index 0000000..bea58cc
--- /dev/null
+++ b/android-httpurlconnection/app/src/main/res/menu/my.xml
@@ -0,0 +1,8 @@
+
diff --git a/android-httpurlconnection/app/src/main/res/values-w820dp/dimens.xml b/android-httpurlconnection/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/android-httpurlconnection/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/android-httpurlconnection/app/src/main/res/values/dimens.xml b/android-httpurlconnection/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/android-httpurlconnection/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/android-httpurlconnection/app/src/main/res/values/strings.xml b/android-httpurlconnection/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..a428447
--- /dev/null
+++ b/android-httpurlconnection/app/src/main/res/values/strings.xml
@@ -0,0 +1,9 @@
+
+
+
+ HttpAsyncTask
+ Hello world!
+ Settings
+ This example demonstrates different ways to perform network operations in Android. This example downloads the jokes from server and displays on screen.
+
+
diff --git a/android-httpurlconnection/app/src/main/res/values/styles.xml b/android-httpurlconnection/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..ff6c9d2
--- /dev/null
+++ b/android-httpurlconnection/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/android-httpurlconnection/build.gradle b/android-httpurlconnection/build.gradle
new file mode 100644
index 0000000..9b8abe4
--- /dev/null
+++ b/android-httpurlconnection/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.12.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/android-httpurlconnection/gradle.properties b/android-httpurlconnection/gradle.properties
new file mode 100644
index 0000000..5d08ba7
--- /dev/null
+++ b/android-httpurlconnection/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Settings specified in this file will override any Gradle settings
+# configured through the IDE.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/android-httpurlconnection/gradle/wrapper/gradle-wrapper.jar b/android-httpurlconnection/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/android-httpurlconnection/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/android-httpurlconnection/gradle/wrapper/gradle-wrapper.properties b/android-httpurlconnection/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..1e61d1f
--- /dev/null
+++ b/android-httpurlconnection/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
diff --git a/android-httpurlconnection/gradlew b/android-httpurlconnection/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/android-httpurlconnection/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/android-httpurlconnection/gradlew.bat b/android-httpurlconnection/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/android-httpurlconnection/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/android-httpurlconnection/settings.gradle b/android-httpurlconnection/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/android-httpurlconnection/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/android-intent-service/IntentServiceExample.iml b/android-intent-service/IntentServiceExample.iml
new file mode 100644
index 0000000..0bb6048
--- /dev/null
+++ b/android-intent-service/IntentServiceExample.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-intent-service/README.md b/android-intent-service/README.md
new file mode 100644
index 0000000..c7974dc
--- /dev/null
+++ b/android-intent-service/README.md
@@ -0,0 +1,4 @@
+Android-IntentService-Example
+=============================
+
+In this tutorial we will take a look into one of most important and commonly used Android concept called IntentService. This post explains how to use IntentService with example in Android.
diff --git a/android-intent-service/app/.gitignore b/android-intent-service/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/android-intent-service/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/android-intent-service/app/app.iml b/android-intent-service/app/app.iml
new file mode 100644
index 0000000..12eb616
--- /dev/null
+++ b/android-intent-service/app/app.iml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-intent-service/app/build.gradle b/android-intent-service/app/build.gradle
new file mode 100644
index 0000000..b14eb26
--- /dev/null
+++ b/android-intent-service/app/build.gradle
@@ -0,0 +1,24 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 20
+ buildToolsVersion "20.0.0"
+
+ defaultConfig {
+ applicationId "com.javatechig.intentserviceexample"
+ minSdkVersion 14
+ targetSdkVersion 20
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ runProguard false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+}
diff --git a/android-intent-service/app/proguard-rules.pro b/android-intent-service/app/proguard-rules.pro
new file mode 100644
index 0000000..85a5e2e
--- /dev/null
+++ b/android-intent-service/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Applications/adt-bundle-mac-x86_64-20140702/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/android-intent-service/app/src/androidTest/java/com/javatechig/intentserviceexample/ApplicationTest.java b/android-intent-service/app/src/androidTest/java/com/javatechig/intentserviceexample/ApplicationTest.java
new file mode 100644
index 0000000..9ec2284
--- /dev/null
+++ b/android-intent-service/app/src/androidTest/java/com/javatechig/intentserviceexample/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.javatechig.intentserviceexample;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/android-intent-service/app/src/main/AndroidManifest.xml b/android-intent-service/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..0577928
--- /dev/null
+++ b/android-intent-service/app/src/main/AndroidManifest.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/DownloadResultReceiver.java b/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/DownloadResultReceiver.java
new file mode 100644
index 0000000..3703c72
--- /dev/null
+++ b/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/DownloadResultReceiver.java
@@ -0,0 +1,32 @@
+package com.javatechig.intentserviceexample;
+
+/**
+ * Created by Neel on 9/14/14.
+ */
+import android.os.Bundle;
+import android.os.Handler;
+import android.os.ResultReceiver;
+
+public class DownloadResultReceiver extends ResultReceiver {
+ private Receiver mReceiver;
+
+ public DownloadResultReceiver(Handler handler) {
+ super(handler);
+ }
+
+ public void setReceiver(Receiver receiver) {
+ mReceiver = receiver;
+ }
+
+ public interface Receiver {
+ public void onReceiveResult(int resultCode, Bundle resultData);
+ }
+
+ @Override
+ protected void onReceiveResult(int resultCode, Bundle resultData) {
+ if (mReceiver != null) {
+ mReceiver.onReceiveResult(resultCode, resultData);
+ }
+ }
+}
+
diff --git a/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/DownloadService.java b/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/DownloadService.java
new file mode 100644
index 0000000..131c413
--- /dev/null
+++ b/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/DownloadService.java
@@ -0,0 +1,152 @@
+package com.javatechig.intentserviceexample;
+
+import android.app.IntentService;
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.ResultReceiver;
+import android.text.TextUtils;
+import android.util.Log;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+import java.io.BufferedInputStream;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+
+public class DownloadService extends IntentService {
+
+ public static final int STATUS_RUNNING = 0;
+ public static final int STATUS_FINISHED = 1;
+ public static final int STATUS_ERROR = 2;
+
+ private static final String TAG = "DownloadService";
+
+ public DownloadService() {
+ super(DownloadService.class.getName());
+ }
+
+ @Override
+ protected void onHandleIntent(Intent intent) {
+
+ Log.d(TAG, "Service Started!");
+
+ final ResultReceiver receiver = intent.getParcelableExtra("receiver");
+ String url = intent.getStringExtra("url");
+
+ Bundle bundle = new Bundle();
+
+ if (!TextUtils.isEmpty(url)) {
+ /* Update UI: Download Service is Running */
+ receiver.send(STATUS_RUNNING, Bundle.EMPTY);
+
+ try {
+ String[] results = downloadData(url);
+
+ /* Sending result back to activity */
+ if (null != results && results.length > 0) {
+ bundle.putStringArray("result", results);
+ receiver.send(STATUS_FINISHED, bundle);
+ }
+ } catch (Exception e) {
+
+ /* Sending error message back to activity */
+ bundle.putString(Intent.EXTRA_TEXT, e.toString());
+ receiver.send(STATUS_ERROR, bundle);
+ }
+ }
+ Log.d(TAG, "Service Stopping!");
+ this.stopSelf();
+ }
+
+ private String[] downloadData(String requestUrl) throws IOException, DownloadException {
+ InputStream inputStream = null;
+
+ HttpURLConnection urlConnection = null;
+
+ /* forming th java.net.URL object */
+ URL url = new URL(requestUrl);
+
+ urlConnection = (HttpURLConnection) url.openConnection();
+
+ /* optional request header */
+ urlConnection.setRequestProperty("Content-Type", "application/json");
+
+ /* optional request header */
+ urlConnection.setRequestProperty("Accept", "application/json");
+
+ /* for Get request */
+ urlConnection.setRequestMethod("GET");
+
+ int statusCode = urlConnection.getResponseCode();
+
+ /* 200 represents HTTP OK */
+ if (statusCode == 200) {
+ inputStream = new BufferedInputStream(urlConnection.getInputStream());
+
+ String response = convertInputStreamToString(inputStream);
+
+ String[] results = parseResult(response);
+
+ return results;
+ } else {
+ throw new DownloadException("Failed to fetch data!!");
+ }
+ }
+
+ private String convertInputStreamToString(InputStream inputStream) throws IOException {
+
+ BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
+ String line = "";
+ String result = "";
+
+ while ((line = bufferedReader.readLine()) != null) {
+ result += line;
+ }
+
+ /* Close Stream */
+ if (null != inputStream) {
+ inputStream.close();
+ }
+
+ return result;
+ }
+
+ private String[] parseResult(String result) {
+
+ String[] blogTitles = null;
+ try {
+ JSONObject response = new JSONObject(result);
+
+ JSONArray posts = response.optJSONArray("posts");
+
+ blogTitles = new String[posts.length()];
+
+ for (int i = 0; i < posts.length(); i++) {
+ JSONObject post = posts.optJSONObject(i);
+ String title = post.optString("title");
+
+ blogTitles[i] = title;
+ }
+
+ } catch (JSONException e) {
+ e.printStackTrace();
+ }
+
+ return blogTitles;
+ }
+
+ public class DownloadException extends Exception {
+
+ public DownloadException(String message) {
+ super(message);
+ }
+
+ public DownloadException(String message, Throwable cause) {
+ super(message, cause);
+ }
+ }
+}
\ No newline at end of file
diff --git a/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/MyActivity.java b/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/MyActivity.java
new file mode 100644
index 0000000..d0b6ee0
--- /dev/null
+++ b/android-intent-service/app/src/main/java/com/javatechig/intentserviceexample/MyActivity.java
@@ -0,0 +1,74 @@
+package com.javatechig.intentserviceexample;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.Handler;
+import android.view.Window;
+import android.widget.ArrayAdapter;
+import android.widget.ListView;
+import android.widget.Toast;
+
+public class MyActivity extends Activity implements DownloadResultReceiver.Receiver {
+
+ private ListView listView = null;
+
+ private ArrayAdapter arrayAdapter = null;
+
+ private DownloadResultReceiver mReceiver;
+
+ final String url = "http://javatechig.com/api/get_category_posts/?dev=1&slug=android";
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ /* Allow activity to show indeterminate progressbar */
+ requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
+
+ /* Set activity layout */
+ setContentView(R.layout.activity_my);
+
+ /* Initialize listView */
+ listView = (ListView) findViewById(R.id.listView);
+
+ /* Starting Download Service */
+ mReceiver = new DownloadResultReceiver(new Handler());
+ mReceiver.setReceiver(this);
+ Intent intent = new Intent(Intent.ACTION_SYNC, null, this, DownloadService.class);
+
+ /* Send optional extras to Download IntentService */
+ intent.putExtra("url", url);
+ intent.putExtra("receiver", mReceiver);
+ intent.putExtra("requestId", 101);
+
+ startService(intent);
+ }
+
+
+ @Override
+ public void onReceiveResult(int resultCode, Bundle resultData) {
+ switch (resultCode) {
+ case DownloadService.STATUS_RUNNING:
+
+ setProgressBarIndeterminateVisibility(true);
+ break;
+ case DownloadService.STATUS_FINISHED:
+ /* Hide progress & extract result from bundle */
+ setProgressBarIndeterminateVisibility(false);
+
+ String[] results = resultData.getStringArray("result");
+
+ /* Update ListView with result */
+ arrayAdapter = new ArrayAdapter(MyActivity.this, android.R.layout.simple_list_item_2, results);
+ listView.setAdapter(arrayAdapter);
+
+ break;
+ case DownloadService.STATUS_ERROR:
+ /* Handle the error */
+ String error = resultData.getString(Intent.EXTRA_TEXT);
+ Toast.makeText(this, error, Toast.LENGTH_LONG).show();
+ break;
+ }
+ }
+}
\ No newline at end of file
diff --git a/android-intent-service/app/src/main/res/drawable-hdpi/ic_launcher.png b/android-intent-service/app/src/main/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
Binary files /dev/null and b/android-intent-service/app/src/main/res/drawable-hdpi/ic_launcher.png differ
diff --git a/android-intent-service/app/src/main/res/drawable-mdpi/ic_launcher.png b/android-intent-service/app/src/main/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
Binary files /dev/null and b/android-intent-service/app/src/main/res/drawable-mdpi/ic_launcher.png differ
diff --git a/android-intent-service/app/src/main/res/drawable-xhdpi/ic_launcher.png b/android-intent-service/app/src/main/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
Binary files /dev/null and b/android-intent-service/app/src/main/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/android-intent-service/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/android-intent-service/app/src/main/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4df1894
Binary files /dev/null and b/android-intent-service/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/android-intent-service/app/src/main/res/layout/activity_my.xml b/android-intent-service/app/src/main/res/layout/activity_my.xml
new file mode 100644
index 0000000..0373d17
--- /dev/null
+++ b/android-intent-service/app/src/main/res/layout/activity_my.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/android-intent-service/app/src/main/res/menu/my.xml b/android-intent-service/app/src/main/res/menu/my.xml
new file mode 100644
index 0000000..bea58cc
--- /dev/null
+++ b/android-intent-service/app/src/main/res/menu/my.xml
@@ -0,0 +1,8 @@
+
diff --git a/android-intent-service/app/src/main/res/values-w820dp/dimens.xml b/android-intent-service/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/android-intent-service/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/android-intent-service/app/src/main/res/values/dimens.xml b/android-intent-service/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/android-intent-service/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/android-intent-service/app/src/main/res/values/strings.xml b/android-intent-service/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..067514e
--- /dev/null
+++ b/android-intent-service/app/src/main/res/values/strings.xml
@@ -0,0 +1,8 @@
+
+
+
+ IntentServiceExample
+ Hello world!
+ Settings
+
+
diff --git a/android-intent-service/app/src/main/res/values/styles.xml b/android-intent-service/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..ff6c9d2
--- /dev/null
+++ b/android-intent-service/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/android-intent-service/build.gradle b/android-intent-service/build.gradle
new file mode 100644
index 0000000..9b8abe4
--- /dev/null
+++ b/android-intent-service/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.12.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/android-intent-service/gradle.properties b/android-intent-service/gradle.properties
new file mode 100644
index 0000000..5d08ba7
--- /dev/null
+++ b/android-intent-service/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Settings specified in this file will override any Gradle settings
+# configured through the IDE.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/android-intent-service/gradle/wrapper/gradle-wrapper.jar b/android-intent-service/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/android-intent-service/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/android-intent-service/gradle/wrapper/gradle-wrapper.properties b/android-intent-service/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..1e61d1f
--- /dev/null
+++ b/android-intent-service/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
diff --git a/android-intent-service/gradlew b/android-intent-service/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/android-intent-service/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/android-intent-service/gradlew.bat b/android-intent-service/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/android-intent-service/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/android-intent-service/settings.gradle b/android-intent-service/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/android-intent-service/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/ListAllFiles/AndroidManifest.xml b/android-list-all-files/AndroidManifest.xml
similarity index 100%
rename from ListAllFiles/AndroidManifest.xml
rename to android-list-all-files/AndroidManifest.xml
diff --git a/ListAllFiles/libs/android-support-v4.jar b/android-list-all-files/libs/android-support-v4.jar
similarity index 100%
rename from ListAllFiles/libs/android-support-v4.jar
rename to android-list-all-files/libs/android-support-v4.jar
diff --git a/ListAllFiles/project.properties b/android-list-all-files/project.properties
similarity index 100%
rename from ListAllFiles/project.properties
rename to android-list-all-files/project.properties
diff --git a/GetRegisteredEmailAccounts/res/drawable-hdpi/ic_launcher.png b/android-list-all-files/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from GetRegisteredEmailAccounts/res/drawable-hdpi/ic_launcher.png
rename to android-list-all-files/res/drawable-hdpi/ic_launcher.png
diff --git a/GetRegisteredEmailAccounts/res/drawable-mdpi/ic_launcher.png b/android-list-all-files/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from GetRegisteredEmailAccounts/res/drawable-mdpi/ic_launcher.png
rename to android-list-all-files/res/drawable-mdpi/ic_launcher.png
diff --git a/GetRegisteredEmailAccounts/res/drawable-xhdpi/ic_launcher.png b/android-list-all-files/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from GetRegisteredEmailAccounts/res/drawable-xhdpi/ic_launcher.png
rename to android-list-all-files/res/drawable-xhdpi/ic_launcher.png
diff --git a/GetRegisteredEmailAccounts/res/drawable-xxhdpi/ic_launcher.png b/android-list-all-files/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from GetRegisteredEmailAccounts/res/drawable-xxhdpi/ic_launcher.png
rename to android-list-all-files/res/drawable-xxhdpi/ic_launcher.png
diff --git a/ListAllFiles/res/layout/activity_main.xml b/android-list-all-files/res/layout/activity_main.xml
similarity index 100%
rename from ListAllFiles/res/layout/activity_main.xml
rename to android-list-all-files/res/layout/activity_main.xml
diff --git a/HandlerExample/res/menu/main.xml b/android-list-all-files/res/menu/main.xml
similarity index 100%
rename from HandlerExample/res/menu/main.xml
rename to android-list-all-files/res/menu/main.xml
diff --git a/GoogleAnalyticsDemo/res/values-sw600dp/dimens.xml b/android-list-all-files/res/values-sw600dp/dimens.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/values-sw600dp/dimens.xml
rename to android-list-all-files/res/values-sw600dp/dimens.xml
diff --git a/GoogleAnalyticsDemo/res/values-sw720dp-land/dimens.xml b/android-list-all-files/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/values-sw720dp-land/dimens.xml
rename to android-list-all-files/res/values-sw720dp-land/dimens.xml
diff --git a/GoogleAnalyticsDemo/res/values-v11/styles.xml b/android-list-all-files/res/values-v11/styles.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/values-v11/styles.xml
rename to android-list-all-files/res/values-v11/styles.xml
diff --git a/GoogleAnalyticsDemo/res/values-v14/styles.xml b/android-list-all-files/res/values-v14/styles.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/values-v14/styles.xml
rename to android-list-all-files/res/values-v14/styles.xml
diff --git a/GoogleAnalyticsDemo/res/values/dimens.xml b/android-list-all-files/res/values/dimens.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/values/dimens.xml
rename to android-list-all-files/res/values/dimens.xml
diff --git a/ListAllFiles/res/values/strings.xml b/android-list-all-files/res/values/strings.xml
similarity index 100%
rename from ListAllFiles/res/values/strings.xml
rename to android-list-all-files/res/values/strings.xml
diff --git a/GoogleAnalyticsDemo/res/values/styles.xml b/android-list-all-files/res/values/styles.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/values/styles.xml
rename to android-list-all-files/res/values/styles.xml
diff --git a/ListAllFiles/src/com/javatechig/listallfiles/MainActivity.java b/android-list-all-files/src/com/javatechig/listallfiles/MainActivity.java
similarity index 100%
rename from ListAllFiles/src/com/javatechig/listallfiles/MainActivity.java
rename to android-list-all-files/src/com/javatechig/listallfiles/MainActivity.java
diff --git a/ListInstalledApps/AndroidManifest.xml b/android-list-installed-apps/AndroidManifest.xml
similarity index 100%
rename from ListInstalledApps/AndroidManifest.xml
rename to android-list-installed-apps/AndroidManifest.xml
diff --git a/HandlerExample/res/drawable-hdpi/ic_launcher.png b/android-list-installed-apps/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from HandlerExample/res/drawable-hdpi/ic_launcher.png
rename to android-list-installed-apps/res/drawable-hdpi/ic_launcher.png
diff --git a/HandlerExample/res/drawable-mdpi/ic_launcher.png b/android-list-installed-apps/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from HandlerExample/res/drawable-mdpi/ic_launcher.png
rename to android-list-installed-apps/res/drawable-mdpi/ic_launcher.png
diff --git a/HandlerExample/res/drawable-xhdpi/ic_launcher.png b/android-list-installed-apps/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from HandlerExample/res/drawable-xhdpi/ic_launcher.png
rename to android-list-installed-apps/res/drawable-xhdpi/ic_launcher.png
diff --git a/HandlerExample/res/drawable-xxhdpi/ic_launcher.png b/android-list-installed-apps/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from HandlerExample/res/drawable-xxhdpi/ic_launcher.png
rename to android-list-installed-apps/res/drawable-xxhdpi/ic_launcher.png
diff --git a/ListInstalledApps/res/layout/activity_main.xml b/android-list-installed-apps/res/layout/activity_main.xml
similarity index 100%
rename from ListInstalledApps/res/layout/activity_main.xml
rename to android-list-installed-apps/res/layout/activity_main.xml
diff --git a/ListInstalledApps/res/layout/snippet_list_row.xml b/android-list-installed-apps/res/layout/snippet_list_row.xml
similarity index 100%
rename from ListInstalledApps/res/layout/snippet_list_row.xml
rename to android-list-installed-apps/res/layout/snippet_list_row.xml
diff --git a/ListInstalledApps/res/menu/menu.xml b/android-list-installed-apps/res/menu/menu.xml
similarity index 100%
rename from ListInstalledApps/res/menu/menu.xml
rename to android-list-installed-apps/res/menu/menu.xml
diff --git a/HandlerExample/res/values-sw600dp/dimens.xml b/android-list-installed-apps/res/values-sw600dp/dimens.xml
similarity index 100%
rename from HandlerExample/res/values-sw600dp/dimens.xml
rename to android-list-installed-apps/res/values-sw600dp/dimens.xml
diff --git a/HandlerExample/res/values-sw720dp-land/dimens.xml b/android-list-installed-apps/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from HandlerExample/res/values-sw720dp-land/dimens.xml
rename to android-list-installed-apps/res/values-sw720dp-land/dimens.xml
diff --git a/HandlerExample/res/values-v11/styles.xml b/android-list-installed-apps/res/values-v11/styles.xml
similarity index 100%
rename from HandlerExample/res/values-v11/styles.xml
rename to android-list-installed-apps/res/values-v11/styles.xml
diff --git a/HandlerExample/res/values-v14/styles.xml b/android-list-installed-apps/res/values-v14/styles.xml
similarity index 100%
rename from HandlerExample/res/values-v14/styles.xml
rename to android-list-installed-apps/res/values-v14/styles.xml
diff --git a/ListInstalledApps/res/values/dimens.xml b/android-list-installed-apps/res/values/dimens.xml
similarity index 100%
rename from ListInstalledApps/res/values/dimens.xml
rename to android-list-installed-apps/res/values/dimens.xml
diff --git a/ListInstalledApps/res/values/strings.xml b/android-list-installed-apps/res/values/strings.xml
similarity index 100%
rename from ListInstalledApps/res/values/strings.xml
rename to android-list-installed-apps/res/values/strings.xml
diff --git a/HandlerExample/res/values/styles.xml b/android-list-installed-apps/res/values/styles.xml
similarity index 100%
rename from HandlerExample/res/values/styles.xml
rename to android-list-installed-apps/res/values/styles.xml
diff --git a/ListInstalledApps/src/com/javatechig/listapps/AllAppsActivity.java b/android-list-installed-apps/src/com/javatechig/listapps/AllAppsActivity.java
similarity index 100%
rename from ListInstalledApps/src/com/javatechig/listapps/AllAppsActivity.java
rename to android-list-installed-apps/src/com/javatechig/listapps/AllAppsActivity.java
diff --git a/ListInstalledApps/src/com/javatechig/listapps/ApplicationAdapter.java b/android-list-installed-apps/src/com/javatechig/listapps/ApplicationAdapter.java
similarity index 100%
rename from ListInstalledApps/src/com/javatechig/listapps/ApplicationAdapter.java
rename to android-list-installed-apps/src/com/javatechig/listapps/ApplicationAdapter.java
diff --git a/android-progress-notification/AndroidManifest.xml b/android-progress-notification/AndroidManifest.xml
new file mode 100644
index 0000000..2dc20aa
--- /dev/null
+++ b/android-progress-notification/AndroidManifest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-progress-notification/README.md b/android-progress-notification/README.md
new file mode 100644
index 0000000..92bfcb1
--- /dev/null
+++ b/android-progress-notification/README.md
@@ -0,0 +1,7 @@
+Progress Notification Example Android
+=====================================
+In this example we’ll show you how to display progress notification in android using NotificationManager class. For the sake of simplicity the below example shows an simple AsyncTask that does the background operation and update the progress bar displayed on android notification area.
+
+
+Read more
+http://stacktips.com/tutorials/android/progress-notification-in-android-example
diff --git a/android-progress-notification/libs/android-support-v4.jar b/android-progress-notification/libs/android-support-v4.jar
new file mode 100644
index 0000000..187bdf4
Binary files /dev/null and b/android-progress-notification/libs/android-support-v4.jar differ
diff --git a/android-progress-notification/project.properties b/android-progress-notification/project.properties
new file mode 100644
index 0000000..4ab1256
--- /dev/null
+++ b/android-progress-notification/project.properties
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-19
diff --git a/android-progress-notification/res/drawable-hdpi/ic_download.png b/android-progress-notification/res/drawable-hdpi/ic_download.png
new file mode 100644
index 0000000..8dc86bd
Binary files /dev/null and b/android-progress-notification/res/drawable-hdpi/ic_download.png differ
diff --git a/ListAllFiles/res/drawable-hdpi/ic_launcher.png b/android-progress-notification/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from ListAllFiles/res/drawable-hdpi/ic_launcher.png
rename to android-progress-notification/res/drawable-hdpi/ic_launcher.png
diff --git a/ListAllFiles/res/drawable-mdpi/ic_launcher.png b/android-progress-notification/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from ListAllFiles/res/drawable-mdpi/ic_launcher.png
rename to android-progress-notification/res/drawable-mdpi/ic_launcher.png
diff --git a/ListAllFiles/res/drawable-xhdpi/ic_launcher.png b/android-progress-notification/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from ListAllFiles/res/drawable-xhdpi/ic_launcher.png
rename to android-progress-notification/res/drawable-xhdpi/ic_launcher.png
diff --git a/ListAllFiles/res/drawable-xxhdpi/ic_launcher.png b/android-progress-notification/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from ListAllFiles/res/drawable-xxhdpi/ic_launcher.png
rename to android-progress-notification/res/drawable-xxhdpi/ic_launcher.png
diff --git a/android-progress-notification/res/layout/activity_main.xml b/android-progress-notification/res/layout/activity_main.xml
new file mode 100644
index 0000000..72e1db5
--- /dev/null
+++ b/android-progress-notification/res/layout/activity_main.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/android-progress-notification/res/layout/fragment_main.xml b/android-progress-notification/res/layout/fragment_main.xml
new file mode 100644
index 0000000..4a0992e
--- /dev/null
+++ b/android-progress-notification/res/layout/fragment_main.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
diff --git a/android-progress-notification/res/menu/main.xml b/android-progress-notification/res/menu/main.xml
new file mode 100644
index 0000000..5c485dc
--- /dev/null
+++ b/android-progress-notification/res/menu/main.xml
@@ -0,0 +1,11 @@
+
diff --git a/ListAllFiles/res/values-v11/styles.xml b/android-progress-notification/res/values-v11/styles.xml
similarity index 100%
rename from ListAllFiles/res/values-v11/styles.xml
rename to android-progress-notification/res/values-v11/styles.xml
diff --git a/ListAllFiles/res/values-v14/styles.xml b/android-progress-notification/res/values-v14/styles.xml
similarity index 100%
rename from ListAllFiles/res/values-v14/styles.xml
rename to android-progress-notification/res/values-v14/styles.xml
diff --git a/TODO Android App/res/values-w820dp/dimens.xml b/android-progress-notification/res/values-w820dp/dimens.xml
similarity index 100%
rename from TODO Android App/res/values-w820dp/dimens.xml
rename to android-progress-notification/res/values-w820dp/dimens.xml
diff --git a/HandlerExample/res/values/dimens.xml b/android-progress-notification/res/values/dimens.xml
similarity index 100%
rename from HandlerExample/res/values/dimens.xml
rename to android-progress-notification/res/values/dimens.xml
diff --git a/android-progress-notification/res/values/strings.xml b/android-progress-notification/res/values/strings.xml
new file mode 100644
index 0000000..574cb4e
--- /dev/null
+++ b/android-progress-notification/res/values/strings.xml
@@ -0,0 +1,8 @@
+
+
+
+ ProgressNotification
+ Hello world!
+ Settings
+
+
diff --git a/ListAllFiles/res/values/styles.xml b/android-progress-notification/res/values/styles.xml
similarity index 100%
rename from ListAllFiles/res/values/styles.xml
rename to android-progress-notification/res/values/styles.xml
diff --git a/android-progress-notification/src/com/javatechig/progressnotification/MainActivity.java b/android-progress-notification/src/com/javatechig/progressnotification/MainActivity.java
new file mode 100644
index 0000000..71c3298
--- /dev/null
+++ b/android-progress-notification/src/com/javatechig/progressnotification/MainActivity.java
@@ -0,0 +1,88 @@
+package com.javatechig.progressnotification;
+
+import android.app.Activity;
+import android.app.NotificationManager;
+import android.content.Context;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.support.v4.app.NotificationCompat;
+import android.support.v4.app.NotificationCompat.Builder;
+import android.util.Log;
+import android.view.View;
+import android.widget.Button;
+
+public class MainActivity extends Activity {
+
+ private NotificationManager mNotifyManager;
+ private Builder mBuilder;
+ int id = 1;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ Button b1 = (Button) findViewById(R.id.button1);
+ b1.setOnClickListener(new View.OnClickListener() {
+
+ public void onClick(View arg0) {
+
+ mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
+ mBuilder = new NotificationCompat.Builder(MainActivity.this);
+ mBuilder.setContentTitle("Download")
+ .setContentText("Download in progress")
+ .setSmallIcon(R.drawable.ic_download);
+
+ new Downloader().execute();
+
+ }
+ });
+
+ }
+
+ private class Downloader extends AsyncTask {
+
+ @Override
+ protected void onPreExecute() {
+ super.onPreExecute();
+
+ // Displays the progress bar for the first time.
+ mBuilder.setProgress(100, 0, false);
+ mNotifyManager.notify(id, mBuilder.build());
+ }
+
+ @Override
+ protected void onProgressUpdate(Integer... values) {
+ // Update progress
+ mBuilder.setProgress(100, values[0], false);
+ mNotifyManager.notify(id, mBuilder.build());
+ super.onProgressUpdate(values);
+ }
+
+ @Override
+ protected Integer doInBackground(Void... params) {
+ int i;
+ for (i = 0; i <= 100; i += 5) {
+ // Sets the progress indicator completion percentage
+ publishProgress(Math.min(i, 100));
+ try {
+ // Sleep for 5 seconds
+ Thread.sleep(2 * 1000);
+ } catch (InterruptedException e) {
+ Log.d("TAG", "sleep failure");
+ }
+ }
+ return null;
+ }
+
+ @Override
+ protected void onPostExecute(Integer result) {
+ super.onPostExecute(result);
+ mBuilder.setContentText("Download complete");
+ // Removes the progress bar
+ mBuilder.setProgress(0, 0, false);
+ mNotifyManager.notify(id, mBuilder.build());
+ }
+ }
+
+}
diff --git a/AndroidSMS/AndroidManifest.xml b/android-sending-sms/AndroidManifest.xml
similarity index 100%
rename from AndroidSMS/AndroidManifest.xml
rename to android-sending-sms/AndroidManifest.xml
diff --git a/AndroidSMS/gen/com/javatechig/droid/sms/BuildConfig.java b/android-sending-sms/gen/com/javatechig/droid/sms/BuildConfig.java
similarity index 100%
rename from AndroidSMS/gen/com/javatechig/droid/sms/BuildConfig.java
rename to android-sending-sms/gen/com/javatechig/droid/sms/BuildConfig.java
diff --git a/AndroidSMS/gen/com/javatechig/droid/sms/R.java b/android-sending-sms/gen/com/javatechig/droid/sms/R.java
similarity index 100%
rename from AndroidSMS/gen/com/javatechig/droid/sms/R.java
rename to android-sending-sms/gen/com/javatechig/droid/sms/R.java
diff --git a/AndroidSMS/ic_launcher-web.png b/android-sending-sms/ic_launcher-web.png
similarity index 100%
rename from AndroidSMS/ic_launcher-web.png
rename to android-sending-sms/ic_launcher-web.png
diff --git a/AsyncImageLoaderListview/libs/android-support-v4.jar b/android-sending-sms/libs/android-support-v4.jar
similarity index 100%
rename from AsyncImageLoaderListview/libs/android-support-v4.jar
rename to android-sending-sms/libs/android-support-v4.jar
diff --git a/AsyncImageLoaderListview/proguard-project.txt b/android-sending-sms/proguard-project.txt
similarity index 100%
rename from AsyncImageLoaderListview/proguard-project.txt
rename to android-sending-sms/proguard-project.txt
diff --git a/AsyncImageLoaderListview/project.properties b/android-sending-sms/project.properties
similarity index 100%
rename from AsyncImageLoaderListview/project.properties
rename to android-sending-sms/project.properties
diff --git a/ListInstalledApps/res/drawable-hdpi/ic_launcher.png b/android-sending-sms/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from ListInstalledApps/res/drawable-hdpi/ic_launcher.png
rename to android-sending-sms/res/drawable-hdpi/ic_launcher.png
diff --git a/ListInstalledApps/res/drawable-mdpi/ic_launcher.png b/android-sending-sms/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from ListInstalledApps/res/drawable-mdpi/ic_launcher.png
rename to android-sending-sms/res/drawable-mdpi/ic_launcher.png
diff --git a/ListInstalledApps/res/drawable-xhdpi/ic_launcher.png b/android-sending-sms/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from ListInstalledApps/res/drawable-xhdpi/ic_launcher.png
rename to android-sending-sms/res/drawable-xhdpi/ic_launcher.png
diff --git a/ListInstalledApps/res/drawable-xxhdpi/ic_launcher.png b/android-sending-sms/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from ListInstalledApps/res/drawable-xxhdpi/ic_launcher.png
rename to android-sending-sms/res/drawable-xxhdpi/ic_launcher.png
diff --git a/AndroidSMS/res/layout/activity_main.xml b/android-sending-sms/res/layout/activity_main.xml
similarity index 100%
rename from AndroidSMS/res/layout/activity_main.xml
rename to android-sending-sms/res/layout/activity_main.xml
diff --git a/AndroidSMS/res/menu/main.xml b/android-sending-sms/res/menu/main.xml
similarity index 100%
rename from AndroidSMS/res/menu/main.xml
rename to android-sending-sms/res/menu/main.xml
diff --git a/AsyncImageLoaderListview/res/values-sw600dp/dimens.xml b/android-sending-sms/res/values-sw600dp/dimens.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/values-sw600dp/dimens.xml
rename to android-sending-sms/res/values-sw600dp/dimens.xml
diff --git a/AsyncImageLoaderListview/res/values-sw720dp-land/dimens.xml b/android-sending-sms/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/values-sw720dp-land/dimens.xml
rename to android-sending-sms/res/values-sw720dp-land/dimens.xml
diff --git a/AsyncImageLoaderListview/res/values-v11/styles.xml b/android-sending-sms/res/values-v11/styles.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/values-v11/styles.xml
rename to android-sending-sms/res/values-v11/styles.xml
diff --git a/AsyncImageLoaderListview/res/values-v14/styles.xml b/android-sending-sms/res/values-v14/styles.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/values-v14/styles.xml
rename to android-sending-sms/res/values-v14/styles.xml
diff --git a/AsyncImageLoaderListview/res/values/dimens.xml b/android-sending-sms/res/values/dimens.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/values/dimens.xml
rename to android-sending-sms/res/values/dimens.xml
diff --git a/AndroidSMS/res/values/strings.xml b/android-sending-sms/res/values/strings.xml
similarity index 100%
rename from AndroidSMS/res/values/strings.xml
rename to android-sending-sms/res/values/strings.xml
diff --git a/AsyncImageLoaderListview/res/values/styles.xml b/android-sending-sms/res/values/styles.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/values/styles.xml
rename to android-sending-sms/res/values/styles.xml
diff --git a/AndroidSMS/src/com/javatechig/droid/sms/MainActivity.java b/android-sending-sms/src/com/javatechig/droid/sms/MainActivity.java
similarity index 100%
rename from AndroidSMS/src/com/javatechig/droid/sms/MainActivity.java
rename to android-sending-sms/src/com/javatechig/droid/sms/MainActivity.java
diff --git a/android-service-demo/README.md b/android-service-demo/README.md
new file mode 100644
index 0000000..c1205b0
--- /dev/null
+++ b/android-service-demo/README.md
@@ -0,0 +1,5 @@
+Android-Service-Example
+=======================
+
+In this tutorial we will learn how to create a service, and service lifecycle methods.
+
diff --git a/android-service-demo/ServiceExample.iml b/android-service-demo/ServiceExample.iml
new file mode 100644
index 0000000..0bb6048
--- /dev/null
+++ b/android-service-demo/ServiceExample.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-service-demo/app/.gitignore b/android-service-demo/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/android-service-demo/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/android-service-demo/app/app.iml b/android-service-demo/app/app.iml
new file mode 100644
index 0000000..dc81bc3
--- /dev/null
+++ b/android-service-demo/app/app.iml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-service-demo/app/build.gradle b/android-service-demo/app/build.gradle
new file mode 100644
index 0000000..a189c88
--- /dev/null
+++ b/android-service-demo/app/build.gradle
@@ -0,0 +1,24 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 20
+ buildToolsVersion "20.0.0"
+
+ defaultConfig {
+ applicationId "com.javatechig.serviceexample"
+ minSdkVersion 14
+ targetSdkVersion 20
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ runProguard false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+}
diff --git a/android-service-demo/app/proguard-rules.pro b/android-service-demo/app/proguard-rules.pro
new file mode 100644
index 0000000..85a5e2e
--- /dev/null
+++ b/android-service-demo/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Applications/adt-bundle-mac-x86_64-20140702/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/android-service-demo/app/src/androidTest/java/com/javatechig/serviceexample/ApplicationTest.java b/android-service-demo/app/src/androidTest/java/com/javatechig/serviceexample/ApplicationTest.java
new file mode 100644
index 0000000..41dce6f
--- /dev/null
+++ b/android-service-demo/app/src/androidTest/java/com/javatechig/serviceexample/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.javatechig.serviceexample;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/android-service-demo/app/src/main/AndroidManifest.xml b/android-service-demo/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..3057a9b
--- /dev/null
+++ b/android-service-demo/app/src/main/AndroidManifest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-service-demo/app/src/main/java/com/javatechig/serviceexample/HelloActivity.java b/android-service-demo/app/src/main/java/com/javatechig/serviceexample/HelloActivity.java
new file mode 100644
index 0000000..fe379cd
--- /dev/null
+++ b/android-service-demo/app/src/main/java/com/javatechig/serviceexample/HelloActivity.java
@@ -0,0 +1,39 @@
+package com.javatechig.serviceexample;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+
+
+public class HelloActivity extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_hello);
+
+
+ //starting service
+ findViewById(R.id.start_service).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(HelloActivity.this, HelloService.class);
+ startService(intent);
+ }
+ });
+
+
+ //service onDestroy callback method will be called
+ findViewById(R.id.stop_Service).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(HelloActivity.this, HelloService.class);
+ stopService(intent);
+ }
+ });
+
+ }
+}
diff --git a/android-service-demo/app/src/main/java/com/javatechig/serviceexample/HelloService.java b/android-service-demo/app/src/main/java/com/javatechig/serviceexample/HelloService.java
new file mode 100644
index 0000000..9f64c10
--- /dev/null
+++ b/android-service-demo/app/src/main/java/com/javatechig/serviceexample/HelloService.java
@@ -0,0 +1,68 @@
+package com.javatechig.serviceexample;
+
+import android.app.Service;
+import android.content.Intent;
+import android.os.IBinder;
+import android.util.Log;
+
+public class HelloService extends Service {
+
+ private static final String TAG = "HelloService";
+
+ private boolean isRunning = false;
+
+ @Override
+ public void onCreate() {
+ Log.i(TAG, "Service onCreate");
+
+ isRunning = true;
+ }
+
+ @Override
+ public int onStartCommand(Intent intent, int flags, int startId) {
+
+ Log.i(TAG, "Service onStartCommand");
+
+ //Creating new thread for my service
+ //Always write your long running tasks in a separate thread, to avoid ANR
+ new Thread(new Runnable() {
+ @Override
+ public void run() {
+
+
+ //Your logic that service will perform will be placed here
+ //In this example we are just looping and waits for 1000 milliseconds in each loop.
+ for (int i = 0; i < 5; i++) {
+ try {
+ Thread.sleep(1000);
+ } catch (Exception e) {
+ }
+
+ if(isRunning){
+ Log.i(TAG, "Service running");
+ }
+ }
+
+ //Stop service once it finishes its task
+ stopSelf();
+ }
+ }).start();
+
+ return Service.START_STICKY;
+ }
+
+
+ @Override
+ public IBinder onBind(Intent arg0) {
+ Log.i(TAG, "Service onBind");
+ return null;
+ }
+
+ @Override
+ public void onDestroy() {
+
+ isRunning = false;
+
+ Log.i(TAG, "Service onDestroy");
+ }
+}
\ No newline at end of file
diff --git a/android-service-demo/app/src/main/res/drawable-hdpi/ic_launcher.png b/android-service-demo/app/src/main/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
Binary files /dev/null and b/android-service-demo/app/src/main/res/drawable-hdpi/ic_launcher.png differ
diff --git a/android-service-demo/app/src/main/res/drawable-mdpi/ic_launcher.png b/android-service-demo/app/src/main/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
Binary files /dev/null and b/android-service-demo/app/src/main/res/drawable-mdpi/ic_launcher.png differ
diff --git a/android-service-demo/app/src/main/res/drawable-xhdpi/ic_launcher.png b/android-service-demo/app/src/main/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
Binary files /dev/null and b/android-service-demo/app/src/main/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/android-service-demo/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/android-service-demo/app/src/main/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4df1894
Binary files /dev/null and b/android-service-demo/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/android-service-demo/app/src/main/res/layout/activity_hello.xml b/android-service-demo/app/src/main/res/layout/activity_hello.xml
new file mode 100644
index 0000000..b5e7806
--- /dev/null
+++ b/android-service-demo/app/src/main/res/layout/activity_hello.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/android-service-demo/app/src/main/res/menu/hello.xml b/android-service-demo/app/src/main/res/menu/hello.xml
new file mode 100644
index 0000000..e7c79b0
--- /dev/null
+++ b/android-service-demo/app/src/main/res/menu/hello.xml
@@ -0,0 +1,8 @@
+
diff --git a/android-service-demo/app/src/main/res/values-w820dp/dimens.xml b/android-service-demo/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/android-service-demo/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/android-service-demo/app/src/main/res/values/dimens.xml b/android-service-demo/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/android-service-demo/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/android-service-demo/app/src/main/res/values/strings.xml b/android-service-demo/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..f655315
--- /dev/null
+++ b/android-service-demo/app/src/main/res/values/strings.xml
@@ -0,0 +1,12 @@
+
+
+
+ Service Example
+ - A service is a application component used to perform long running tasks in background. \n\n- A service can run in the background indefinitely, even if component that started the service is destroyed.\n\n- Usually a service always performs a single operation and stops itself once intended task is complete.
+
+
+ Start Service
+
+ Stop Service
+
+
diff --git a/android-service-demo/app/src/main/res/values/styles.xml b/android-service-demo/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..ff6c9d2
--- /dev/null
+++ b/android-service-demo/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/android-service-demo/build.gradle b/android-service-demo/build.gradle
new file mode 100644
index 0000000..9b8abe4
--- /dev/null
+++ b/android-service-demo/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.12.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/android-service-demo/gradle.properties b/android-service-demo/gradle.properties
new file mode 100644
index 0000000..5d08ba7
--- /dev/null
+++ b/android-service-demo/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Settings specified in this file will override any Gradle settings
+# configured through the IDE.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/android-service-demo/gradle/wrapper/gradle-wrapper.jar b/android-service-demo/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/android-service-demo/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/android-service-demo/gradle/wrapper/gradle-wrapper.properties b/android-service-demo/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..1e61d1f
--- /dev/null
+++ b/android-service-demo/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
diff --git a/android-service-demo/gradlew b/android-service-demo/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/android-service-demo/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/android-service-demo/gradlew.bat b/android-service-demo/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/android-service-demo/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/android-service-demo/settings.gradle b/android-service-demo/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/android-service-demo/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/android-share-on-twitter-example/AndroidManifest.xml b/android-share-on-twitter-example/AndroidManifest.xml
new file mode 100755
index 0000000..cb2b559
--- /dev/null
+++ b/android-share-on-twitter-example/AndroidManifest.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-share-on-twitter-example/README.md b/android-share-on-twitter-example/README.md
new file mode 100644
index 0000000..7715cf2
--- /dev/null
+++ b/android-share-on-twitter-example/README.md
@@ -0,0 +1,4 @@
+Twitter-Sharing-Example-Android
+===============================
+
+This tutorial explains, how to integrate twitter in android application. The example below using twitter4j java library for login to twitter and allows to share a simple text post and image post in users twitters timeline.
diff --git a/GoogleAnalyticsDemo/libs/android-support-v4.jar b/android-share-on-twitter-example/libs/android-support-v4.jar
old mode 100644
new mode 100755
similarity index 100%
rename from GoogleAnalyticsDemo/libs/android-support-v4.jar
rename to android-share-on-twitter-example/libs/android-support-v4.jar
diff --git a/android-share-on-twitter-example/libs/twitter4j-core-4.0.2.jar b/android-share-on-twitter-example/libs/twitter4j-core-4.0.2.jar
new file mode 100644
index 0000000..2ad64f5
Binary files /dev/null and b/android-share-on-twitter-example/libs/twitter4j-core-4.0.2.jar differ
diff --git a/android-share-on-twitter-example/project.properties b/android-share-on-twitter-example/project.properties
new file mode 100755
index 0000000..e0a848d
--- /dev/null
+++ b/android-share-on-twitter-example/project.properties
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=Google Inc.:Google APIs:15
diff --git a/android-share-on-twitter-example/res/drawable-hdpi/ic_launcher.png b/android-share-on-twitter-example/res/drawable-hdpi/ic_launcher.png
new file mode 100755
index 0000000..f5c15fa
Binary files /dev/null and b/android-share-on-twitter-example/res/drawable-hdpi/ic_launcher.png differ
diff --git a/android-share-on-twitter-example/res/drawable-mdpi/ic_launcher.png b/android-share-on-twitter-example/res/drawable-mdpi/ic_launcher.png
new file mode 100755
index 0000000..c336f9b
Binary files /dev/null and b/android-share-on-twitter-example/res/drawable-mdpi/ic_launcher.png differ
diff --git a/android-share-on-twitter-example/res/drawable-xhdpi/ic_launcher.png b/android-share-on-twitter-example/res/drawable-xhdpi/ic_launcher.png
new file mode 100755
index 0000000..f4dab16
Binary files /dev/null and b/android-share-on-twitter-example/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/android-share-on-twitter-example/res/drawable-xxhdpi/ic_launcher.png b/android-share-on-twitter-example/res/drawable-xxhdpi/ic_launcher.png
new file mode 100755
index 0000000..84d68d3
Binary files /dev/null and b/android-share-on-twitter-example/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/android-share-on-twitter-example/res/drawable-xxxhdpi/ic_launcher.png b/android-share-on-twitter-example/res/drawable-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..a4e4f93
Binary files /dev/null and b/android-share-on-twitter-example/res/drawable-xxxhdpi/ic_launcher.png differ
diff --git a/android-share-on-twitter-example/res/drawable/lakeside_view.jpg b/android-share-on-twitter-example/res/drawable/lakeside_view.jpg
new file mode 100644
index 0000000..d9919eb
Binary files /dev/null and b/android-share-on-twitter-example/res/drawable/lakeside_view.jpg differ
diff --git a/android-share-on-twitter-example/res/layout/activity_main.xml b/android-share-on-twitter-example/res/layout/activity_main.xml
new file mode 100755
index 0000000..cdd0e82
--- /dev/null
+++ b/android-share-on-twitter-example/res/layout/activity_main.xml
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-share-on-twitter-example/res/layout/activity_webview.xml b/android-share-on-twitter-example/res/layout/activity_webview.xml
new file mode 100755
index 0000000..1d5dfab
--- /dev/null
+++ b/android-share-on-twitter-example/res/layout/activity_webview.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ListAllFiles/res/menu/main.xml b/android-share-on-twitter-example/res/menu/main.xml
old mode 100644
new mode 100755
similarity index 100%
rename from ListAllFiles/res/menu/main.xml
rename to android-share-on-twitter-example/res/menu/main.xml
diff --git a/ListAllFiles/res/values-sw600dp/dimens.xml b/android-share-on-twitter-example/res/values-sw600dp/dimens.xml
old mode 100644
new mode 100755
similarity index 100%
rename from ListAllFiles/res/values-sw600dp/dimens.xml
rename to android-share-on-twitter-example/res/values-sw600dp/dimens.xml
diff --git a/ListAllFiles/res/values-sw720dp-land/dimens.xml b/android-share-on-twitter-example/res/values-sw720dp-land/dimens.xml
old mode 100644
new mode 100755
similarity index 100%
rename from ListAllFiles/res/values-sw720dp-land/dimens.xml
rename to android-share-on-twitter-example/res/values-sw720dp-land/dimens.xml
diff --git a/ListInstalledApps/res/values-v11/styles.xml b/android-share-on-twitter-example/res/values-v11/styles.xml
old mode 100644
new mode 100755
similarity index 100%
rename from ListInstalledApps/res/values-v11/styles.xml
rename to android-share-on-twitter-example/res/values-v11/styles.xml
diff --git a/ListInstalledApps/res/values-v14/styles.xml b/android-share-on-twitter-example/res/values-v14/styles.xml
old mode 100644
new mode 100755
similarity index 100%
rename from ListInstalledApps/res/values-v14/styles.xml
rename to android-share-on-twitter-example/res/values-v14/styles.xml
diff --git a/ListAllFiles/res/values/dimens.xml b/android-share-on-twitter-example/res/values/dimens.xml
old mode 100644
new mode 100755
similarity index 100%
rename from ListAllFiles/res/values/dimens.xml
rename to android-share-on-twitter-example/res/values/dimens.xml
diff --git a/android-share-on-twitter-example/res/values/strings.xml b/android-share-on-twitter-example/res/values/strings.xml
new file mode 100755
index 0000000..5f48ebf
--- /dev/null
+++ b/android-share-on-twitter-example/res/values/strings.xml
@@ -0,0 +1,19 @@
+
+
+
+
+ TwitterShare
+ Settings
+ Hello,
+ Login to twiter
+ Enter share message
+ Login to Twitter
+ Share
+
+
+ http://javatechig.android.app
+ vM5RNi5CCodJnL7e5BOA
+ FQNS0eBbM8J5DDjDglLCwOvAUUesYhN5uFxdxjKLgk
+ oauth_verifier
+
+
\ No newline at end of file
diff --git a/ListInstalledApps/res/values/styles.xml b/android-share-on-twitter-example/res/values/styles.xml
old mode 100644
new mode 100755
similarity index 100%
rename from ListInstalledApps/res/values/styles.xml
rename to android-share-on-twitter-example/res/values/styles.xml
diff --git a/android-share-on-twitter-example/src/com/example/twittershare/MainActivity.java b/android-share-on-twitter-example/src/com/example/twittershare/MainActivity.java
new file mode 100755
index 0000000..17713d2
--- /dev/null
+++ b/android-share-on-twitter-example/src/com/example/twittershare/MainActivity.java
@@ -0,0 +1,314 @@
+package com.example.twittershare;
+
+import java.io.InputStream;
+
+import twitter4j.StatusUpdate;
+import twitter4j.Twitter;
+import twitter4j.TwitterException;
+import twitter4j.TwitterFactory;
+import twitter4j.User;
+import twitter4j.auth.AccessToken;
+import twitter4j.auth.RequestToken;
+import twitter4j.conf.Configuration;
+import twitter4j.conf.ConfigurationBuilder;
+import android.annotation.SuppressLint;
+import android.app.Activity;
+import android.app.ProgressDialog;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.content.SharedPreferences.Editor;
+import android.net.Uri;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.os.StrictMode;
+import android.text.TextUtils;
+import android.util.Log;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.EditText;
+import android.widget.LinearLayout;
+import android.widget.RelativeLayout;
+import android.widget.TextView;
+import android.widget.Toast;
+
+public class MainActivity extends Activity implements OnClickListener {
+
+ /* Shared preference keys */
+ private static final String PREF_NAME = "sample_twitter_pref";
+ private static final String PREF_KEY_OAUTH_TOKEN = "oauth_token";
+ private static final String PREF_KEY_OAUTH_SECRET = "oauth_token_secret";
+ private static final String PREF_KEY_TWITTER_LOGIN = "is_twitter_loggedin";
+ private static final String PREF_USER_NAME = "twitter_user_name";
+
+ /* Any number for uniquely distinguish your request */
+ public static final int WEBVIEW_REQUEST_CODE = 100;
+
+ private ProgressDialog pDialog;
+
+ private static Twitter twitter;
+ private static RequestToken requestToken;
+
+ private static SharedPreferences mSharedPreferences;
+
+ private EditText mShareEditText;
+ private TextView userName;
+ private View loginLayout;
+ private View shareLayout;
+
+ private String consumerKey = null;
+ private String consumerSecret = null;
+ private String callbackUrl = null;
+ private String oAuthVerifier = null;
+
+ @SuppressLint("NewApi")
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ /* initializing twitter parameters from string.xml */
+ initTwitterConfigs();
+
+ /* Enabling strict mode */
+ StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
+ StrictMode.setThreadPolicy(policy);
+
+ /* Setting activity layout file */
+ setContentView(R.layout.activity_main);
+
+ loginLayout = (RelativeLayout) findViewById(R.id.login_layout);
+ shareLayout = (LinearLayout) findViewById(R.id.share_layout);
+ mShareEditText = (EditText) findViewById(R.id.share_text);
+ userName = (TextView) findViewById(R.id.user_name);
+
+ /* register button click listeners */
+ findViewById(R.id.btn_login).setOnClickListener(this);
+ findViewById(R.id.btn_share).setOnClickListener(this);
+
+ /* Check if required twitter keys are set */
+ if (TextUtils.isEmpty(consumerKey) || TextUtils.isEmpty(consumerSecret)) {
+ Toast.makeText(this, "Twitter key and secret not configured",
+ Toast.LENGTH_SHORT).show();
+ return;
+ }
+
+ /* Initialize application preferences */
+ mSharedPreferences = getSharedPreferences(PREF_NAME, 0);
+
+ boolean isLoggedIn = mSharedPreferences.getBoolean(PREF_KEY_TWITTER_LOGIN, false);
+
+ /* if already logged in, then hide login layout and show share layout */
+ if (isLoggedIn) {
+ loginLayout.setVisibility(View.GONE);
+ shareLayout.setVisibility(View.VISIBLE);
+
+ String username = mSharedPreferences.getString(PREF_USER_NAME, "");
+ userName.setText(getResources ().getString(R.string.hello)
+ + username);
+
+ } else {
+ loginLayout.setVisibility(View.VISIBLE);
+ shareLayout.setVisibility(View.GONE);
+
+ Uri uri = getIntent().getData();
+
+ if (uri != null && uri.toString().startsWith(callbackUrl)) {
+
+ String verifier = uri.getQueryParameter(oAuthVerifier);
+
+ try {
+
+ /* Getting oAuth authentication token */
+ AccessToken accessToken = twitter.getOAuthAccessToken(requestToken, verifier);
+
+ /* Getting user id form access token */
+ long userID = accessToken.getUserId();
+ final User user = twitter.showUser(userID);
+ final String username = user.getName();
+
+ /* save updated token */
+ saveTwitterInfo(accessToken);
+
+ loginLayout.setVisibility(View.GONE);
+ shareLayout.setVisibility(View.VISIBLE);
+ userName.setText(getString(R.string.hello) + username);
+
+ } catch (Exception e) {
+ Log.e("Failed to login Twitter!!", e.getMessage());
+ }
+ }
+
+ }
+ }
+
+
+ /**
+ * Saving user information, after user is authenticated for the first time.
+ * You don't need to show user to login, until user has a valid access toen
+ */
+ private void saveTwitterInfo(AccessToken accessToken) {
+
+ long userID = accessToken.getUserId();
+
+ User user;
+ try {
+ user = twitter.showUser(userID);
+
+ String username = user.getName();
+
+ /* Storing oAuth tokens to shared preferences */
+ Editor e = mSharedPreferences.edit();
+ e.putString(PREF_KEY_OAUTH_TOKEN, accessToken.getToken());
+ e.putString(PREF_KEY_OAUTH_SECRET, accessToken.getTokenSecret());
+ e.putBoolean(PREF_KEY_TWITTER_LOGIN, true);
+ e.putString(PREF_USER_NAME, username);
+ e.commit();
+
+ } catch (TwitterException e1) {
+ e1.printStackTrace();
+ }
+ }
+
+ /* Reading twitter essential configuration parameters from strings.xml */
+ private void initTwitterConfigs() {
+ consumerKey = getString(R.string.twitter_consumer_key);
+ consumerSecret = getString(R.string.twitter_consumer_secret);
+ callbackUrl = getString(R.string.twitter_callback);
+ oAuthVerifier = getString(R.string.twitter_oauth_verifier);
+ }
+
+
+ private void loginToTwitter() {
+ boolean isLoggedIn = mSharedPreferences.getBoolean(PREF_KEY_TWITTER_LOGIN, false);
+
+ if (!isLoggedIn) {
+ final ConfigurationBuilder builder = new ConfigurationBuilder();
+ builder.setOAuthConsumerKey(consumerKey);
+ builder.setOAuthConsumerSecret(consumerSecret);
+
+ final Configuration configuration = builder.build();
+ final TwitterFactory factory = new TwitterFactory(configuration);
+ twitter = factory.getInstance();
+
+ try {
+ requestToken = twitter.getOAuthRequestToken(callbackUrl);
+
+ /**
+ * Loading twitter login page on webview for authorization
+ * Once authorized, results are received at onActivityResult
+ * */
+ final Intent intent = new Intent(this, WebViewActivity.class);
+ intent.putExtra(WebViewActivity.EXTRA_URL, requestToken.getAuthenticationURL());
+ startActivityForResult(intent, WEBVIEW_REQUEST_CODE);
+
+ } catch (TwitterException e) {
+ e.printStackTrace();
+ }
+ } else {
+
+ loginLayout.setVisibility(View.GONE);
+ shareLayout.setVisibility(View.VISIBLE);
+ }
+ }
+
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+
+ if (resultCode == Activity.RESULT_OK) {
+ String verifier = data.getExtras().getString(oAuthVerifier);
+ try {
+ AccessToken accessToken = twitter.getOAuthAccessToken(requestToken, verifier);
+
+ long userID = accessToken.getUserId();
+ final User user = twitter.showUser(userID);
+ String username = user.getName();
+
+ saveTwitterInfo(accessToken);
+
+ loginLayout.setVisibility(View.GONE);
+ shareLayout.setVisibility(View.VISIBLE);
+ userName.setText(MainActivity.this.getResources().getString(
+ R.string.hello) + username);
+
+ } catch (Exception e) {
+ Log.e("Twitter Login Failed", e.getMessage());
+ }
+ }
+
+ super.onActivityResult(requestCode, resultCode, data);
+ }
+
+ @Override
+ public void onClick(View v) {
+ switch (v.getId()) {
+ case R.id.btn_login:
+ loginToTwitter();
+ break;
+ case R.id.btn_share:
+ final String status = mShareEditText.getText().toString();
+
+ if (status.trim().length() > 0) {
+ new updateTwitterStatus().execute(status);
+ } else {
+ Toast.makeText(this, "Message is empty!!", Toast.LENGTH_SHORT).show();
+ }
+ break;
+ }
+ }
+
+ class updateTwitterStatus extends AsyncTask {
+ @Override
+ protected void onPreExecute() {
+ super.onPreExecute();
+
+ pDialog = new ProgressDialog(MainActivity.this);
+ pDialog.setMessage("Posting to twitter...");
+ pDialog.setIndeterminate(false);
+ pDialog.setCancelable(false);
+ pDialog.show();
+ }
+
+ protected Void doInBackground(String... args) {
+
+ String status = args[0];
+ try {
+ ConfigurationBuilder builder = new ConfigurationBuilder();
+ builder.setOAuthConsumerKey(consumerKey);
+ builder.setOAuthConsumerSecret(consumerSecret);
+
+ // Access Token
+ String access_token = mSharedPreferences.getString(PREF_KEY_OAUTH_TOKEN, "");
+ // Access Token Secret
+ String access_token_secret = mSharedPreferences.getString(PREF_KEY_OAUTH_SECRET, "");
+
+ AccessToken accessToken = new AccessToken(access_token, access_token_secret);
+ Twitter twitter = new TwitterFactory(builder.build()).getInstance(accessToken);
+
+ // Update status
+ StatusUpdate statusUpdate = new StatusUpdate(status);
+ InputStream is = getResources().openRawResource(R.drawable.lakeside_view);
+ statusUpdate.setMedia("test.jpg", is);
+
+ twitter4j.Status response = twitter.updateStatus(statusUpdate);
+
+ Log.d("Status", response.getText());
+
+ } catch (TwitterException e) {
+ Log.d("Failed to post!", e.getMessage());
+ }
+ return null;
+ }
+
+ @Override
+ protected void onPostExecute(Void result) {
+
+ /* Dismiss the progress dialog after sharing */
+ pDialog.dismiss();
+
+ Toast.makeText(MainActivity.this, "Posted to Twitter!", Toast.LENGTH_SHORT).show();
+
+ // Clearing EditText field
+ mShareEditText.setText("");
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/android-share-on-twitter-example/src/com/example/twittershare/WebViewActivity.java b/android-share-on-twitter-example/src/com/example/twittershare/WebViewActivity.java
new file mode 100755
index 0000000..a3627bb
--- /dev/null
+++ b/android-share-on-twitter-example/src/com/example/twittershare/WebViewActivity.java
@@ -0,0 +1,59 @@
+package com.example.twittershare;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.net.Uri;
+import android.os.Bundle;
+import android.util.Log;
+import android.webkit.WebView;
+import android.webkit.WebViewClient;
+
+public class WebViewActivity extends Activity {
+
+ private WebView webView;
+
+ public static String EXTRA_URL = "extra_url";
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ setContentView(R.layout.activity_webview);
+
+ setTitle("Login");
+
+ final String url = this.getIntent().getStringExtra(EXTRA_URL);
+ if (null == url) {
+ Log.e("Twitter", "URL cannot be null");
+ finish();
+ }
+
+ webView = (WebView) findViewById(R.id.webView);
+ webView.setWebViewClient(new MyWebViewClient());
+ webView.loadUrl(url);
+ }
+
+
+ class MyWebViewClient extends WebViewClient {
+
+ @Override
+ public boolean shouldOverrideUrlLoading(WebView view, String url) {
+
+ if (url.contains(getResources().getString(R.string.twitter_callback))) {
+ Uri uri = Uri.parse(url);
+
+ /* Sending results back */
+ String verifier = uri.getQueryParameter(getString(R.string.twitter_oauth_verifier));
+ Intent resultIntent = new Intent();
+ resultIntent.putExtra(getString(R.string.twitter_oauth_verifier), verifier);
+ setResult(RESULT_OK, resultIntent);
+
+ /* closing webview */
+ finish();
+ return true;
+ }
+ return false;
+ }
+ }
+
+}
diff --git a/android-speech-to-text/SpeechtoText.iml b/android-speech-to-text/SpeechtoText.iml
new file mode 100644
index 0000000..205a494
--- /dev/null
+++ b/android-speech-to-text/SpeechtoText.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-speech-to-text/app/.gitignore b/android-speech-to-text/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/android-speech-to-text/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/android-speech-to-text/app/app.iml b/android-speech-to-text/app/app.iml
new file mode 100644
index 0000000..654e371
--- /dev/null
+++ b/android-speech-to-text/app/app.iml
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ generateDebugSources
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-speech-to-text/app/build.gradle b/android-speech-to-text/app/build.gradle
new file mode 100644
index 0000000..014cf5c
--- /dev/null
+++ b/android-speech-to-text/app/build.gradle
@@ -0,0 +1,29 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 25
+ buildToolsVersion "25.0.0"
+ defaultConfig {
+ applicationId "com.stacktips.speechtotext"
+ minSdkVersion 15
+ targetSdkVersion 25
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ compile 'com.android.support:appcompat-v7:25.1.0'
+ testCompile 'junit:junit:4.12'
+}
diff --git a/android-speech-to-text/app/proguard-rules.pro b/android-speech-to-text/app/proguard-rules.pro
new file mode 100644
index 0000000..33f72cc
--- /dev/null
+++ b/android-speech-to-text/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/npanigrahy/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/android-speech-to-text/app/src/androidTest/java/com/stacktips/speechtotext/ExampleInstrumentedTest.java b/android-speech-to-text/app/src/androidTest/java/com/stacktips/speechtotext/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..8d1e39d
--- /dev/null
+++ b/android-speech-to-text/app/src/androidTest/java/com/stacktips/speechtotext/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.stacktips.speechtotext;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumentation test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.stacktips.speechtotext", appContext.getPackageName());
+ }
+}
diff --git a/android-speech-to-text/app/src/main/AndroidManifest.xml b/android-speech-to-text/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..67e70df
--- /dev/null
+++ b/android-speech-to-text/app/src/main/AndroidManifest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-speech-to-text/app/src/main/java/com/stacktips/speechtotext/MainActivity.java b/android-speech-to-text/app/src/main/java/com/stacktips/speechtotext/MainActivity.java
new file mode 100644
index 0000000..5cf847c
--- /dev/null
+++ b/android-speech-to-text/app/src/main/java/com/stacktips/speechtotext/MainActivity.java
@@ -0,0 +1,64 @@
+package com.stacktips.speechtotext;
+
+import android.content.ActivityNotFoundException;
+import android.content.Intent;
+import android.os.Bundle;
+import android.speech.RecognizerIntent;
+import android.support.v7.app.AppCompatActivity;
+import android.view.View;
+import android.widget.ImageButton;
+import android.widget.TextView;
+
+import java.util.ArrayList;
+import java.util.Locale;
+
+public class MainActivity extends AppCompatActivity {
+
+ private static final int REQ_CODE_SPEECH_INPUT = 100;
+ private TextView mVoiceInputTv;
+ private ImageButton mSpeakBtn;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ mVoiceInputTv = (TextView) findViewById(R.id.voiceInput);
+ mSpeakBtn = (ImageButton) findViewById(R.id.btnSpeak);
+ mSpeakBtn.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ startVoiceInput();
+ }
+ });
+ }
+
+ private void startVoiceInput() {
+ Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
+ intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
+ intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());
+ intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Hello, How can I help you?");
+ try {
+ startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);
+ } catch (ActivityNotFoundException a) {
+
+ }
+ }
+
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+ super.onActivityResult(requestCode, resultCode, data);
+
+ switch (requestCode) {
+ case REQ_CODE_SPEECH_INPUT: {
+ if (resultCode == RESULT_OK && null != data) {
+ ArrayList result = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
+ mVoiceInputTv.setText(result.get(0));
+ }
+ break;
+ }
+
+ }
+ }
+}
diff --git a/android-speech-to-text/app/src/main/res/layout/activity_main.xml b/android-speech-to-text/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..5243f9c
--- /dev/null
+++ b/android-speech-to-text/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-speech-to-text/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android-speech-to-text/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/android-speech-to-text/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android-speech-to-text/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android-speech-to-text/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/android-speech-to-text/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android-speech-to-text/app/src/main/res/mipmap-mdpi/ic_microphone_2.png b/android-speech-to-text/app/src/main/res/mipmap-mdpi/ic_microphone_2.png
new file mode 100644
index 0000000..d84bb45
Binary files /dev/null and b/android-speech-to-text/app/src/main/res/mipmap-mdpi/ic_microphone_2.png differ
diff --git a/android-speech-to-text/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android-speech-to-text/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/android-speech-to-text/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android-speech-to-text/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android-speech-to-text/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/android-speech-to-text/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android-speech-to-text/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android-speech-to-text/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/android-speech-to-text/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android-speech-to-text/app/src/main/res/values-w820dp/dimens.xml b/android-speech-to-text/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/android-speech-to-text/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/android-speech-to-text/app/src/main/res/values/colors.xml b/android-speech-to-text/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..e05e6ee
--- /dev/null
+++ b/android-speech-to-text/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #ff4c4c
+ #ff0000
+ #ff4c4c
+
diff --git a/android-speech-to-text/app/src/main/res/values/dimens.xml b/android-speech-to-text/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/android-speech-to-text/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/android-speech-to-text/app/src/main/res/values/strings.xml b/android-speech-to-text/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..35548dd
--- /dev/null
+++ b/android-speech-to-text/app/src/main/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+ Speech to Text
+ Tap on mic to start
+
diff --git a/android-speech-to-text/app/src/main/res/values/styles.xml b/android-speech-to-text/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/android-speech-to-text/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/android-speech-to-text/app/src/test/java/com/stacktips/speechtotext/ExampleUnitTest.java b/android-speech-to-text/app/src/test/java/com/stacktips/speechtotext/ExampleUnitTest.java
new file mode 100644
index 0000000..3ac3ff8
--- /dev/null
+++ b/android-speech-to-text/app/src/test/java/com/stacktips/speechtotext/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.stacktips.speechtotext;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/android-speech-to-text/build.gradle b/android-speech-to-text/build.gradle
new file mode 100644
index 0000000..74b2ab0
--- /dev/null
+++ b/android-speech-to-text/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.2.3'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android-speech-to-text/gradle.properties b/android-speech-to-text/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/android-speech-to-text/gradle.properties
@@ -0,0 +1,17 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/android-speech-to-text/gradle/wrapper/gradle-wrapper.jar b/android-speech-to-text/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..13372ae
Binary files /dev/null and b/android-speech-to-text/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/android-speech-to-text/gradle/wrapper/gradle-wrapper.properties b/android-speech-to-text/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..04e285f
--- /dev/null
+++ b/android-speech-to-text/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Dec 28 10:00:20 PST 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
diff --git a/android-speech-to-text/gradlew b/android-speech-to-text/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/android-speech-to-text/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/android-speech-to-text/gradlew.bat b/android-speech-to-text/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/android-speech-to-text/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/android-speech-to-text/settings.gradle b/android-speech-to-text/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/android-speech-to-text/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/android-texttospeech/MyApplication.iml b/android-texttospeech/MyApplication.iml
new file mode 100644
index 0000000..2a02201
--- /dev/null
+++ b/android-texttospeech/MyApplication.iml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-texttospeech/README.md b/android-texttospeech/README.md
new file mode 100644
index 0000000..f22e954
--- /dev/null
+++ b/android-texttospeech/README.md
@@ -0,0 +1,2 @@
+# Android-TextToSpeech-Example
+Android TextToSpeech Example
diff --git a/android-texttospeech/app/.gitignore b/android-texttospeech/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/android-texttospeech/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/android-texttospeech/app/app.iml b/android-texttospeech/app/app.iml
new file mode 100644
index 0000000..c6c55c4
--- /dev/null
+++ b/android-texttospeech/app/app.iml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-texttospeech/app/build.gradle b/android-texttospeech/app/build.gradle
new file mode 100644
index 0000000..5c762c3
--- /dev/null
+++ b/android-texttospeech/app/build.gradle
@@ -0,0 +1,25 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 21
+ buildToolsVersion "21.1.2"
+
+ defaultConfig {
+ applicationId "com.example.myapplication"
+ minSdkVersion 15
+ targetSdkVersion 21
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile "com.android.support:appcompat-v7:21.0.+"
+}
diff --git a/android-texttospeech/app/proguard-rules.pro b/android-texttospeech/app/proguard-rules.pro
new file mode 100644
index 0000000..a734a8c
--- /dev/null
+++ b/android-texttospeech/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/nilanchalpanigrahy/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/android-texttospeech/app/src/androidTest/java/com/example/myapplication/ApplicationTest.java b/android-texttospeech/app/src/androidTest/java/com/example/myapplication/ApplicationTest.java
new file mode 100644
index 0000000..5c3d5cb
--- /dev/null
+++ b/android-texttospeech/app/src/androidTest/java/com/example/myapplication/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.example.myapplication;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/android-texttospeech/app/src/main/AndroidManifest.xml b/android-texttospeech/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..5ecdb47
--- /dev/null
+++ b/android-texttospeech/app/src/main/AndroidManifest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android-texttospeech/app/src/main/java/com/example/myapplication/MainActivity.java b/android-texttospeech/app/src/main/java/com/example/myapplication/MainActivity.java
new file mode 100644
index 0000000..f86c625
--- /dev/null
+++ b/android-texttospeech/app/src/main/java/com/example/myapplication/MainActivity.java
@@ -0,0 +1,44 @@
+package com.example.myapplication;
+
+import android.os.Bundle;
+import android.support.v7.app.ActionBarActivity;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+
+public class MainActivity extends ActionBarActivity {
+
+ private Button speakNowButton;
+ private EditText editText;
+ private TTSManager ttsManager = null;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ /* Initialize TTSManager */
+ ttsManager = new TTSManager();
+ ttsManager.init(this);
+
+ editText = (EditText) findViewById(R.id.input_text);
+ speakNowButton = (Button) findViewById(R.id.speak_now);
+ speakNowButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View arg0) {
+ String text = editText.getText().toString();
+ ttsManager.initQueue(text);
+ }
+ });
+ }
+
+ /**
+ * Releases the resources used by the TextToSpeech engine.
+ */
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ ttsManager.shutDown();
+ }
+
+}
\ No newline at end of file
diff --git a/android-texttospeech/app/src/main/java/com/example/myapplication/TTSManager.java b/android-texttospeech/app/src/main/java/com/example/myapplication/TTSManager.java
new file mode 100644
index 0000000..d0da298
--- /dev/null
+++ b/android-texttospeech/app/src/main/java/com/example/myapplication/TTSManager.java
@@ -0,0 +1,64 @@
+package com.example.myapplication;
+
+import android.content.Context;
+import android.speech.tts.TextToSpeech;
+import android.util.Log;
+import java.util.Locale;
+
+/**
+ * Created by Nilanchala
+ * http://www.javatechig.com
+ */
+public class TTSManager {
+
+ private TextToSpeech mTts = null;
+ private boolean isLoaded = false;
+
+ public void init(Context context) {
+ try {
+ mTts = new TextToSpeech(context, onInitListener);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ private TextToSpeech.OnInitListener onInitListener = new TextToSpeech.OnInitListener() {
+ @Override
+ public void onInit(int status) {
+
+ if (status == TextToSpeech.SUCCESS) {
+ if (status == TextToSpeech.SUCCESS) {
+ int result = mTts.setLanguage(Locale.US);
+
+ isLoaded = true;
+
+ if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) {
+ Log.e("error", "This Language is not supported");
+ }
+ } else {
+ Log.e("error", "Initialization Failed!");
+ }
+ }
+ }
+ };
+
+
+ public void shutDown() {
+ mTts.shutdown();
+ }
+
+ public void addQueue(String text) {
+ if (isLoaded)
+ mTts.speak(text, TextToSpeech.QUEUE_ADD, null);
+ else
+ Log.e("error", "TTS Not Initialized");
+ }
+
+ public void initQueue(String text) {
+
+ if (isLoaded)
+ mTts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
+ else
+ Log.e("error", "TTS Not Initialized");
+ }
+}
diff --git a/android-texttospeech/app/src/main/res/drawable-hdpi/ic_launcher.png b/android-texttospeech/app/src/main/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
Binary files /dev/null and b/android-texttospeech/app/src/main/res/drawable-hdpi/ic_launcher.png differ
diff --git a/android-texttospeech/app/src/main/res/drawable-mdpi/ic_launcher.png b/android-texttospeech/app/src/main/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
Binary files /dev/null and b/android-texttospeech/app/src/main/res/drawable-mdpi/ic_launcher.png differ
diff --git a/android-texttospeech/app/src/main/res/drawable-xhdpi/ic_launcher.png b/android-texttospeech/app/src/main/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
Binary files /dev/null and b/android-texttospeech/app/src/main/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/android-texttospeech/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/android-texttospeech/app/src/main/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4df1894
Binary files /dev/null and b/android-texttospeech/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/android-texttospeech/app/src/main/res/layout/activity_main.xml b/android-texttospeech/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..06a4ade
--- /dev/null
+++ b/android-texttospeech/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-texttospeech/app/src/main/res/menu/menu_main.xml b/android-texttospeech/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 0000000..b1cb908
--- /dev/null
+++ b/android-texttospeech/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,6 @@
+
diff --git a/android-texttospeech/app/src/main/res/values-w820dp/dimens.xml b/android-texttospeech/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/android-texttospeech/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/android-texttospeech/app/src/main/res/values/colors.xml b/android-texttospeech/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..7ca71f9
--- /dev/null
+++ b/android-texttospeech/app/src/main/res/values/colors.xml
@@ -0,0 +1,5 @@
+
+
+ #F44336
+
+
\ No newline at end of file
diff --git a/android-texttospeech/app/src/main/res/values/dimens.xml b/android-texttospeech/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..02d4637
--- /dev/null
+++ b/android-texttospeech/app/src/main/res/values/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 16dp
+ 16dp
+
+
diff --git a/android-texttospeech/app/src/main/res/values/strings.xml b/android-texttospeech/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..29db334
--- /dev/null
+++ b/android-texttospeech/app/src/main/res/values/strings.xml
@@ -0,0 +1,9 @@
+
+
+
+ My Application
+ Hello world!
+ Settings
+
+
+
diff --git a/android-texttospeech/app/src/main/res/values/styles.xml b/android-texttospeech/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..48ba683
--- /dev/null
+++ b/android-texttospeech/app/src/main/res/values/styles.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
diff --git a/android-texttospeech/build.gradle b/android-texttospeech/build.gradle
new file mode 100644
index 0000000..6356aab
--- /dev/null
+++ b/android-texttospeech/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.0.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/android-texttospeech/gradle.properties b/android-texttospeech/gradle.properties
new file mode 100644
index 0000000..1d3591c
--- /dev/null
+++ b/android-texttospeech/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/android-texttospeech/gradle/wrapper/gradle-wrapper.jar b/android-texttospeech/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/android-texttospeech/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/android-texttospeech/gradle/wrapper/gradle-wrapper.properties b/android-texttospeech/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..0c71e76
--- /dev/null
+++ b/android-texttospeech/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
diff --git a/android-texttospeech/gradlew b/android-texttospeech/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/android-texttospeech/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/android-texttospeech/gradlew.bat b/android-texttospeech/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/android-texttospeech/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/android-texttospeech/settings.gradle b/android-texttospeech/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/android-texttospeech/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/TODO Android App/AndroidManifest.xml b/android-todo-app/AndroidManifest.xml
similarity index 100%
rename from TODO Android App/AndroidManifest.xml
rename to android-todo-app/AndroidManifest.xml
diff --git a/TODO Android App/libs/android-support-v4.jar b/android-todo-app/libs/android-support-v4.jar
similarity index 100%
rename from TODO Android App/libs/android-support-v4.jar
rename to android-todo-app/libs/android-support-v4.jar
diff --git a/TODO Android App/libs/jxl.jar b/android-todo-app/libs/jxl.jar
similarity index 100%
rename from TODO Android App/libs/jxl.jar
rename to android-todo-app/libs/jxl.jar
diff --git a/TODO Android App/lint.xml b/android-todo-app/lint.xml
similarity index 100%
rename from TODO Android App/lint.xml
rename to android-todo-app/lint.xml
diff --git a/Feed Reader/proguard-project.txt b/android-todo-app/proguard-project.txt
similarity index 100%
rename from Feed Reader/proguard-project.txt
rename to android-todo-app/proguard-project.txt
diff --git a/TODO Android App/project.properties b/android-todo-app/project.properties
similarity index 100%
rename from TODO Android App/project.properties
rename to android-todo-app/project.properties
diff --git a/TODO Android App/res/drawable-hdpi/ic_action_import_export.png b/android-todo-app/res/drawable-hdpi/ic_action_import_export.png
similarity index 100%
rename from TODO Android App/res/drawable-hdpi/ic_action_import_export.png
rename to android-todo-app/res/drawable-hdpi/ic_action_import_export.png
diff --git a/TODO Android App/res/drawable-hdpi/ic_action_new.png b/android-todo-app/res/drawable-hdpi/ic_action_new.png
similarity index 100%
rename from TODO Android App/res/drawable-hdpi/ic_action_new.png
rename to android-todo-app/res/drawable-hdpi/ic_action_new.png
diff --git a/TODO Android App/res/drawable-hdpi/ic_launcher.png b/android-todo-app/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from TODO Android App/res/drawable-hdpi/ic_launcher.png
rename to android-todo-app/res/drawable-hdpi/ic_launcher.png
diff --git a/TODO Android App/res/drawable-mdpi/ic_action_import_export.png b/android-todo-app/res/drawable-mdpi/ic_action_import_export.png
similarity index 100%
rename from TODO Android App/res/drawable-mdpi/ic_action_import_export.png
rename to android-todo-app/res/drawable-mdpi/ic_action_import_export.png
diff --git a/TODO Android App/res/drawable-mdpi/ic_action_new.png b/android-todo-app/res/drawable-mdpi/ic_action_new.png
similarity index 100%
rename from TODO Android App/res/drawable-mdpi/ic_action_new.png
rename to android-todo-app/res/drawable-mdpi/ic_action_new.png
diff --git a/TODO Android App/res/drawable-mdpi/ic_launcher.png b/android-todo-app/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from TODO Android App/res/drawable-mdpi/ic_launcher.png
rename to android-todo-app/res/drawable-mdpi/ic_launcher.png
diff --git a/TODO Android App/res/drawable-xhdpi/ic_action_import_export.png b/android-todo-app/res/drawable-xhdpi/ic_action_import_export.png
similarity index 100%
rename from TODO Android App/res/drawable-xhdpi/ic_action_import_export.png
rename to android-todo-app/res/drawable-xhdpi/ic_action_import_export.png
diff --git a/TODO Android App/res/drawable-xhdpi/ic_action_new.png b/android-todo-app/res/drawable-xhdpi/ic_action_new.png
similarity index 100%
rename from TODO Android App/res/drawable-xhdpi/ic_action_new.png
rename to android-todo-app/res/drawable-xhdpi/ic_action_new.png
diff --git a/TODO Android App/res/drawable-xhdpi/ic_launcher.png b/android-todo-app/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from TODO Android App/res/drawable-xhdpi/ic_launcher.png
rename to android-todo-app/res/drawable-xhdpi/ic_launcher.png
diff --git a/TODO Android App/res/drawable-xxhdpi/ic_action_import_export.png b/android-todo-app/res/drawable-xxhdpi/ic_action_import_export.png
similarity index 100%
rename from TODO Android App/res/drawable-xxhdpi/ic_action_import_export.png
rename to android-todo-app/res/drawable-xxhdpi/ic_action_import_export.png
diff --git a/TODO Android App/res/drawable-xxhdpi/ic_action_new.png b/android-todo-app/res/drawable-xxhdpi/ic_action_new.png
similarity index 100%
rename from TODO Android App/res/drawable-xxhdpi/ic_action_new.png
rename to android-todo-app/res/drawable-xxhdpi/ic_action_new.png
diff --git a/TODO Android App/res/drawable-xxhdpi/ic_launcher.png b/android-todo-app/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from TODO Android App/res/drawable-xxhdpi/ic_launcher.png
rename to android-todo-app/res/drawable-xxhdpi/ic_launcher.png
diff --git a/TODO Android App/res/drawable-xxxhdpi/ic_launcher.png b/android-todo-app/res/drawable-xxxhdpi/ic_launcher.png
similarity index 100%
rename from TODO Android App/res/drawable-xxxhdpi/ic_launcher.png
rename to android-todo-app/res/drawable-xxxhdpi/ic_launcher.png
diff --git a/TODO Android App/res/layout/activity_add_record.xml b/android-todo-app/res/layout/activity_add_record.xml
similarity index 100%
rename from TODO Android App/res/layout/activity_add_record.xml
rename to android-todo-app/res/layout/activity_add_record.xml
diff --git a/TODO Android App/res/layout/activity_main.xml b/android-todo-app/res/layout/activity_main.xml
similarity index 100%
rename from TODO Android App/res/layout/activity_main.xml
rename to android-todo-app/res/layout/activity_main.xml
diff --git a/TODO Android App/res/layout/activity_modify_record.xml b/android-todo-app/res/layout/activity_modify_record.xml
similarity index 100%
rename from TODO Android App/res/layout/activity_modify_record.xml
rename to android-todo-app/res/layout/activity_modify_record.xml
diff --git a/TODO Android App/res/layout/activity_view_record.xml b/android-todo-app/res/layout/activity_view_record.xml
similarity index 100%
rename from TODO Android App/res/layout/activity_view_record.xml
rename to android-todo-app/res/layout/activity_view_record.xml
diff --git a/TODO Android App/res/layout/fragment_emp_list.xml b/android-todo-app/res/layout/fragment_emp_list.xml
similarity index 100%
rename from TODO Android App/res/layout/fragment_emp_list.xml
rename to android-todo-app/res/layout/fragment_emp_list.xml
diff --git a/TODO Android App/res/menu/main.xml b/android-todo-app/res/menu/main.xml
similarity index 100%
rename from TODO Android App/res/menu/main.xml
rename to android-todo-app/res/menu/main.xml
diff --git a/TODO Android App/res/values-v11/styles.xml b/android-todo-app/res/values-v11/styles.xml
similarity index 100%
rename from TODO Android App/res/values-v11/styles.xml
rename to android-todo-app/res/values-v11/styles.xml
diff --git a/TODO Android App/res/values-v14/styles.xml b/android-todo-app/res/values-v14/styles.xml
similarity index 100%
rename from TODO Android App/res/values-v14/styles.xml
rename to android-todo-app/res/values-v14/styles.xml
diff --git a/android-todo-app/res/values-w820dp/dimens.xml b/android-todo-app/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..f3e7020
--- /dev/null
+++ b/android-todo-app/res/values-w820dp/dimens.xml
@@ -0,0 +1,10 @@
+
+
+
+ 64dp
+
+
diff --git a/TODO Android App/res/values/dimens.xml b/android-todo-app/res/values/dimens.xml
similarity index 100%
rename from TODO Android App/res/values/dimens.xml
rename to android-todo-app/res/values/dimens.xml
diff --git a/TODO Android App/res/values/strings.xml b/android-todo-app/res/values/strings.xml
similarity index 100%
rename from TODO Android App/res/values/strings.xml
rename to android-todo-app/res/values/strings.xml
diff --git a/TODO Android App/res/values/styles.xml b/android-todo-app/res/values/styles.xml
similarity index 100%
rename from TODO Android App/res/values/styles.xml
rename to android-todo-app/res/values/styles.xml
diff --git a/TODO Android App/src/com/javatechig/todo/AddTodoActivity.java b/android-todo-app/src/com/javatechig/todo/AddTodoActivity.java
similarity index 100%
rename from TODO Android App/src/com/javatechig/todo/AddTodoActivity.java
rename to android-todo-app/src/com/javatechig/todo/AddTodoActivity.java
diff --git a/TODO Android App/src/com/javatechig/todo/DBManager.java b/android-todo-app/src/com/javatechig/todo/DBManager.java
similarity index 100%
rename from TODO Android App/src/com/javatechig/todo/DBManager.java
rename to android-todo-app/src/com/javatechig/todo/DBManager.java
diff --git a/TODO Android App/src/com/javatechig/todo/DatabaseHelper.java b/android-todo-app/src/com/javatechig/todo/DatabaseHelper.java
similarity index 100%
rename from TODO Android App/src/com/javatechig/todo/DatabaseHelper.java
rename to android-todo-app/src/com/javatechig/todo/DatabaseHelper.java
diff --git a/TODO Android App/src/com/javatechig/todo/ModifyTodoActivity.java b/android-todo-app/src/com/javatechig/todo/ModifyTodoActivity.java
similarity index 100%
rename from TODO Android App/src/com/javatechig/todo/ModifyTodoActivity.java
rename to android-todo-app/src/com/javatechig/todo/ModifyTodoActivity.java
diff --git a/TODO Android App/src/com/javatechig/todo/TodoListActivity.java b/android-todo-app/src/com/javatechig/todo/TodoListActivity.java
similarity index 100%
rename from TODO Android App/src/com/javatechig/todo/TodoListActivity.java
rename to android-todo-app/src/com/javatechig/todo/TodoListActivity.java
diff --git a/TurnWifi/AndroidManifest.xml b/android-turn-wifi-on-off/AndroidManifest.xml
similarity index 100%
rename from TurnWifi/AndroidManifest.xml
rename to android-turn-wifi-on-off/AndroidManifest.xml
diff --git a/TurnWifi/res/drawable-hdpi/ic_launcher.png b/android-turn-wifi-on-off/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from TurnWifi/res/drawable-hdpi/ic_launcher.png
rename to android-turn-wifi-on-off/res/drawable-hdpi/ic_launcher.png
diff --git a/TurnWifi/res/drawable-hdpi/wifi.png b/android-turn-wifi-on-off/res/drawable-hdpi/wifi.png
similarity index 100%
rename from TurnWifi/res/drawable-hdpi/wifi.png
rename to android-turn-wifi-on-off/res/drawable-hdpi/wifi.png
diff --git a/TurnWifi/res/drawable-mdpi/ic_launcher.png b/android-turn-wifi-on-off/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from TurnWifi/res/drawable-mdpi/ic_launcher.png
rename to android-turn-wifi-on-off/res/drawable-mdpi/ic_launcher.png
diff --git a/TurnWifi/res/drawable-xhdpi/ic_launcher.png b/android-turn-wifi-on-off/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from TurnWifi/res/drawable-xhdpi/ic_launcher.png
rename to android-turn-wifi-on-off/res/drawable-xhdpi/ic_launcher.png
diff --git a/TurnWifi/res/drawable-xxhdpi/ic_launcher.png b/android-turn-wifi-on-off/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from TurnWifi/res/drawable-xxhdpi/ic_launcher.png
rename to android-turn-wifi-on-off/res/drawable-xxhdpi/ic_launcher.png
diff --git a/TurnWifi/res/layout/activity_main.xml b/android-turn-wifi-on-off/res/layout/activity_main.xml
similarity index 100%
rename from TurnWifi/res/layout/activity_main.xml
rename to android-turn-wifi-on-off/res/layout/activity_main.xml
diff --git a/TurnWifi/res/menu/main.xml b/android-turn-wifi-on-off/res/menu/main.xml
similarity index 100%
rename from TurnWifi/res/menu/main.xml
rename to android-turn-wifi-on-off/res/menu/main.xml
diff --git a/ListInstalledApps/res/values-sw600dp/dimens.xml b/android-turn-wifi-on-off/res/values-sw600dp/dimens.xml
similarity index 100%
rename from ListInstalledApps/res/values-sw600dp/dimens.xml
rename to android-turn-wifi-on-off/res/values-sw600dp/dimens.xml
diff --git a/ListInstalledApps/res/values-sw720dp-land/dimens.xml b/android-turn-wifi-on-off/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from ListInstalledApps/res/values-sw720dp-land/dimens.xml
rename to android-turn-wifi-on-off/res/values-sw720dp-land/dimens.xml
diff --git a/TurnWifi/res/values-v11/styles.xml b/android-turn-wifi-on-off/res/values-v11/styles.xml
similarity index 100%
rename from TurnWifi/res/values-v11/styles.xml
rename to android-turn-wifi-on-off/res/values-v11/styles.xml
diff --git a/TurnWifi/res/values-v14/styles.xml b/android-turn-wifi-on-off/res/values-v14/styles.xml
similarity index 100%
rename from TurnWifi/res/values-v14/styles.xml
rename to android-turn-wifi-on-off/res/values-v14/styles.xml
diff --git a/TurnWifi/res/values/dimens.xml b/android-turn-wifi-on-off/res/values/dimens.xml
similarity index 100%
rename from TurnWifi/res/values/dimens.xml
rename to android-turn-wifi-on-off/res/values/dimens.xml
diff --git a/TurnWifi/res/values/strings.xml b/android-turn-wifi-on-off/res/values/strings.xml
similarity index 100%
rename from TurnWifi/res/values/strings.xml
rename to android-turn-wifi-on-off/res/values/strings.xml
diff --git a/TurnWifi/res/values/styles.xml b/android-turn-wifi-on-off/res/values/styles.xml
similarity index 100%
rename from TurnWifi/res/values/styles.xml
rename to android-turn-wifi-on-off/res/values/styles.xml
diff --git a/TurnWifi/src/com/example/wifitest/MainActivity.java b/android-turn-wifi-on-off/src/com/example/wifitest/MainActivity.java
similarity index 100%
rename from TurnWifi/src/com/example/wifitest/MainActivity.java
rename to android-turn-wifi-on-off/src/com/example/wifitest/MainActivity.java
diff --git a/WidgetDemo/AndroidManifest.xml b/android-widget-demo/AndroidManifest.xml
similarity index 100%
rename from WidgetDemo/AndroidManifest.xml
rename to android-widget-demo/AndroidManifest.xml
diff --git a/WidgetDemo/libs/android-support-v4.jar b/android-widget-demo/libs/android-support-v4.jar
similarity index 100%
rename from WidgetDemo/libs/android-support-v4.jar
rename to android-widget-demo/libs/android-support-v4.jar
diff --git a/WidgetDemo/lint.xml b/android-widget-demo/lint.xml
similarity index 100%
rename from WidgetDemo/lint.xml
rename to android-widget-demo/lint.xml
diff --git a/GetRegisteredEmailAccounts/proguard-project.txt b/android-widget-demo/proguard-project.txt
similarity index 100%
rename from GetRegisteredEmailAccounts/proguard-project.txt
rename to android-widget-demo/proguard-project.txt
diff --git a/WidgetDemo/project.properties b/android-widget-demo/project.properties
similarity index 100%
rename from WidgetDemo/project.properties
rename to android-widget-demo/project.properties
diff --git a/WidgetDemo/res/drawable-hdpi/appwidget_dark_bg.9.png b/android-widget-demo/res/drawable-hdpi/appwidget_dark_bg.9.png
similarity index 100%
rename from WidgetDemo/res/drawable-hdpi/appwidget_dark_bg.9.png
rename to android-widget-demo/res/drawable-hdpi/appwidget_dark_bg.9.png
diff --git a/WidgetDemo/res/drawable-hdpi/appwidget_dark_bg_focused.9.png b/android-widget-demo/res/drawable-hdpi/appwidget_dark_bg_focused.9.png
similarity index 100%
rename from WidgetDemo/res/drawable-hdpi/appwidget_dark_bg_focused.9.png
rename to android-widget-demo/res/drawable-hdpi/appwidget_dark_bg_focused.9.png
diff --git a/WidgetDemo/res/drawable-hdpi/appwidget_dark_bg_pressed.9.png b/android-widget-demo/res/drawable-hdpi/appwidget_dark_bg_pressed.9.png
similarity index 100%
rename from WidgetDemo/res/drawable-hdpi/appwidget_dark_bg_pressed.9.png
rename to android-widget-demo/res/drawable-hdpi/appwidget_dark_bg_pressed.9.png
diff --git a/android-widget-demo/res/drawable-hdpi/ic_launcher.png b/android-widget-demo/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
Binary files /dev/null and b/android-widget-demo/res/drawable-hdpi/ic_launcher.png differ
diff --git a/WidgetDemo/res/drawable-mdpi/appwidget_dark_bg.9.png b/android-widget-demo/res/drawable-mdpi/appwidget_dark_bg.9.png
similarity index 100%
rename from WidgetDemo/res/drawable-mdpi/appwidget_dark_bg.9.png
rename to android-widget-demo/res/drawable-mdpi/appwidget_dark_bg.9.png
diff --git a/WidgetDemo/res/drawable-mdpi/appwidget_dark_bg_focused.9.png b/android-widget-demo/res/drawable-mdpi/appwidget_dark_bg_focused.9.png
similarity index 100%
rename from WidgetDemo/res/drawable-mdpi/appwidget_dark_bg_focused.9.png
rename to android-widget-demo/res/drawable-mdpi/appwidget_dark_bg_focused.9.png
diff --git a/WidgetDemo/res/drawable-mdpi/appwidget_dark_bg_pressed.9.png b/android-widget-demo/res/drawable-mdpi/appwidget_dark_bg_pressed.9.png
similarity index 100%
rename from WidgetDemo/res/drawable-mdpi/appwidget_dark_bg_pressed.9.png
rename to android-widget-demo/res/drawable-mdpi/appwidget_dark_bg_pressed.9.png
diff --git a/WidgetDemo/res/drawable/ic_sync_button.png b/android-widget-demo/res/drawable/ic_sync_button.png
similarity index 100%
rename from WidgetDemo/res/drawable/ic_sync_button.png
rename to android-widget-demo/res/drawable/ic_sync_button.png
diff --git a/WidgetDemo/res/drawable/widget.png b/android-widget-demo/res/drawable/widget.png
similarity index 100%
rename from WidgetDemo/res/drawable/widget.png
rename to android-widget-demo/res/drawable/widget.png
diff --git a/WidgetDemo/res/layout/widget_layout.xml b/android-widget-demo/res/layout/widget_layout.xml
similarity index 100%
rename from WidgetDemo/res/layout/widget_layout.xml
rename to android-widget-demo/res/layout/widget_layout.xml
diff --git a/WidgetDemo/res/values/strings.xml b/android-widget-demo/res/values/strings.xml
similarity index 100%
rename from WidgetDemo/res/values/strings.xml
rename to android-widget-demo/res/values/strings.xml
diff --git a/Feed Reader/res/values/styles.xml b/android-widget-demo/res/values/styles.xml
similarity index 100%
rename from Feed Reader/res/values/styles.xml
rename to android-widget-demo/res/values/styles.xml
diff --git a/WidgetDemo/res/xml/demo_widget_provider.xml b/android-widget-demo/res/xml/demo_widget_provider.xml
similarity index 100%
rename from WidgetDemo/res/xml/demo_widget_provider.xml
rename to android-widget-demo/res/xml/demo_widget_provider.xml
diff --git a/WidgetDemo/src/com/javatechig/widgetdemo/MyWidgetIntentReceiver.java b/android-widget-demo/src/com/javatechig/widgetdemo/MyWidgetIntentReceiver.java
similarity index 100%
rename from WidgetDemo/src/com/javatechig/widgetdemo/MyWidgetIntentReceiver.java
rename to android-widget-demo/src/com/javatechig/widgetdemo/MyWidgetIntentReceiver.java
diff --git a/WidgetDemo/src/com/javatechig/widgetdemo/MyWidgetProvider.java b/android-widget-demo/src/com/javatechig/widgetdemo/MyWidgetProvider.java
similarity index 100%
rename from WidgetDemo/src/com/javatechig/widgetdemo/MyWidgetProvider.java
rename to android-widget-demo/src/com/javatechig/widgetdemo/MyWidgetProvider.java
diff --git a/WidgetDemo/src/com/javatechig/widgetdemo/WidgetUtils.java b/android-widget-demo/src/com/javatechig/widgetdemo/WidgetUtils.java
similarity index 100%
rename from WidgetDemo/src/com/javatechig/widgetdemo/WidgetUtils.java
rename to android-widget-demo/src/com/javatechig/widgetdemo/WidgetUtils.java
diff --git a/AsyncImageLoaderListview/AndroidManifest.xml b/async-image-loader-listview/AndroidManifest.xml
similarity index 100%
rename from AsyncImageLoaderListview/AndroidManifest.xml
rename to async-image-loader-listview/AndroidManifest.xml
diff --git a/AsyncImageLoaderListview/gen/com/example/customizedlist/BuildConfig.java b/async-image-loader-listview/gen/com/example/customizedlist/BuildConfig.java
similarity index 100%
rename from AsyncImageLoaderListview/gen/com/example/customizedlist/BuildConfig.java
rename to async-image-loader-listview/gen/com/example/customizedlist/BuildConfig.java
diff --git a/AsyncImageLoaderListview/gen/com/example/customizedlist/R.java b/async-image-loader-listview/gen/com/example/customizedlist/R.java
similarity index 100%
rename from AsyncImageLoaderListview/gen/com/example/customizedlist/R.java
rename to async-image-loader-listview/gen/com/example/customizedlist/R.java
diff --git a/Feed Reader/ic_launcher-web.png b/async-image-loader-listview/ic_launcher-web.png
similarity index 100%
rename from Feed Reader/ic_launcher-web.png
rename to async-image-loader-listview/ic_launcher-web.png
diff --git a/Feed Reader/libs/android-support-v4.jar b/async-image-loader-listview/libs/android-support-v4.jar
similarity index 100%
rename from Feed Reader/libs/android-support-v4.jar
rename to async-image-loader-listview/libs/android-support-v4.jar
diff --git a/Imagedownloader/proguard-project.txt b/async-image-loader-listview/proguard-project.txt
similarity index 100%
rename from Imagedownloader/proguard-project.txt
rename to async-image-loader-listview/proguard-project.txt
diff --git a/Feed Reader/project.properties b/async-image-loader-listview/project.properties
similarity index 100%
rename from Feed Reader/project.properties
rename to async-image-loader-listview/project.properties
diff --git a/AsyncImageLoaderListview/res/drawable-hdpi/ic_launcher.png b/async-image-loader-listview/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from AsyncImageLoaderListview/res/drawable-hdpi/ic_launcher.png
rename to async-image-loader-listview/res/drawable-hdpi/ic_launcher.png
diff --git a/AsyncImageLoaderListview/res/drawable-mdpi/ic_launcher.png b/async-image-loader-listview/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from AsyncImageLoaderListview/res/drawable-mdpi/ic_launcher.png
rename to async-image-loader-listview/res/drawable-mdpi/ic_launcher.png
diff --git a/AsyncImageLoaderListview/res/drawable-xhdpi/ic_launcher.png b/async-image-loader-listview/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from AsyncImageLoaderListview/res/drawable-xhdpi/ic_launcher.png
rename to async-image-loader-listview/res/drawable-xhdpi/ic_launcher.png
diff --git a/AsyncImageLoaderListview/res/drawable-xxhdpi/ic_launcher.png b/async-image-loader-listview/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from AsyncImageLoaderListview/res/drawable-xxhdpi/ic_launcher.png
rename to async-image-loader-listview/res/drawable-xxhdpi/ic_launcher.png
diff --git a/AsyncImageLoaderListview/res/drawable/list_item_text_selector.xml b/async-image-loader-listview/res/drawable/list_item_text_selector.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/drawable/list_item_text_selector.xml
rename to async-image-loader-listview/res/drawable/list_item_text_selector.xml
diff --git a/AsyncImageLoaderListview/res/drawable/list_placeholder.png b/async-image-loader-listview/res/drawable/list_placeholder.png
similarity index 100%
rename from AsyncImageLoaderListview/res/drawable/list_placeholder.png
rename to async-image-loader-listview/res/drawable/list_placeholder.png
diff --git a/Feed Reader/res/drawable/list_selector_flatcolor.xml b/async-image-loader-listview/res/drawable/list_selector_flatcolor.xml
similarity index 100%
rename from Feed Reader/res/drawable/list_selector_flatcolor.xml
rename to async-image-loader-listview/res/drawable/list_selector_flatcolor.xml
diff --git a/AsyncImageLoaderListview/res/layout/activity_main.xml b/async-image-loader-listview/res/layout/activity_main.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/layout/activity_main.xml
rename to async-image-loader-listview/res/layout/activity_main.xml
diff --git a/AsyncImageLoaderListview/res/layout/list_row_layout.xml b/async-image-loader-listview/res/layout/list_row_layout.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/layout/list_row_layout.xml
rename to async-image-loader-listview/res/layout/list_row_layout.xml
diff --git a/AsyncImageLoaderListview/res/menu/main.xml b/async-image-loader-listview/res/menu/main.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/menu/main.xml
rename to async-image-loader-listview/res/menu/main.xml
diff --git a/Feed Reader/res/values-sw600dp/dimens.xml b/async-image-loader-listview/res/values-sw600dp/dimens.xml
similarity index 100%
rename from Feed Reader/res/values-sw600dp/dimens.xml
rename to async-image-loader-listview/res/values-sw600dp/dimens.xml
diff --git a/Feed Reader/res/values-sw720dp-land/dimens.xml b/async-image-loader-listview/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from Feed Reader/res/values-sw720dp-land/dimens.xml
rename to async-image-loader-listview/res/values-sw720dp-land/dimens.xml
diff --git a/Feed Reader/res/values-v11/styles.xml b/async-image-loader-listview/res/values-v11/styles.xml
similarity index 100%
rename from Feed Reader/res/values-v11/styles.xml
rename to async-image-loader-listview/res/values-v11/styles.xml
diff --git a/Feed Reader/res/values-v14/styles.xml b/async-image-loader-listview/res/values-v14/styles.xml
similarity index 100%
rename from Feed Reader/res/values-v14/styles.xml
rename to async-image-loader-listview/res/values-v14/styles.xml
diff --git a/Feed Reader/res/values/colors.xml b/async-image-loader-listview/res/values/colors.xml
similarity index 100%
rename from Feed Reader/res/values/colors.xml
rename to async-image-loader-listview/res/values/colors.xml
diff --git a/Feed Reader/res/values/dimens.xml b/async-image-loader-listview/res/values/dimens.xml
similarity index 100%
rename from Feed Reader/res/values/dimens.xml
rename to async-image-loader-listview/res/values/dimens.xml
diff --git a/AsyncImageLoaderListview/res/values/strings.xml b/async-image-loader-listview/res/values/strings.xml
similarity index 100%
rename from AsyncImageLoaderListview/res/values/strings.xml
rename to async-image-loader-listview/res/values/strings.xml
diff --git a/Imagedownloader/res/values/styles.xml b/async-image-loader-listview/res/values/styles.xml
similarity index 100%
rename from Imagedownloader/res/values/styles.xml
rename to async-image-loader-listview/res/values/styles.xml
diff --git a/AsyncImageLoaderListview/src/com/javatechig/customizedlist/CustomListAdapter.java b/async-image-loader-listview/src/com/javatechig/customizedlist/CustomListAdapter.java
similarity index 100%
rename from AsyncImageLoaderListview/src/com/javatechig/customizedlist/CustomListAdapter.java
rename to async-image-loader-listview/src/com/javatechig/customizedlist/CustomListAdapter.java
diff --git a/AsyncImageLoaderListview/src/com/javatechig/customizedlist/ImageDownloaderTask.java b/async-image-loader-listview/src/com/javatechig/customizedlist/ImageDownloaderTask.java
similarity index 100%
rename from AsyncImageLoaderListview/src/com/javatechig/customizedlist/ImageDownloaderTask.java
rename to async-image-loader-listview/src/com/javatechig/customizedlist/ImageDownloaderTask.java
diff --git a/AsyncImageLoaderListview/src/com/javatechig/customizedlist/MainActivity.java b/async-image-loader-listview/src/com/javatechig/customizedlist/MainActivity.java
similarity index 100%
rename from AsyncImageLoaderListview/src/com/javatechig/customizedlist/MainActivity.java
rename to async-image-loader-listview/src/com/javatechig/customizedlist/MainActivity.java
diff --git a/AsyncImageLoaderListview/src/com/javatechig/customizedlist/NewsItem.java b/async-image-loader-listview/src/com/javatechig/customizedlist/NewsItem.java
similarity index 100%
rename from AsyncImageLoaderListview/src/com/javatechig/customizedlist/NewsItem.java
rename to async-image-loader-listview/src/com/javatechig/customizedlist/NewsItem.java
diff --git a/firebase-analytics/app/.gitignore b/firebase-analytics/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/firebase-analytics/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/firebase-analytics/app/build.gradle b/firebase-analytics/app/build.gradle
new file mode 100644
index 0000000..01f9e6d
--- /dev/null
+++ b/firebase-analytics/app/build.gradle
@@ -0,0 +1,36 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 24
+ buildToolsVersion "23.0.3"
+ defaultConfig {
+ applicationId "com.stacktips.example"
+ minSdkVersion 17
+ targetSdkVersion 24
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+
+ compile 'com.android.support:appcompat-v7:24.1.1'
+ compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'
+ testCompile 'junit:junit:4.12'
+
+ compile 'com.google.firebase:firebase-core:9.4.0'
+}
+
+// Add to the bottom of the file
+apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
diff --git a/firebase-analytics/app/google-services.json b/firebase-analytics/app/google-services.json
new file mode 100644
index 0000000..f2d1a65
--- /dev/null
+++ b/firebase-analytics/app/google-services.json
@@ -0,0 +1,55 @@
+{
+ "project_info": {
+ "project_number": "1056683612444",
+ "firebase_url": "https://fir-example-3b520.firebaseio.com",
+ "project_id": "fir-example-3b520",
+ "storage_bucket": "fir-example-3b520.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:1056683612444:android:ec1d54721f501b9b",
+ "android_client_info": {
+ "package_name": "com.stacktips.example"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "1056683612444-b48ggt8pdg8memmpvaah7h2ac2dvamf0.apps.googleusercontent.com",
+ "client_type": 1,
+ "android_info": {
+ "package_name": "com.stacktips.example",
+ "certificate_hash": "54436CA65FD4931F55E9B4114CFD520D782097CF"
+ }
+ },
+ {
+ "client_id": "1056683612444-5qd838obh9b6aeqgh928hsque4kgb6bj.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCyhGNBV40tiaMUn2vWqLeQdk9J3IC5IPk"
+ }
+ ],
+ "services": {
+ "analytics_service": {
+ "status": 1
+ },
+ "appinvite_service": {
+ "status": 2,
+ "other_platform_oauth_client": [
+ {
+ "client_id": "1056683612444-5qd838obh9b6aeqgh928hsque4kgb6bj.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ },
+ "ads_service": {
+ "status": 2
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/firebase-analytics/app/proguard-rules.pro b/firebase-analytics/app/proguard-rules.pro
new file mode 100644
index 0000000..a734a8c
--- /dev/null
+++ b/firebase-analytics/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/nilanchalpanigrahy/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/firebase-analytics/app/src/androidTest/java/com/stacktips/example/ExampleInstrumentedTest.java b/firebase-analytics/app/src/androidTest/java/com/stacktips/example/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..b21d4ef
--- /dev/null
+++ b/firebase-analytics/app/src/androidTest/java/com/stacktips/example/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.stacktips.example;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumentation test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.stacktips.example", appContext.getPackageName());
+ }
+}
diff --git a/firebase-analytics/app/src/main/AndroidManifest.xml b/firebase-analytics/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..a3f2da0
--- /dev/null
+++ b/firebase-analytics/app/src/main/AndroidManifest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/firebase-analytics/app/src/main/java/com/stacktips/example/MainActivity.java b/firebase-analytics/app/src/main/java/com/stacktips/example/MainActivity.java
new file mode 100644
index 0000000..27b1826
--- /dev/null
+++ b/firebase-analytics/app/src/main/java/com/stacktips/example/MainActivity.java
@@ -0,0 +1,42 @@
+package com.stacktips.example;
+
+import android.os.Bundle;
+import android.support.v7.app.AppCompatActivity;
+import android.view.View;
+import android.widget.Button;
+
+import com.google.firebase.analytics.FirebaseAnalytics;
+
+import java.util.Locale;
+
+public class MainActivity extends AppCompatActivity {
+
+ private FirebaseAnalytics mFirebaseAnalytics;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ // Obtain the FirebaseAnalytics instance.
+ mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
+ mFirebaseAnalytics.setAnalyticsCollectionEnabled(true);
+ mFirebaseAnalytics.setMinimumSessionDuration(20000);
+
+ Button subscribeButton = (Button) findViewById(R.id.button1);
+ subscribeButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Bundle bundle = new Bundle();
+ String id = "1year";
+ String name = "Annual membership subscription";
+ bundle.putString(FirebaseAnalytics.Param.ITEM_ID, id);
+ bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, name);
+ bundle.putString(FirebaseAnalytics.Param.CURRENCY, "EUR");
+ bundle.putString(FirebaseAnalytics.Param.PRICE, "299.00");
+ mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
+ }
+ });
+
+ }
+}
diff --git a/firebase-analytics/app/src/main/res/layout/activity_main.xml b/firebase-analytics/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..344de35
--- /dev/null
+++ b/firebase-analytics/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
diff --git a/firebase-analytics/app/src/main/res/mipmap-hdpi/ic_launcher.png b/firebase-analytics/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/firebase-analytics/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/firebase-analytics/app/src/main/res/mipmap-mdpi/ic_launcher.png b/firebase-analytics/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/firebase-analytics/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/firebase-analytics/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/firebase-analytics/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/firebase-analytics/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/firebase-analytics/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/firebase-analytics/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/firebase-analytics/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/firebase-analytics/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/firebase-analytics/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/firebase-analytics/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/firebase-analytics/app/src/main/res/values-w820dp/dimens.xml b/firebase-analytics/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/firebase-analytics/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/firebase-analytics/app/src/main/res/values/colors.xml b/firebase-analytics/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/firebase-analytics/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
diff --git a/firebase-analytics/app/src/main/res/values/dimens.xml b/firebase-analytics/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/firebase-analytics/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/firebase-analytics/app/src/main/res/values/strings.xml b/firebase-analytics/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..8a269fb
--- /dev/null
+++ b/firebase-analytics/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ FirebaseAnalyticsExample
+
diff --git a/firebase-analytics/app/src/main/res/values/styles.xml b/firebase-analytics/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/firebase-analytics/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/firebase-analytics/app/src/test/java/com/stacktips/example/ExampleUnitTest.java b/firebase-analytics/app/src/test/java/com/stacktips/example/ExampleUnitTest.java
new file mode 100644
index 0000000..94c19d7
--- /dev/null
+++ b/firebase-analytics/app/src/test/java/com/stacktips/example/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.stacktips.example;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/firebase-analytics/build.gradle b/firebase-analytics/build.gradle
new file mode 100644
index 0000000..d88328e
--- /dev/null
+++ b/firebase-analytics/build.gradle
@@ -0,0 +1,28 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.2.0-alpha7'
+
+ classpath 'com.google.gms:google-services:3.0.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+
+}
+
+
diff --git a/firebase-analytics/gradle.properties b/firebase-analytics/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/firebase-analytics/gradle.properties
@@ -0,0 +1,17 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/firebase-analytics/gradle/wrapper/gradle-wrapper.jar b/firebase-analytics/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..13372ae
Binary files /dev/null and b/firebase-analytics/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/firebase-analytics/gradle/wrapper/gradle-wrapper.properties b/firebase-analytics/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..04e285f
--- /dev/null
+++ b/firebase-analytics/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Dec 28 10:00:20 PST 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
diff --git a/firebase-analytics/gradlew b/firebase-analytics/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/firebase-analytics/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/firebase-analytics/gradlew.bat b/firebase-analytics/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/firebase-analytics/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/firebase-analytics/settings.gradle b/firebase-analytics/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/firebase-analytics/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/firebase-messaging-exmaple/FirebaseMessagingExample.iml b/firebase-messaging-exmaple/FirebaseMessagingExample.iml
new file mode 100644
index 0000000..9cd637f
--- /dev/null
+++ b/firebase-messaging-exmaple/FirebaseMessagingExample.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/firebase-messaging-exmaple/README.md b/firebase-messaging-exmaple/README.md
new file mode 100644
index 0000000..80bc6fc
--- /dev/null
+++ b/firebase-messaging-exmaple/README.md
@@ -0,0 +1,5 @@
+# Firebase-Messaging-Example
+Firebase Cloud Messaging (FCM) is the new version of GCM. Built on top of the GCM infrastructure, it provides the ability send messages to multiple platforms beyond Android: iOS and Mobile web.
+
+In this tutorial, we will see how to configure and use Firebase Cloud Messaging platform in your Android application. Visit my blog for complete tutorial
+http://stacktips.com/tutorials/android/how-to-integrate-firebase-cloud-messaging-for-android
diff --git a/firebase-messaging-exmaple/app/.gitignore b/firebase-messaging-exmaple/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/firebase-messaging-exmaple/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/firebase-messaging-exmaple/app/app.iml b/firebase-messaging-exmaple/app/app.iml
new file mode 100644
index 0000000..6b6bd3f
--- /dev/null
+++ b/firebase-messaging-exmaple/app/app.iml
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ generateDebugSources
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/firebase-messaging-exmaple/app/build.gradle b/firebase-messaging-exmaple/app/build.gradle
new file mode 100644
index 0000000..d67ce82
--- /dev/null
+++ b/firebase-messaging-exmaple/app/build.gradle
@@ -0,0 +1,34 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 23
+ buildToolsVersion "23.0.3"
+ defaultConfig {
+ applicationId "com.stacktips.example"
+ minSdkVersion 20
+ targetSdkVersion 23
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ compile 'com.android.support:appcompat-v7:23.4.0'
+ compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'
+ testCompile 'junit:junit:4.12'
+
+ compile 'com.google.firebase:firebase-messaging:9.4.0'
+}
+
+apply plugin: 'com.google.gms.google-services'
diff --git a/firebase-messaging-exmaple/app/google-services.json b/firebase-messaging-exmaple/app/google-services.json
new file mode 100644
index 0000000..f2d1a65
--- /dev/null
+++ b/firebase-messaging-exmaple/app/google-services.json
@@ -0,0 +1,55 @@
+{
+ "project_info": {
+ "project_number": "1056683612444",
+ "firebase_url": "https://fir-example-3b520.firebaseio.com",
+ "project_id": "fir-example-3b520",
+ "storage_bucket": "fir-example-3b520.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:1056683612444:android:ec1d54721f501b9b",
+ "android_client_info": {
+ "package_name": "com.stacktips.example"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "1056683612444-b48ggt8pdg8memmpvaah7h2ac2dvamf0.apps.googleusercontent.com",
+ "client_type": 1,
+ "android_info": {
+ "package_name": "com.stacktips.example",
+ "certificate_hash": "54436CA65FD4931F55E9B4114CFD520D782097CF"
+ }
+ },
+ {
+ "client_id": "1056683612444-5qd838obh9b6aeqgh928hsque4kgb6bj.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCyhGNBV40tiaMUn2vWqLeQdk9J3IC5IPk"
+ }
+ ],
+ "services": {
+ "analytics_service": {
+ "status": 1
+ },
+ "appinvite_service": {
+ "status": 2,
+ "other_platform_oauth_client": [
+ {
+ "client_id": "1056683612444-5qd838obh9b6aeqgh928hsque4kgb6bj.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ },
+ "ads_service": {
+ "status": 2
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/firebase-messaging-exmaple/app/proguard-rules.pro b/firebase-messaging-exmaple/app/proguard-rules.pro
new file mode 100644
index 0000000..33f72cc
--- /dev/null
+++ b/firebase-messaging-exmaple/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/npanigrahy/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/firebase-messaging-exmaple/app/src/main/AndroidManifest.xml b/firebase-messaging-exmaple/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..d17e1ff
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/AndroidManifest.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/FCMCallbackService.java b/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/FCMCallbackService.java
new file mode 100644
index 0000000..25957c5
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/FCMCallbackService.java
@@ -0,0 +1,52 @@
+package com.stacktips.example;
+
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.Context;
+import android.content.Intent;
+import android.media.RingtoneManager;
+import android.net.Uri;
+import android.support.v4.app.NotificationCompat;
+import android.util.Log;
+
+import com.google.firebase.messaging.FirebaseMessagingService;
+import com.google.firebase.messaging.RemoteMessage;
+
+/**
+ * Created by npanigrahy on 13/08/2016.
+ */
+
+public class FCMCallbackService extends FirebaseMessagingService {
+ private static final String TAG = "FCMCallbackService";
+
+ @Override
+ public void onMessageReceived(RemoteMessage remoteMessage) {
+ Log.d(TAG, "From:" + remoteMessage.getFrom());
+ Log.d(TAG, "Message Body:" + remoteMessage.getNotification().getBody());
+ sendNotification(remoteMessage.getNotification());
+ }
+
+ private void sendNotification(RemoteMessage.Notification notification) {
+ int color = getResources().getColor(R.color.notification_color);
+ Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
+
+ Intent intent = new Intent(this, MainActivity.class);
+ intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
+ PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,
+ PendingIntent.FLAG_ONE_SHOT);
+
+ NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
+ .setContentTitle(notification.getTitle())
+ .setContentText(notification.getBody())
+ .setAutoCancel(true)
+ .setSmallIcon(R.drawable.ic_offer)
+ .setColor(color)
+ .setStyle(new NotificationCompat.BigTextStyle().bigText(notification.getBody()))
+ .setSound(defaultSoundUri)
+ .setContentIntent(pendingIntent);
+
+ NotificationManager notificationManager = (NotificationManager)
+ getSystemService(Context.NOTIFICATION_SERVICE);
+ notificationManager.notify(0, builder.build());
+ }
+}
\ No newline at end of file
diff --git a/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/FCMInitializationService.java b/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/FCMInitializationService.java
new file mode 100644
index 0000000..34a9d92
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/FCMInitializationService.java
@@ -0,0 +1,20 @@
+package com.stacktips.example;
+
+import android.util.Log;
+import com.google.firebase.iid.FirebaseInstanceId;
+import com.google.firebase.iid.FirebaseInstanceIdService;
+
+/**
+ * Created by npanigrahy on 13/08/2016.
+ */
+public class FCMInitializationService extends FirebaseInstanceIdService {
+ private static final String TAG = "FCMInitializationService";
+
+ @Override
+ public void onTokenRefresh() {
+ String fcmToken = FirebaseInstanceId.getInstance().getToken();
+
+ Log.d(TAG, "FCM Device Token:" + fcmToken);
+ //Save or send FCM registration token
+ }
+}
\ No newline at end of file
diff --git a/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/MainActivity.java b/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/MainActivity.java
new file mode 100644
index 0000000..0f3f6da
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/MainActivity.java
@@ -0,0 +1,13 @@
+package com.stacktips.example;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class MainActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ }
+}
diff --git a/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/MyApp.java b/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/MyApp.java
new file mode 100644
index 0000000..5fdf63e
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/java/com/stacktips/example/MyApp.java
@@ -0,0 +1,19 @@
+package com.stacktips.example;
+
+import android.app.Application;
+
+import com.google.firebase.iid.FirebaseInstanceId;
+
+/**
+ * Created by npanigrahy on 13/08/2016.
+ */
+
+public class MyApp extends Application {
+
+ @Override
+ public void onCreate() {
+ super.onCreate();
+
+ FirebaseInstanceId.getInstance().getToken();
+ }
+}
diff --git a/firebase-messaging-exmaple/app/src/main/res/drawable/ic_offer.png b/firebase-messaging-exmaple/app/src/main/res/drawable/ic_offer.png
new file mode 100644
index 0000000..b3846ee
Binary files /dev/null and b/firebase-messaging-exmaple/app/src/main/res/drawable/ic_offer.png differ
diff --git a/firebase-messaging-exmaple/app/src/main/res/layout/activity_main.xml b/firebase-messaging-exmaple/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..c026175
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
diff --git a/firebase-messaging-exmaple/app/src/main/res/mipmap-hdpi/ic_launcher.png b/firebase-messaging-exmaple/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/firebase-messaging-exmaple/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/firebase-messaging-exmaple/app/src/main/res/mipmap-mdpi/ic_launcher.png b/firebase-messaging-exmaple/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/firebase-messaging-exmaple/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/firebase-messaging-exmaple/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/firebase-messaging-exmaple/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/firebase-messaging-exmaple/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/firebase-messaging-exmaple/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/firebase-messaging-exmaple/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/firebase-messaging-exmaple/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/firebase-messaging-exmaple/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/firebase-messaging-exmaple/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/firebase-messaging-exmaple/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/firebase-messaging-exmaple/app/src/main/res/values-w820dp/dimens.xml b/firebase-messaging-exmaple/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/firebase-messaging-exmaple/app/src/main/res/values/colors.xml b/firebase-messaging-exmaple/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..e73e3a1
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/res/values/colors.xml
@@ -0,0 +1,8 @@
+
+
+ #039be5
+ #0288d1
+ #039be5
+
+ #0288d1
+
diff --git a/firebase-messaging-exmaple/app/src/main/res/values/dimens.xml b/firebase-messaging-exmaple/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/firebase-messaging-exmaple/app/src/main/res/values/strings.xml b/firebase-messaging-exmaple/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..db22f2a
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+ FCM App
+ Visit Firebase Console to send notifications.
+
diff --git a/firebase-messaging-exmaple/app/src/main/res/values/styles.xml b/firebase-messaging-exmaple/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/firebase-messaging-exmaple/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/firebase-messaging-exmaple/build.gradle b/firebase-messaging-exmaple/build.gradle
new file mode 100644
index 0000000..385be1a
--- /dev/null
+++ b/firebase-messaging-exmaple/build.gradle
@@ -0,0 +1,24 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.2.0-alpha6'
+
+ classpath 'com.google.gms:google-services:3.0.0'
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/firebase-messaging-exmaple/device-2016-08-13-234216.png b/firebase-messaging-exmaple/device-2016-08-13-234216.png
new file mode 100644
index 0000000..f352ccc
Binary files /dev/null and b/firebase-messaging-exmaple/device-2016-08-13-234216.png differ
diff --git a/firebase-messaging-exmaple/device-2016-08-13-234948.png b/firebase-messaging-exmaple/device-2016-08-13-234948.png
new file mode 100644
index 0000000..8bf910f
Binary files /dev/null and b/firebase-messaging-exmaple/device-2016-08-13-234948.png differ
diff --git a/firebase-messaging-exmaple/gradle.properties b/firebase-messaging-exmaple/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/firebase-messaging-exmaple/gradle.properties
@@ -0,0 +1,17 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/firebase-messaging-exmaple/gradle/wrapper/gradle-wrapper.jar b/firebase-messaging-exmaple/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..13372ae
Binary files /dev/null and b/firebase-messaging-exmaple/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/firebase-messaging-exmaple/gradle/wrapper/gradle-wrapper.properties b/firebase-messaging-exmaple/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..122a0dc
--- /dev/null
+++ b/firebase-messaging-exmaple/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Dec 28 10:00:20 PST 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
diff --git a/firebase-messaging-exmaple/gradlew b/firebase-messaging-exmaple/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/firebase-messaging-exmaple/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/firebase-messaging-exmaple/gradlew.bat b/firebase-messaging-exmaple/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/firebase-messaging-exmaple/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/firebase-messaging-exmaple/settings.gradle b/firebase-messaging-exmaple/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/firebase-messaging-exmaple/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/GetRegisteredEmailAccounts/AndroidManifest.xml b/get-registered-email-accounts/AndroidManifest.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/AndroidManifest.xml
rename to get-registered-email-accounts/AndroidManifest.xml
diff --git a/GetRegisteredEmailAccounts/ic_launcher-web.png b/get-registered-email-accounts/ic_launcher-web.png
similarity index 100%
rename from GetRegisteredEmailAccounts/ic_launcher-web.png
rename to get-registered-email-accounts/ic_launcher-web.png
diff --git a/GetRegisteredEmailAccounts/libs/android-support-v4.jar b/get-registered-email-accounts/libs/android-support-v4.jar
similarity index 100%
rename from GetRegisteredEmailAccounts/libs/android-support-v4.jar
rename to get-registered-email-accounts/libs/android-support-v4.jar
diff --git a/TODO Android App/proguard-project.txt b/get-registered-email-accounts/proguard-project.txt
similarity index 100%
rename from TODO Android App/proguard-project.txt
rename to get-registered-email-accounts/proguard-project.txt
diff --git a/GetRegisteredEmailAccounts/project.properties b/get-registered-email-accounts/project.properties
similarity index 100%
rename from GetRegisteredEmailAccounts/project.properties
rename to get-registered-email-accounts/project.properties
diff --git a/get-registered-email-accounts/res/drawable-hdpi/ic_launcher.png b/get-registered-email-accounts/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..288b665
Binary files /dev/null and b/get-registered-email-accounts/res/drawable-hdpi/ic_launcher.png differ
diff --git a/get-registered-email-accounts/res/drawable-mdpi/ic_launcher.png b/get-registered-email-accounts/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..6ae570b
Binary files /dev/null and b/get-registered-email-accounts/res/drawable-mdpi/ic_launcher.png differ
diff --git a/get-registered-email-accounts/res/drawable-xhdpi/ic_launcher.png b/get-registered-email-accounts/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..d4fb7cd
Binary files /dev/null and b/get-registered-email-accounts/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/get-registered-email-accounts/res/drawable-xxhdpi/ic_launcher.png b/get-registered-email-accounts/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..85a6081
Binary files /dev/null and b/get-registered-email-accounts/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/GetRegisteredEmailAccounts/res/layout/activity_main.xml b/get-registered-email-accounts/res/layout/activity_main.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/layout/activity_main.xml
rename to get-registered-email-accounts/res/layout/activity_main.xml
diff --git a/GetRegisteredEmailAccounts/res/layout/lovely_view_layout.xml b/get-registered-email-accounts/res/layout/lovely_view_layout.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/layout/lovely_view_layout.xml
rename to get-registered-email-accounts/res/layout/lovely_view_layout.xml
diff --git a/TurnWifi/res/values-sw600dp/dimens.xml b/get-registered-email-accounts/res/values-sw600dp/dimens.xml
similarity index 100%
rename from TurnWifi/res/values-sw600dp/dimens.xml
rename to get-registered-email-accounts/res/values-sw600dp/dimens.xml
diff --git a/TurnWifi/res/values-sw720dp-land/dimens.xml b/get-registered-email-accounts/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from TurnWifi/res/values-sw720dp-land/dimens.xml
rename to get-registered-email-accounts/res/values-sw720dp-land/dimens.xml
diff --git a/get-registered-email-accounts/res/values-v11/styles.xml b/get-registered-email-accounts/res/values-v11/styles.xml
new file mode 100644
index 0000000..3c02242
--- /dev/null
+++ b/get-registered-email-accounts/res/values-v11/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/get-registered-email-accounts/res/values-v14/styles.xml b/get-registered-email-accounts/res/values-v14/styles.xml
new file mode 100644
index 0000000..a91fd03
--- /dev/null
+++ b/get-registered-email-accounts/res/values-v14/styles.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
diff --git a/GetRegisteredEmailAccounts/res/values/color.xml b/get-registered-email-accounts/res/values/color.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/values/color.xml
rename to get-registered-email-accounts/res/values/color.xml
diff --git a/get-registered-email-accounts/res/values/dimens.xml b/get-registered-email-accounts/res/values/dimens.xml
new file mode 100644
index 0000000..55c1e59
--- /dev/null
+++ b/get-registered-email-accounts/res/values/dimens.xml
@@ -0,0 +1,7 @@
+
+
+
+ 16dp
+ 16dp
+
+
diff --git a/GetRegisteredEmailAccounts/res/values/strings.xml b/get-registered-email-accounts/res/values/strings.xml
similarity index 100%
rename from GetRegisteredEmailAccounts/res/values/strings.xml
rename to get-registered-email-accounts/res/values/strings.xml
diff --git a/get-registered-email-accounts/res/values/styles.xml b/get-registered-email-accounts/res/values/styles.xml
new file mode 100644
index 0000000..6ce89c7
--- /dev/null
+++ b/get-registered-email-accounts/res/values/styles.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
diff --git a/GetRegisteredEmailAccounts/src/com/javatechig/regemail/Item.java b/get-registered-email-accounts/src/com/javatechig/regemail/Item.java
similarity index 100%
rename from GetRegisteredEmailAccounts/src/com/javatechig/regemail/Item.java
rename to get-registered-email-accounts/src/com/javatechig/regemail/Item.java
diff --git a/GetRegisteredEmailAccounts/src/com/javatechig/regemail/LovelyListAdapter.java b/get-registered-email-accounts/src/com/javatechig/regemail/LovelyListAdapter.java
similarity index 100%
rename from GetRegisteredEmailAccounts/src/com/javatechig/regemail/LovelyListAdapter.java
rename to get-registered-email-accounts/src/com/javatechig/regemail/LovelyListAdapter.java
diff --git a/GetRegisteredEmailAccounts/src/com/javatechig/regemail/MainActivity.java b/get-registered-email-accounts/src/com/javatechig/regemail/MainActivity.java
similarity index 100%
rename from GetRegisteredEmailAccounts/src/com/javatechig/regemail/MainActivity.java
rename to get-registered-email-accounts/src/com/javatechig/regemail/MainActivity.java
diff --git a/GoogleAnalyticsDemo/AndroidManifest.xml b/google-analytics-demo/AndroidManifest.xml
similarity index 100%
rename from GoogleAnalyticsDemo/AndroidManifest.xml
rename to google-analytics-demo/AndroidManifest.xml
diff --git a/google-analytics-demo/libs/android-support-v4.jar b/google-analytics-demo/libs/android-support-v4.jar
new file mode 100644
index 0000000..428bdbc
Binary files /dev/null and b/google-analytics-demo/libs/android-support-v4.jar differ
diff --git a/GoogleAnalyticsDemo/libs/libGoogleAnalyticsServices.jar b/google-analytics-demo/libs/libGoogleAnalyticsServices.jar
similarity index 100%
rename from GoogleAnalyticsDemo/libs/libGoogleAnalyticsServices.jar
rename to google-analytics-demo/libs/libGoogleAnalyticsServices.jar
diff --git a/GoogleAnalyticsDemo/project.properties b/google-analytics-demo/project.properties
similarity index 100%
rename from GoogleAnalyticsDemo/project.properties
rename to google-analytics-demo/project.properties
diff --git a/GoogleAnalyticsDemo/res/drawable-hdpi/ic_launcher.png b/google-analytics-demo/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from GoogleAnalyticsDemo/res/drawable-hdpi/ic_launcher.png
rename to google-analytics-demo/res/drawable-hdpi/ic_launcher.png
diff --git a/GoogleAnalyticsDemo/res/drawable-mdpi/ic_launcher.png b/google-analytics-demo/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from GoogleAnalyticsDemo/res/drawable-mdpi/ic_launcher.png
rename to google-analytics-demo/res/drawable-mdpi/ic_launcher.png
diff --git a/GoogleAnalyticsDemo/res/drawable-xhdpi/ic_launcher.png b/google-analytics-demo/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from GoogleAnalyticsDemo/res/drawable-xhdpi/ic_launcher.png
rename to google-analytics-demo/res/drawable-xhdpi/ic_launcher.png
diff --git a/GoogleAnalyticsDemo/res/drawable-xxhdpi/ic_launcher.png b/google-analytics-demo/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from GoogleAnalyticsDemo/res/drawable-xxhdpi/ic_launcher.png
rename to google-analytics-demo/res/drawable-xxhdpi/ic_launcher.png
diff --git a/GoogleAnalyticsDemo/res/layout/activity_main.xml b/google-analytics-demo/res/layout/activity_main.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/layout/activity_main.xml
rename to google-analytics-demo/res/layout/activity_main.xml
diff --git a/google-analytics-demo/res/menu/main.xml b/google-analytics-demo/res/menu/main.xml
new file mode 100644
index 0000000..c002028
--- /dev/null
+++ b/google-analytics-demo/res/menu/main.xml
@@ -0,0 +1,9 @@
+
diff --git a/google-analytics-demo/res/values-sw600dp/dimens.xml b/google-analytics-demo/res/values-sw600dp/dimens.xml
new file mode 100644
index 0000000..44f01db
--- /dev/null
+++ b/google-analytics-demo/res/values-sw600dp/dimens.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/google-analytics-demo/res/values-sw720dp-land/dimens.xml b/google-analytics-demo/res/values-sw720dp-land/dimens.xml
new file mode 100644
index 0000000..61e3fa8
--- /dev/null
+++ b/google-analytics-demo/res/values-sw720dp-land/dimens.xml
@@ -0,0 +1,9 @@
+
+
+
+ 128dp
+
+
diff --git a/google-analytics-demo/res/values-v11/styles.xml b/google-analytics-demo/res/values-v11/styles.xml
new file mode 100644
index 0000000..3c02242
--- /dev/null
+++ b/google-analytics-demo/res/values-v11/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/google-analytics-demo/res/values-v14/styles.xml b/google-analytics-demo/res/values-v14/styles.xml
new file mode 100644
index 0000000..a91fd03
--- /dev/null
+++ b/google-analytics-demo/res/values-v14/styles.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
diff --git a/GoogleAnalyticsDemo/res/values/analytics.xml b/google-analytics-demo/res/values/analytics.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/values/analytics.xml
rename to google-analytics-demo/res/values/analytics.xml
diff --git a/google-analytics-demo/res/values/dimens.xml b/google-analytics-demo/res/values/dimens.xml
new file mode 100644
index 0000000..55c1e59
--- /dev/null
+++ b/google-analytics-demo/res/values/dimens.xml
@@ -0,0 +1,7 @@
+
+
+
+ 16dp
+ 16dp
+
+
diff --git a/GoogleAnalyticsDemo/res/values/strings.xml b/google-analytics-demo/res/values/strings.xml
similarity index 100%
rename from GoogleAnalyticsDemo/res/values/strings.xml
rename to google-analytics-demo/res/values/strings.xml
diff --git a/google-analytics-demo/res/values/styles.xml b/google-analytics-demo/res/values/styles.xml
new file mode 100644
index 0000000..6ce89c7
--- /dev/null
+++ b/google-analytics-demo/res/values/styles.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
diff --git a/GoogleAnalyticsDemo/src/com/javatechig/ganalytics/MainActivity.java b/google-analytics-demo/src/com/javatechig/ganalytics/MainActivity.java
similarity index 100%
rename from GoogleAnalyticsDemo/src/com/javatechig/ganalytics/MainActivity.java
rename to google-analytics-demo/src/com/javatechig/ganalytics/MainActivity.java
diff --git a/http-get-apache-httpClient/HttpAsyncTask.iml b/http-get-apache-httpClient/HttpAsyncTask.iml
new file mode 100644
index 0000000..0bb6048
--- /dev/null
+++ b/http-get-apache-httpClient/HttpAsyncTask.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/http-get-apache-httpClient/README.md b/http-get-apache-httpClient/README.md
new file mode 100644
index 0000000..e9f52fc
--- /dev/null
+++ b/http-get-apache-httpClient/README.md
@@ -0,0 +1,4 @@
+Android-HttpGet-Apache-HttpClient
+=================================
+
+Android Networking using Apache HttpClient
diff --git a/http-get-apache-httpClient/app/.gitignore b/http-get-apache-httpClient/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/http-get-apache-httpClient/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/http-get-apache-httpClient/app/app.iml b/http-get-apache-httpClient/app/app.iml
new file mode 100644
index 0000000..a85675f
--- /dev/null
+++ b/http-get-apache-httpClient/app/app.iml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/http-get-apache-httpClient/app/build.gradle b/http-get-apache-httpClient/app/build.gradle
new file mode 100644
index 0000000..4cdcb34
--- /dev/null
+++ b/http-get-apache-httpClient/app/build.gradle
@@ -0,0 +1,24 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 20
+ buildToolsVersion "20.0.0"
+
+ defaultConfig {
+ applicationId "com.javatechig.httpasynctask"
+ minSdkVersion 14
+ targetSdkVersion 20
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ runProguard false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+}
diff --git a/http-get-apache-httpClient/app/proguard-rules.pro b/http-get-apache-httpClient/app/proguard-rules.pro
new file mode 100644
index 0000000..01442bc
--- /dev/null
+++ b/http-get-apache-httpClient/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Applications/android-sdk-macosx/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/http-get-apache-httpClient/app/src/androidTest/java/com/javatechig/httpasynctask/ApplicationTest.java b/http-get-apache-httpClient/app/src/androidTest/java/com/javatechig/httpasynctask/ApplicationTest.java
new file mode 100644
index 0000000..80af5db
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/androidTest/java/com/javatechig/httpasynctask/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.javatechig.httpasynctask;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/http-get-apache-httpClient/app/src/main/AndroidManifest.xml b/http-get-apache-httpClient/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..23fc996
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/main/AndroidManifest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/http-get-apache-httpClient/app/src/main/java/com/javatechig/httpasynctask/MyActivity.java b/http-get-apache-httpClient/app/src/main/java/com/javatechig/httpasynctask/MyActivity.java
new file mode 100644
index 0000000..01c2010
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/main/java/com/javatechig/httpasynctask/MyActivity.java
@@ -0,0 +1,149 @@
+package com.javatechig.httpasynctask;
+
+import android.app.Activity;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.util.Log;
+import android.widget.ArrayAdapter;
+import android.widget.ListView;
+import org.apache.http.HttpResponse;
+import org.apache.http.client.HttpClient;
+import org.apache.http.client.methods.HttpGet;
+import org.apache.http.impl.client.DefaultHttpClient;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+
+public class MyActivity extends Activity {
+
+ private static final String TAG = "Http Connection";
+
+ private ListView listView = null;
+
+ private ArrayAdapter arrayAdapter = null;
+
+ private String[] blogTitles;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_my);
+
+ listView = (ListView) findViewById(R.id.listView);
+
+ final String url = "http://javatechig.com/api/get_category_posts/?dev=1&slug=android";
+
+ new AsyncHttpTask().execute(url);
+ }
+
+
+ public class AsyncHttpTask extends AsyncTask {
+
+ @Override
+ protected Integer doInBackground(String... params) {
+ InputStream inputStream = null;
+ Integer result = 0;
+ try {
+ /* create Apache HttpClient */
+ HttpClient httpclient = new DefaultHttpClient();
+
+ /* HttpGet Method */
+ HttpGet httpGet = new HttpGet(params[0]);
+
+
+ /* optional request header */
+ httpGet.setHeader("Content-Type", "application/json");
+
+
+ /* optional request header */
+ httpGet.setHeader("Accept", "application/json");
+
+ /* Make http request call */
+ HttpResponse httpResponse = httpclient.execute(httpGet);
+
+
+ int statusCode = httpResponse.getStatusLine().getStatusCode();
+
+ /* 200 represents HTTP OK */
+ if (statusCode == 200) {
+
+ /* receive response as inputStream */
+ inputStream = httpResponse.getEntity().getContent();
+
+ String response = convertInputStreamToString(inputStream);
+
+ parseResult(response);
+
+ result = 1; // Successful
+
+ }else{
+ result = 0; //"Failed to fetch data!";
+ }
+
+ } catch (Exception e) {
+ Log.d(TAG, e.getLocalizedMessage());
+ }
+
+ return result; //"Failed to fetch data!";
+ }
+
+
+ @Override
+ protected void onPostExecute(Integer result) {
+ /* Download complete. Lets update UI */
+
+ if(result == 1){
+
+ arrayAdapter = new ArrayAdapter(MyActivity.this, android.R.layout.simple_list_item_1, blogTitles);
+
+ listView.setAdapter(arrayAdapter);
+ }else{
+ Log.e(TAG, "Failed to fetch data!");
+ }
+ }
+ }
+
+ private String convertInputStreamToString(InputStream inputStream) throws IOException {
+
+ BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));
+
+ String line = "";
+ String result = "";
+
+ while((line = bufferedReader.readLine()) != null){
+ result += line;
+ }
+
+ /* Close Stream */
+ if(null!=inputStream){
+ inputStream.close();
+ }
+
+ return result;
+ }
+
+ private void parseResult(String result) {
+
+ try{
+ JSONObject response = new JSONObject(result);
+
+ JSONArray posts = response.optJSONArray("posts");
+
+ blogTitles = new String[posts.length()];
+
+ for(int i=0; i< posts.length();i++ ){
+ JSONObject post = posts.optJSONObject(i);
+ String title = post.optString("title");
+
+ blogTitles[i] = title;
+ }
+
+ }catch (JSONException e){
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/http-get-apache-httpClient/app/src/main/res/drawable-hdpi/ic_launcher.png b/http-get-apache-httpClient/app/src/main/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
Binary files /dev/null and b/http-get-apache-httpClient/app/src/main/res/drawable-hdpi/ic_launcher.png differ
diff --git a/http-get-apache-httpClient/app/src/main/res/drawable-mdpi/ic_launcher.png b/http-get-apache-httpClient/app/src/main/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
Binary files /dev/null and b/http-get-apache-httpClient/app/src/main/res/drawable-mdpi/ic_launcher.png differ
diff --git a/http-get-apache-httpClient/app/src/main/res/drawable-xhdpi/ic_launcher.png b/http-get-apache-httpClient/app/src/main/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
Binary files /dev/null and b/http-get-apache-httpClient/app/src/main/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/http-get-apache-httpClient/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/http-get-apache-httpClient/app/src/main/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4df1894
Binary files /dev/null and b/http-get-apache-httpClient/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ
diff --git a/http-get-apache-httpClient/app/src/main/res/layout/activity_my.xml b/http-get-apache-httpClient/app/src/main/res/layout/activity_my.xml
new file mode 100644
index 0000000..a32e69e
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/main/res/layout/activity_my.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
diff --git a/http-get-apache-httpClient/app/src/main/res/menu/my.xml b/http-get-apache-httpClient/app/src/main/res/menu/my.xml
new file mode 100644
index 0000000..bea58cc
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/main/res/menu/my.xml
@@ -0,0 +1,8 @@
+
diff --git a/http-get-apache-httpClient/app/src/main/res/values-w820dp/dimens.xml b/http-get-apache-httpClient/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/http-get-apache-httpClient/app/src/main/res/values/dimens.xml b/http-get-apache-httpClient/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/http-get-apache-httpClient/app/src/main/res/values/strings.xml b/http-get-apache-httpClient/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..a428447
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/main/res/values/strings.xml
@@ -0,0 +1,9 @@
+
+
+
+ HttpAsyncTask
+ Hello world!
+ Settings
+ This example demonstrates different ways to perform network operations in Android. This example downloads the jokes from server and displays on screen.
+
+
diff --git a/http-get-apache-httpClient/app/src/main/res/values/styles.xml b/http-get-apache-httpClient/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..ff6c9d2
--- /dev/null
+++ b/http-get-apache-httpClient/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/http-get-apache-httpClient/build.gradle b/http-get-apache-httpClient/build.gradle
new file mode 100644
index 0000000..9b8abe4
--- /dev/null
+++ b/http-get-apache-httpClient/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.12.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/http-get-apache-httpClient/gradle.properties b/http-get-apache-httpClient/gradle.properties
new file mode 100644
index 0000000..5d08ba7
--- /dev/null
+++ b/http-get-apache-httpClient/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Settings specified in this file will override any Gradle settings
+# configured through the IDE.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/http-get-apache-httpClient/gradle/wrapper/gradle-wrapper.jar b/http-get-apache-httpClient/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/http-get-apache-httpClient/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/http-get-apache-httpClient/gradle/wrapper/gradle-wrapper.properties b/http-get-apache-httpClient/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..1e61d1f
--- /dev/null
+++ b/http-get-apache-httpClient/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
diff --git a/http-get-apache-httpClient/gradlew b/http-get-apache-httpClient/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/http-get-apache-httpClient/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/http-get-apache-httpClient/gradlew.bat b/http-get-apache-httpClient/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/http-get-apache-httpClient/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/http-get-apache-httpClient/settings.gradle b/http-get-apache-httpClient/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/http-get-apache-httpClient/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/Imagedownloader/AndroidManifest.xml b/image-downloader/AndroidManifest.xml
similarity index 100%
rename from Imagedownloader/AndroidManifest.xml
rename to image-downloader/AndroidManifest.xml
diff --git a/Imagedownloader/gen/com/javatechig/droid/BuildConfig.java b/image-downloader/gen/com/javatechig/droid/BuildConfig.java
similarity index 100%
rename from Imagedownloader/gen/com/javatechig/droid/BuildConfig.java
rename to image-downloader/gen/com/javatechig/droid/BuildConfig.java
diff --git a/Imagedownloader/gen/com/javatechig/droid/R.java b/image-downloader/gen/com/javatechig/droid/R.java
similarity index 100%
rename from Imagedownloader/gen/com/javatechig/droid/R.java
rename to image-downloader/gen/com/javatechig/droid/R.java
diff --git a/Imagedownloader/ic_launcher-web.png b/image-downloader/ic_launcher-web.png
similarity index 100%
rename from Imagedownloader/ic_launcher-web.png
rename to image-downloader/ic_launcher-web.png
diff --git a/Imagedownloader/libs/android-support-v4.jar b/image-downloader/libs/android-support-v4.jar
similarity index 100%
rename from Imagedownloader/libs/android-support-v4.jar
rename to image-downloader/libs/android-support-v4.jar
diff --git a/WidgetDemo/proguard-project.txt b/image-downloader/proguard-project.txt
similarity index 100%
rename from WidgetDemo/proguard-project.txt
rename to image-downloader/proguard-project.txt
diff --git a/Imagedownloader/project.properties b/image-downloader/project.properties
similarity index 100%
rename from Imagedownloader/project.properties
rename to image-downloader/project.properties
diff --git a/Imagedownloader/res/drawable-hdpi/ic_launcher.png b/image-downloader/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from Imagedownloader/res/drawable-hdpi/ic_launcher.png
rename to image-downloader/res/drawable-hdpi/ic_launcher.png
diff --git a/Imagedownloader/res/drawable-mdpi/ic_launcher.png b/image-downloader/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from Imagedownloader/res/drawable-mdpi/ic_launcher.png
rename to image-downloader/res/drawable-mdpi/ic_launcher.png
diff --git a/Imagedownloader/res/drawable-xhdpi/ic_launcher.png b/image-downloader/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from Imagedownloader/res/drawable-xhdpi/ic_launcher.png
rename to image-downloader/res/drawable-xhdpi/ic_launcher.png
diff --git a/Imagedownloader/res/drawable-xxhdpi/ic_launcher.png b/image-downloader/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from Imagedownloader/res/drawable-xxhdpi/ic_launcher.png
rename to image-downloader/res/drawable-xxhdpi/ic_launcher.png
diff --git a/Imagedownloader/res/drawable/airport.png b/image-downloader/res/drawable/airport.png
similarity index 100%
rename from Imagedownloader/res/drawable/airport.png
rename to image-downloader/res/drawable/airport.png
diff --git a/Imagedownloader/res/drawable/arr.png b/image-downloader/res/drawable/arr.png
similarity index 100%
rename from Imagedownloader/res/drawable/arr.png
rename to image-downloader/res/drawable/arr.png
diff --git a/Imagedownloader/res/drawable/bachground.png b/image-downloader/res/drawable/bachground.png
similarity index 100%
rename from Imagedownloader/res/drawable/bachground.png
rename to image-downloader/res/drawable/bachground.png
diff --git a/Imagedownloader/res/drawable/block.jpg b/image-downloader/res/drawable/block.jpg
similarity index 100%
rename from Imagedownloader/res/drawable/block.jpg
rename to image-downloader/res/drawable/block.jpg
diff --git a/Imagedownloader/res/drawable/cars.png b/image-downloader/res/drawable/cars.png
similarity index 100%
rename from Imagedownloader/res/drawable/cars.png
rename to image-downloader/res/drawable/cars.png
diff --git a/Imagedownloader/res/drawable/cht.png b/image-downloader/res/drawable/cht.png
similarity index 100%
rename from Imagedownloader/res/drawable/cht.png
rename to image-downloader/res/drawable/cht.png
diff --git a/Imagedownloader/res/drawable/fees.png b/image-downloader/res/drawable/fees.png
similarity index 100%
rename from Imagedownloader/res/drawable/fees.png
rename to image-downloader/res/drawable/fees.png
diff --git a/Imagedownloader/res/drawable/flight.png b/image-downloader/res/drawable/flight.png
similarity index 100%
rename from Imagedownloader/res/drawable/flight.png
rename to image-downloader/res/drawable/flight.png
diff --git a/Imagedownloader/res/drawable/hotels.png b/image-downloader/res/drawable/hotels.png
similarity index 100%
rename from Imagedownloader/res/drawable/hotels.png
rename to image-downloader/res/drawable/hotels.png
diff --git a/Imagedownloader/res/drawable/list.png b/image-downloader/res/drawable/list.png
similarity index 100%
rename from Imagedownloader/res/drawable/list.png
rename to image-downloader/res/drawable/list.png
diff --git a/Imagedownloader/res/drawable/mention.png b/image-downloader/res/drawable/mention.png
similarity index 100%
rename from Imagedownloader/res/drawable/mention.png
rename to image-downloader/res/drawable/mention.png
diff --git a/Imagedownloader/res/drawable/message.png b/image-downloader/res/drawable/message.png
similarity index 100%
rename from Imagedownloader/res/drawable/message.png
rename to image-downloader/res/drawable/message.png
diff --git a/Imagedownloader/res/drawable/myprofile.png b/image-downloader/res/drawable/myprofile.png
similarity index 100%
rename from Imagedownloader/res/drawable/myprofile.png
rename to image-downloader/res/drawable/myprofile.png
diff --git a/Imagedownloader/res/drawable/prof1.jpg b/image-downloader/res/drawable/prof1.jpg
similarity index 100%
rename from Imagedownloader/res/drawable/prof1.jpg
rename to image-downloader/res/drawable/prof1.jpg
diff --git a/Imagedownloader/res/drawable/retweets.png b/image-downloader/res/drawable/retweets.png
similarity index 100%
rename from Imagedownloader/res/drawable/retweets.png
rename to image-downloader/res/drawable/retweets.png
diff --git a/Imagedownloader/res/drawable/search2.png b/image-downloader/res/drawable/search2.png
similarity index 100%
rename from Imagedownloader/res/drawable/search2.png
rename to image-downloader/res/drawable/search2.png
diff --git a/Imagedownloader/res/drawable/srch.png b/image-downloader/res/drawable/srch.png
similarity index 100%
rename from Imagedownloader/res/drawable/srch.png
rename to image-downloader/res/drawable/srch.png
diff --git a/Imagedownloader/res/drawable/status.png b/image-downloader/res/drawable/status.png
similarity index 100%
rename from Imagedownloader/res/drawable/status.png
rename to image-downloader/res/drawable/status.png
diff --git a/Imagedownloader/res/drawable/telephone.jpg b/image-downloader/res/drawable/telephone.jpg
similarity index 100%
rename from Imagedownloader/res/drawable/telephone.jpg
rename to image-downloader/res/drawable/telephone.jpg
diff --git a/Imagedownloader/res/drawable/trends.png b/image-downloader/res/drawable/trends.png
similarity index 100%
rename from Imagedownloader/res/drawable/trends.png
rename to image-downloader/res/drawable/trends.png
diff --git a/Imagedownloader/res/drawable/trips.png b/image-downloader/res/drawable/trips.png
similarity index 100%
rename from Imagedownloader/res/drawable/trips.png
rename to image-downloader/res/drawable/trips.png
diff --git a/Imagedownloader/res/drawable/tweeter.png b/image-downloader/res/drawable/tweeter.png
similarity index 100%
rename from Imagedownloader/res/drawable/tweeter.png
rename to image-downloader/res/drawable/tweeter.png
diff --git a/Imagedownloader/res/drawable/tweets.png b/image-downloader/res/drawable/tweets.png
similarity index 100%
rename from Imagedownloader/res/drawable/tweets.png
rename to image-downloader/res/drawable/tweets.png
diff --git a/Imagedownloader/res/drawable/twitterlogo.png b/image-downloader/res/drawable/twitterlogo.png
similarity index 100%
rename from Imagedownloader/res/drawable/twitterlogo.png
rename to image-downloader/res/drawable/twitterlogo.png
diff --git a/Imagedownloader/res/drawable/twts.jpg b/image-downloader/res/drawable/twts.jpg
similarity index 100%
rename from Imagedownloader/res/drawable/twts.jpg
rename to image-downloader/res/drawable/twts.jpg
diff --git a/Imagedownloader/res/layout/asynch.xml b/image-downloader/res/layout/asynch.xml
similarity index 100%
rename from Imagedownloader/res/layout/asynch.xml
rename to image-downloader/res/layout/asynch.xml
diff --git a/Imagedownloader/res/menu/main.xml b/image-downloader/res/menu/main.xml
similarity index 100%
rename from Imagedownloader/res/menu/main.xml
rename to image-downloader/res/menu/main.xml
diff --git a/Imagedownloader/res/values-sw600dp/dimens.xml b/image-downloader/res/values-sw600dp/dimens.xml
similarity index 100%
rename from Imagedownloader/res/values-sw600dp/dimens.xml
rename to image-downloader/res/values-sw600dp/dimens.xml
diff --git a/Imagedownloader/res/values-sw720dp-land/dimens.xml b/image-downloader/res/values-sw720dp-land/dimens.xml
similarity index 100%
rename from Imagedownloader/res/values-sw720dp-land/dimens.xml
rename to image-downloader/res/values-sw720dp-land/dimens.xml
diff --git a/Imagedownloader/res/values/dimens.xml b/image-downloader/res/values/dimens.xml
similarity index 100%
rename from Imagedownloader/res/values/dimens.xml
rename to image-downloader/res/values/dimens.xml
diff --git a/Imagedownloader/res/values/strings.xml b/image-downloader/res/values/strings.xml
similarity index 100%
rename from Imagedownloader/res/values/strings.xml
rename to image-downloader/res/values/strings.xml
diff --git a/WidgetDemo/res/values/styles.xml b/image-downloader/res/values/styles.xml
similarity index 100%
rename from WidgetDemo/res/values/styles.xml
rename to image-downloader/res/values/styles.xml
diff --git a/Imagedownloader/src/com/javatechig/droid/ImageDownladerActivity.java b/image-downloader/src/com/javatechig/droid/ImageDownladerActivity.java
similarity index 100%
rename from Imagedownloader/src/com/javatechig/droid/ImageDownladerActivity.java
rename to image-downloader/src/com/javatechig/droid/ImageDownladerActivity.java