diff --git a/HiroApp/.classpath b/HiroApp/.classpath index 7bc01d9..5176974 100644 --- a/HiroApp/.classpath +++ b/HiroApp/.classpath @@ -1,9 +1,9 @@ - - + + diff --git a/HiroApp/.idea/.name b/HiroApp/.idea/.name new file mode 100644 index 0000000..eefe066 --- /dev/null +++ b/HiroApp/.idea/.name @@ -0,0 +1 @@ +HiroApp \ No newline at end of file diff --git a/HiroApp/.idea/HiroApp.iml b/HiroApp/.idea/HiroApp.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/HiroApp/.idea/HiroApp.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/HiroApp/.idea/compiler.xml b/HiroApp/.idea/compiler.xml new file mode 100644 index 0000000..96cc43e --- /dev/null +++ b/HiroApp/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HiroApp/.idea/copyright/profiles_settings.xml b/HiroApp/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/HiroApp/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/HiroApp/.idea/misc.xml b/HiroApp/.idea/misc.xml new file mode 100644 index 0000000..1c46dd7 --- /dev/null +++ b/HiroApp/.idea/misc.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HiroApp/.idea/modules.xml b/HiroApp/.idea/modules.xml new file mode 100644 index 0000000..22f6d84 --- /dev/null +++ b/HiroApp/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/HiroApp/.idea/vcs.xml b/HiroApp/.idea/vcs.xml new file mode 100644 index 0000000..45cf85c --- /dev/null +++ b/HiroApp/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/HiroApp/.idea/workspace.xml b/HiroApp/.idea/workspace.xml new file mode 100644 index 0000000..2ca25bd --- /dev/null +++ b/HiroApp/.idea/workspace.xml @@ -0,0 +1,299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + C:\Users\matias\AppData\Roaming\Subversion + 125 + + + + + + + + + 1432315287141 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HiroApp/AndroidManifest.xml b/HiroApp/AndroidManifest.xml index e65046d..44f614d 100644 --- a/HiroApp/AndroidManifest.xml +++ b/HiroApp/AndroidManifest.xml @@ -1,7 +1,8 @@ + + android:versionCode="4" + android:versionName="1.8" > - + + + android:value="AIzaSyAqgihe1wcK2Mc8NXvSzrv1dmVlzKceW-Y" /> - - + + @@ -76,45 +78,45 @@ @@ -126,7 +128,23 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/HiroApp/assets/fonts/Pacifico.ttf b/HiroApp/assets/fonts/Pacifico.ttf new file mode 100644 index 0000000..6d47cdc Binary files /dev/null and b/HiroApp/assets/fonts/Pacifico.ttf differ diff --git a/HiroApp/bin/AndroidManifest.xml b/HiroApp/bin/AndroidManifest.xml index e65046d..44f614d 100644 --- a/HiroApp/bin/AndroidManifest.xml +++ b/HiroApp/bin/AndroidManifest.xml @@ -1,7 +1,8 @@ + + android:versionCode="4" + android:versionName="1.8" > - + + + android:value="AIzaSyAqgihe1wcK2Mc8NXvSzrv1dmVlzKceW-Y" /> - - + + @@ -76,45 +78,45 @@ @@ -126,7 +128,23 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/HiroApp/bin/HiroApp.apk b/HiroApp/bin/HiroApp.apk new file mode 100644 index 0000000..a4a18f7 Binary files /dev/null and b/HiroApp/bin/HiroApp.apk differ diff --git a/HiroApp/bin/R.txt b/HiroApp/bin/R.txt index 731bd49..4ee5c56 100644 --- a/HiroApp/bin/R.txt +++ b/HiroApp/bin/R.txt @@ -2,62 +2,71 @@ int array ImageSelection 0x7f0a0000 int attr adSize 0x7f010000 int attr adSizes 0x7f010001 int attr adUnitId 0x7f010002 -int attr appTheme 0x7f010011 -int attr buyButtonAppearance 0x7f010018 -int attr buyButtonHeight 0x7f010015 -int attr buyButtonText 0x7f010017 -int attr buyButtonWidth 0x7f010016 -int attr cameraBearing 0x7f010004 -int attr cameraTargetLat 0x7f010005 -int attr cameraTargetLng 0x7f010006 -int attr cameraTilt 0x7f010007 -int attr cameraZoom 0x7f010008 -int attr environment 0x7f010012 -int attr fragmentMode 0x7f010014 -int attr fragmentStyle 0x7f010013 -int attr mapType 0x7f010003 -int attr maskedWalletDetailsBackground 0x7f01001b -int attr maskedWalletDetailsButtonBackground 0x7f01001d -int attr maskedWalletDetailsButtonTextAppearance 0x7f01001c -int attr maskedWalletDetailsHeaderTextAppearance 0x7f01001a -int attr maskedWalletDetailsLogoImageType 0x7f01001f -int attr maskedWalletDetailsLogoTextColor 0x7f01001e -int attr maskedWalletDetailsTextAppearance 0x7f010019 -int attr uiCompass 0x7f010009 -int attr uiRotateGestures 0x7f01000a -int attr uiScrollGestures 0x7f01000b -int attr uiTiltGestures 0x7f01000c -int attr uiZoomControls 0x7f01000d -int attr uiZoomGestures 0x7f01000e -int attr useViewLifecycle 0x7f01000f -int attr zOrderOnTop 0x7f010010 -int color common_action_bar_splitter 0x7f070009 -int color common_signin_btn_dark_text_default 0x7f070000 -int color common_signin_btn_dark_text_disabled 0x7f070002 -int color common_signin_btn_dark_text_focused 0x7f070003 -int color common_signin_btn_dark_text_pressed 0x7f070001 -int color common_signin_btn_default_background 0x7f070008 -int color common_signin_btn_light_text_default 0x7f070004 -int color common_signin_btn_light_text_disabled 0x7f070006 -int color common_signin_btn_light_text_focused 0x7f070007 -int color common_signin_btn_light_text_pressed 0x7f070005 -int color common_signin_btn_text_dark 0x7f070017 -int color common_signin_btn_text_light 0x7f070018 -int color wallet_bright_foreground_disabled_holo_light 0x7f07000f -int color wallet_bright_foreground_holo_dark 0x7f07000a -int color wallet_bright_foreground_holo_light 0x7f070010 -int color wallet_dim_foreground_disabled_holo_dark 0x7f07000c -int color wallet_dim_foreground_holo_dark 0x7f07000b -int color wallet_dim_foreground_inverse_disabled_holo_dark 0x7f07000e -int color wallet_dim_foreground_inverse_holo_dark 0x7f07000d -int color wallet_highlighted_text_holo_dark 0x7f070014 -int color wallet_highlighted_text_holo_light 0x7f070013 -int color wallet_hint_foreground_holo_dark 0x7f070012 -int color wallet_hint_foreground_holo_light 0x7f070011 -int color wallet_holo_blue_light 0x7f070015 -int color wallet_link_text_light 0x7f070016 -int color wallet_primary_text_holo_light 0x7f070019 -int color wallet_secondary_text_holo_dark 0x7f07001a +int attr appTheme 0x7f010016 +int attr buyButtonAppearance 0x7f01001d +int attr buyButtonHeight 0x7f01001a +int attr buyButtonText 0x7f01001c +int attr buyButtonWidth 0x7f01001b +int attr cameraBearing 0x7f010007 +int attr cameraTargetLat 0x7f010008 +int attr cameraTargetLng 0x7f010009 +int attr cameraTilt 0x7f01000a +int attr cameraZoom 0x7f01000b +int attr circleCrop 0x7f010005 +int attr environment 0x7f010017 +int attr fragmentMode 0x7f010019 +int attr fragmentStyle 0x7f010018 +int attr imageAspectRatio 0x7f010004 +int attr imageAspectRatioAdjust 0x7f010003 +int attr liteMode 0x7f01000c +int attr mapType 0x7f010006 +int attr maskedWalletDetailsBackground 0x7f010020 +int attr maskedWalletDetailsButtonBackground 0x7f010022 +int attr maskedWalletDetailsButtonTextAppearance 0x7f010021 +int attr maskedWalletDetailsHeaderTextAppearance 0x7f01001f +int attr maskedWalletDetailsLogoImageType 0x7f010024 +int attr maskedWalletDetailsLogoTextColor 0x7f010023 +int attr maskedWalletDetailsTextAppearance 0x7f01001e +int attr metaButtonBarButtonStyle 0x7f010027 +int attr metaButtonBarStyle 0x7f010026 +int attr uiCompass 0x7f01000d +int attr uiMapToolbar 0x7f010015 +int attr uiRotateGestures 0x7f01000e +int attr uiScrollGestures 0x7f01000f +int attr uiTiltGestures 0x7f010010 +int attr uiZoomControls 0x7f010011 +int attr uiZoomGestures 0x7f010012 +int attr useViewLifecycle 0x7f010013 +int attr windowTransitionStyle 0x7f010025 +int attr zOrderOnTop 0x7f010014 +int color black_overlay 0x7f080017 +int color common_action_bar_splitter 0x7f080009 +int color common_signin_btn_dark_text_default 0x7f080000 +int color common_signin_btn_dark_text_disabled 0x7f080002 +int color common_signin_btn_dark_text_focused 0x7f080003 +int color common_signin_btn_dark_text_pressed 0x7f080001 +int color common_signin_btn_default_background 0x7f080008 +int color common_signin_btn_light_text_default 0x7f080004 +int color common_signin_btn_light_text_disabled 0x7f080006 +int color common_signin_btn_light_text_focused 0x7f080007 +int color common_signin_btn_light_text_pressed 0x7f080005 +int color common_signin_btn_text_dark 0x7f080018 +int color common_signin_btn_text_light 0x7f080019 +int color wallet_bright_foreground_disabled_holo_light 0x7f08000f +int color wallet_bright_foreground_holo_dark 0x7f08000a +int color wallet_bright_foreground_holo_light 0x7f080010 +int color wallet_dim_foreground_disabled_holo_dark 0x7f08000c +int color wallet_dim_foreground_holo_dark 0x7f08000b +int color wallet_dim_foreground_inverse_disabled_holo_dark 0x7f08000e +int color wallet_dim_foreground_inverse_holo_dark 0x7f08000d +int color wallet_highlighted_text_holo_dark 0x7f080014 +int color wallet_highlighted_text_holo_light 0x7f080013 +int color wallet_hint_foreground_holo_dark 0x7f080012 +int color wallet_hint_foreground_holo_light 0x7f080011 +int color wallet_holo_blue_light 0x7f080015 +int color wallet_link_text_light 0x7f080016 +int color wallet_primary_text_holo_light 0x7f08001a +int color wallet_secondary_text_holo_dark 0x7f08001b int drawable add_a 0x7f020000 int drawable add_n 0x7f020001 int drawable addnew 0x7f020002 @@ -76,190 +85,204 @@ int drawable buzzer_a1 0x7f02000e int drawable buzzer_a2 0x7f02000f int drawable buzzer_i 0x7f020010 int drawable buzzer_n 0x7f020011 -int drawable checkbox_selector 0x7f020012 -int drawable checkmark_a 0x7f020013 -int drawable checkmark_n 0x7f020014 -int drawable common_full_open_on_phone 0x7f020015 -int drawable common_ic_googleplayservices 0x7f020016 -int drawable common_signin_btn_icon_dark 0x7f020017 -int drawable common_signin_btn_icon_disabled_dark 0x7f020018 -int drawable common_signin_btn_icon_disabled_focus_dark 0x7f020019 -int drawable common_signin_btn_icon_disabled_focus_light 0x7f02001a -int drawable common_signin_btn_icon_disabled_light 0x7f02001b -int drawable common_signin_btn_icon_focus_dark 0x7f02001c -int drawable common_signin_btn_icon_focus_light 0x7f02001d -int drawable common_signin_btn_icon_light 0x7f02001e -int drawable common_signin_btn_icon_normal_dark 0x7f02001f -int drawable common_signin_btn_icon_normal_light 0x7f020020 -int drawable common_signin_btn_icon_pressed_dark 0x7f020021 -int drawable common_signin_btn_icon_pressed_light 0x7f020022 -int drawable common_signin_btn_text_dark 0x7f020023 -int drawable common_signin_btn_text_disabled_dark 0x7f020024 -int drawable common_signin_btn_text_disabled_focus_dark 0x7f020025 -int drawable common_signin_btn_text_disabled_focus_light 0x7f020026 -int drawable common_signin_btn_text_disabled_light 0x7f020027 -int drawable common_signin_btn_text_focus_dark 0x7f020028 -int drawable common_signin_btn_text_focus_light 0x7f020029 -int drawable common_signin_btn_text_light 0x7f02002a -int drawable common_signin_btn_text_normal_dark 0x7f02002b -int drawable common_signin_btn_text_normal_light 0x7f02002c -int drawable common_signin_btn_text_pressed_dark 0x7f02002d -int drawable common_signin_btn_text_pressed_light 0x7f02002e -int drawable enable_selector 0x7f02002f -int drawable forwardarrow_a 0x7f020030 -int drawable forwardarrow_n 0x7f020031 -int drawable frame 0x7f020032 -int drawable gps_button_selector 0x7f020033 -int drawable ic_launcher 0x7f020034 -int drawable ic_plusone_medium_off_client 0x7f020035 -int drawable ic_plusone_small_off_client 0x7f020036 -int drawable ic_plusone_standard_off_client 0x7f020037 -int drawable ic_plusone_tall_off_client 0x7f020038 -int drawable infobutton_a 0x7f020039 -int drawable infobutton_n 0x7f02003a -int drawable location_a 0x7f02003b -int drawable location_i 0x7f02003c -int drawable location_n 0x7f02003d -int drawable mapround 0x7f02003e -int drawable mild_high_selector 0x7f02003f -int drawable notification_icon 0x7f020040 -int drawable oval 0x7f020041 -int drawable powered_by_google_dark 0x7f020042 -int drawable powered_by_google_light 0x7f020043 -int drawable removewifi 0x7f020044 -int drawable settings_a 0x7f020045 -int drawable settings_button_selector 0x7f020046 -int drawable settings_i 0x7f020047 -int drawable settings_n 0x7f020048 -int drawable shape_rounded 0x7f020049 -int drawable signal_i 0x7f02004a -int drawable signal_n0 0x7f02004b -int drawable signal_n1 0x7f02004c -int drawable signal_n2 0x7f02004d -int drawable signal_n3 0x7f02004e -int drawable splashscreen 0x7f02004f -int drawable square 0x7f020050 -int drawable sw_disable 0x7f020051 -int drawable sw_enable 0x7f020052 -int drawable sw_high 0x7f020053 -int drawable sw_mild 0x7f020054 -int drawable volume_button_selector 0x7f020055 -int drawable wifisafeicon 0x7f020056 -int id Settings_img_info 0x7f08005a -int id Settings_relbottom 0x7f08005b -int id Settings_reltop 0x7f080059 -int id Settings_title 0x7f080036 -int id Settings_txt_bottom 0x7f08005c -int id Settings_txt_defaultring 0x7f080061 -int id Settings_txt_defaultring_for_phone 0x7f080064 -int id blah1 0x7f080029 -int id blah2 0x7f08002a -int id book_now 0x7f080010 -int id btnsenddata 0x7f08001a -int id buyButton 0x7f08000a -int id buy_now 0x7f08000f -int id buy_with_google 0x7f08000e -int id classic 0x7f080011 -int id delete 0x7f080065 -int id device_address 0x7f080048 -int id device_name 0x7f080047 -int id device_transmissionpower 0x7f08004a -int id device_uuid 0x7f080049 -int id devicelist_default_imageMain 0x7f080021 -int id devicelist_default_img_battery 0x7f080023 -int id devicelist_default_img_location 0x7f080028 -int id devicelist_default_img_rssi 0x7f080027 -int id devicelist_default_img_settings 0x7f080024 -int id devicelist_default_img_sound 0x7f080026 -int id devicelist_default_rel_imageMain 0x7f080020 -int id devicelist_default_relmain 0x7f08001f -int id devicelist_default_txt_Name 0x7f080022 -int id devicelist_default_view 0x7f080025 -int id dlg_logical_name_btn_OK 0x7f08002c -int id dlg_logical_name_edt_lname 0x7f08002b -int id edtmessage 0x7f080017 -int id edtname 0x7f080015 -int id grayscale 0x7f080012 -int id holo_dark 0x7f080005 -int id holo_light 0x7f080006 -int id hybrid 0x7f080004 -int id imageView1 0x7f080037 -int id imgaddnewdevice 0x7f08004d -int id imgaddwifizone 0x7f08004c -int id imgback 0x7f080066 -int id inflate_device_imageMain 0x7f08002e -int id inflate_device_img_battery 0x7f080030 -int id inflate_device_img_location 0x7f080033 -int id inflate_device_img_rssi 0x7f080032 -int id inflate_device_img_settings 0x7f080035 -int id inflate_device_img_sound 0x7f080031 -int id inflate_device_rel_imageMain 0x7f08002d -int id inflate_device_txt_Name 0x7f08002f -int id inflate_device_view 0x7f080034 -int id iv_icon 0x7f08001b -int id listView1 0x7f08004f -int id lstscanning 0x7f080058 -int id mainscreen_title 0x7f08004e -int id mao_reltop 0x7f080050 -int id map 0x7f080052 -int id map_title 0x7f080051 -int id match_parent 0x7f08000c -int id monochrome 0x7f080013 -int id none 0x7f080000 -int id normal 0x7f080001 -int id production 0x7f080007 -int id progressbar 0x7f080056 -int id rel_header1 0x7f08004b -int id sandbox 0x7f080008 -int id satellite 0x7f080002 -int id scrollView1 0x7f080038 -int id selectionDetails 0x7f08000b -int id settings_chk_heroalert 0x7f080062 -int id settings_chk_phonesound 0x7f080060 -int id settings_chk_pushnotification 0x7f08005f -int id settings_sw_battery 0x7f08005e -int id settings_sw_beepvolume 0x7f08005d -int id settings_sw_heroalert 0x7f080063 -int id spntransmissionpower 0x7f080019 -int id strict_sandbox 0x7f080009 -int id terrain 0x7f080003 -int id textView1 0x7f080039 -int id textView10 0x7f080042 -int id textView11 0x7f080043 -int id textView12 0x7f080044 -int id textView13 0x7f080045 -int id textView14 0x7f080046 -int id textView2 0x7f08003a -int id textView3 0x7f08003b -int id textView4 0x7f08003c -int id textView5 0x7f08003d -int id textView6 0x7f08003e -int id textView7 0x7f08003f -int id textView8 0x7f080040 -int id textView9 0x7f080041 -int id titlelinear 0x7f080055 -int id titlerelative 0x7f080053 -int id tv_name 0x7f08001c -int id txtmsg 0x7f080016 -int id txtname 0x7f080014 -int id txtpowersetting 0x7f080018 -int id txtscan 0x7f080057 -int id txttitle 0x7f080054 -int id wifisafezoineinformation_title 0x7f080067 -int id wifisafezoneinfoscreen_lnr_info 0x7f080068 -int id wifisafezoneinfoscreen_txt_header 0x7f080069 -int id wifisafezoneinfoscreen_txt_infodetails 0x7f08006a -int id wifisafezones_img_addwifi 0x7f08001d -int id wifisafezones_img_greyline 0x7f080070 -int id wifisafezones_img_wifistregnth 0x7f08006f -int id wifisafezones_imgwifiinfo 0x7f08006b -int id wifisafezones_lnr_wifi 0x7f08006d -int id wifisafezones_lst_listwifi 0x7f080072 -int id wifisafezones_selected_wifi 0x7f080071 -int id wifisafezones_title 0x7f08006c -int id wifisafezones_txt_currentwifi 0x7f08001e -int id wifisafezones_txt_header 0x7f08006e -int id wrap_content 0x7f08000d +int drawable cast_ic_notification_0 0x7f020012 +int drawable cast_ic_notification_1 0x7f020013 +int drawable cast_ic_notification_2 0x7f020014 +int drawable cast_ic_notification_connecting 0x7f020015 +int drawable cast_ic_notification_on 0x7f020016 +int drawable checkbox_selector 0x7f020017 +int drawable checkmark_a 0x7f020018 +int drawable checkmark_n 0x7f020019 +int drawable common_full_open_on_phone 0x7f02001a +int drawable common_ic_googleplayservices 0x7f02001b +int drawable common_signin_btn_icon_dark 0x7f02001c +int drawable common_signin_btn_icon_disabled_dark 0x7f02001d +int drawable common_signin_btn_icon_disabled_focus_dark 0x7f02001e +int drawable common_signin_btn_icon_disabled_focus_light 0x7f02001f +int drawable common_signin_btn_icon_disabled_light 0x7f020020 +int drawable common_signin_btn_icon_focus_dark 0x7f020021 +int drawable common_signin_btn_icon_focus_light 0x7f020022 +int drawable common_signin_btn_icon_light 0x7f020023 +int drawable common_signin_btn_icon_normal_dark 0x7f020024 +int drawable common_signin_btn_icon_normal_light 0x7f020025 +int drawable common_signin_btn_icon_pressed_dark 0x7f020026 +int drawable common_signin_btn_icon_pressed_light 0x7f020027 +int drawable common_signin_btn_text_dark 0x7f020028 +int drawable common_signin_btn_text_disabled_dark 0x7f020029 +int drawable common_signin_btn_text_disabled_focus_dark 0x7f02002a +int drawable common_signin_btn_text_disabled_focus_light 0x7f02002b +int drawable common_signin_btn_text_disabled_light 0x7f02002c +int drawable common_signin_btn_text_focus_dark 0x7f02002d +int drawable common_signin_btn_text_focus_light 0x7f02002e +int drawable common_signin_btn_text_light 0x7f02002f +int drawable common_signin_btn_text_normal_dark 0x7f020030 +int drawable common_signin_btn_text_normal_light 0x7f020031 +int drawable common_signin_btn_text_pressed_dark 0x7f020032 +int drawable common_signin_btn_text_pressed_light 0x7f020033 +int drawable enable_selector 0x7f020034 +int drawable forwardarrow_a 0x7f020035 +int drawable forwardarrow_n 0x7f020036 +int drawable frame 0x7f020037 +int drawable gps_button_selector 0x7f020038 +int drawable ic_launcher 0x7f020039 +int drawable ic_plusone_medium_off_client 0x7f02003a +int drawable ic_plusone_small_off_client 0x7f02003b +int drawable ic_plusone_standard_off_client 0x7f02003c +int drawable ic_plusone_tall_off_client 0x7f02003d +int drawable infobutton_a 0x7f02003e +int drawable infobutton_n 0x7f02003f +int drawable location_a 0x7f020040 +int drawable location_i 0x7f020041 +int drawable location_n 0x7f020042 +int drawable mapround 0x7f020043 +int drawable mild_high_selector 0x7f020044 +int drawable notification_icon 0x7f020045 +int drawable oval 0x7f020046 +int drawable powered_by_google_dark 0x7f020047 +int drawable powered_by_google_light 0x7f020048 +int drawable removewifi 0x7f020049 +int drawable settings_a 0x7f02004a +int drawable settings_button_selector 0x7f02004b +int drawable settings_i 0x7f02004c +int drawable settings_n 0x7f02004d +int drawable shape_rounded 0x7f02004e +int drawable signal_i 0x7f02004f +int drawable signal_n0 0x7f020050 +int drawable signal_n1 0x7f020051 +int drawable signal_n2 0x7f020052 +int drawable signal_n3 0x7f020053 +int drawable splashscreen 0x7f020054 +int drawable square 0x7f020055 +int drawable stopsound 0x7f020056 +int drawable sw_disable 0x7f020057 +int drawable sw_enable 0x7f020058 +int drawable sw_high 0x7f020059 +int drawable sw_mild 0x7f02005a +int drawable volume_button_selector 0x7f02005b +int drawable wifisafeicon 0x7f02005c +int id Settings_img_info 0x7f070060 +int id Settings_relbottom 0x7f070061 +int id Settings_reltop 0x7f07005f +int id Settings_title 0x7f07003c +int id Settings_txt_bottom 0x7f070062 +int id Settings_txt_defaultring 0x7f070067 +int id Settings_txt_defaultring_for_phone 0x7f07006a +int id adjust_height 0x7f070001 +int id adjust_width 0x7f070002 +int id blah1 0x7f07002f +int id blah2 0x7f070030 +int id book_now 0x7f070012 +int id btnsenddata 0x7f070020 +int id buyButton 0x7f07000e +int id buy_now 0x7f070013 +int id buy_with_google 0x7f070014 +int id cast_notification_id 0x7f070000 +int id classic 0x7f070016 +int id delete 0x7f07006b +int id device_address 0x7f07004e +int id device_name 0x7f07004d +int id device_transmissionpower 0x7f070050 +int id device_uuid 0x7f07004f +int id devicelist_default_imageMain 0x7f070027 +int id devicelist_default_img_battery 0x7f070029 +int id devicelist_default_img_location 0x7f07002e +int id devicelist_default_img_rssi 0x7f07002d +int id devicelist_default_img_settings 0x7f07002a +int id devicelist_default_img_sound 0x7f07002c +int id devicelist_default_rel_imageMain 0x7f070026 +int id devicelist_default_relmain 0x7f070025 +int id devicelist_default_txt_Name 0x7f070028 +int id devicelist_default_view 0x7f07002b +int id dlg_logical_name_btn_OK 0x7f070032 +int id dlg_logical_name_edt_lname 0x7f070031 +int id donate_with_google 0x7f070015 +int id dummy_button 0x7f07006d +int id edtmessage 0x7f07001d +int id edtname 0x7f07001b +int id fullscreen_content_controls 0x7f07006c +int id grayscale 0x7f070017 +int id holo_dark 0x7f070008 +int id holo_light 0x7f070009 +int id hybrid 0x7f070004 +int id imageView1 0x7f07003d +int id imgaddnewdevice 0x7f070053 +int id imgaddwifizone 0x7f070052 +int id imgback 0x7f07006e +int id inflate_device_imageMain 0x7f070034 +int id inflate_device_img_battery 0x7f070036 +int id inflate_device_img_location 0x7f070039 +int id inflate_device_img_rssi 0x7f070038 +int id inflate_device_img_settings 0x7f07003b +int id inflate_device_img_sound 0x7f070037 +int id inflate_device_rel_imageMain 0x7f070033 +int id inflate_device_txt_Name 0x7f070035 +int id inflate_device_view 0x7f07003a +int id iv_icon 0x7f070021 +int id listView1 0x7f070055 +int id lstscanning 0x7f07005e +int id mainscreen_title 0x7f070054 +int id mao_reltop 0x7f070056 +int id map 0x7f070058 +int id map_title 0x7f070057 +int id match_parent 0x7f070010 +int id monochrome 0x7f070018 +int id none 0x7f070003 +int id normal 0x7f070005 +int id production 0x7f07000a +int id progressbar 0x7f07005c +int id rel_header1 0x7f070051 +int id sandbox 0x7f07000b +int id satellite 0x7f070006 +int id scrollView1 0x7f07003e +int id selectionDetails 0x7f07000f +int id settings_chk_heroalert 0x7f070068 +int id settings_chk_phonesound 0x7f070066 +int id settings_chk_pushnotification 0x7f070065 +int id settings_sw_battery 0x7f070064 +int id settings_sw_beepvolume 0x7f070063 +int id settings_sw_heroalert 0x7f070069 +int id slide 0x7f070019 +int id spntransmissionpower 0x7f07001f +int id strict_sandbox 0x7f07000c +int id terrain 0x7f070007 +int id test 0x7f07000d +int id textView1 0x7f07003f +int id textView10 0x7f070048 +int id textView11 0x7f070049 +int id textView12 0x7f07004a +int id textView13 0x7f07004b +int id textView14 0x7f07004c +int id textView2 0x7f070040 +int id textView3 0x7f070041 +int id textView4 0x7f070042 +int id textView5 0x7f070043 +int id textView6 0x7f070044 +int id textView7 0x7f070045 +int id textView8 0x7f070046 +int id textView9 0x7f070047 +int id titlelinear 0x7f07005b +int id titlerelative 0x7f070059 +int id tv_name 0x7f070022 +int id txtmsg 0x7f07001c +int id txtname 0x7f07001a +int id txtpowersetting 0x7f07001e +int id txtscan 0x7f07005d +int id txttitle 0x7f07005a +int id wifisafezoineinformation_title 0x7f07006f +int id wifisafezoneinfoscreen_lnr_info 0x7f070070 +int id wifisafezoneinfoscreen_txt_header 0x7f070071 +int id wifisafezoneinfoscreen_txt_infodetails 0x7f070072 +int id wifisafezones_img_addwifi 0x7f070023 +int id wifisafezones_img_greyline 0x7f070078 +int id wifisafezones_img_wifistregnth 0x7f070077 +int id wifisafezones_imgwifiinfo 0x7f070073 +int id wifisafezones_lnr_wifi 0x7f070075 +int id wifisafezones_lst_listwifi 0x7f07007a +int id wifisafezones_selected_wifi 0x7f070079 +int id wifisafezones_title 0x7f070074 +int id wifisafezones_txt_currentwifi 0x7f070024 +int id wifisafezones_txt_header 0x7f070076 +int id wrap_content 0x7f070011 int integer google_play_services_version 0x7f090000 int layout beacon_admin_layout 0x7f030000 int layout crop_selector 0x7f030001 @@ -271,66 +294,83 @@ int layout info 0x7f030006 int layout listitem_device 0x7f030007 int layout mainscreen 0x7f030008 int layout map 0x7f030009 -int layout scanscreen 0x7f03000a -int layout settings 0x7f03000b -int layout splashscreenlayout 0x7f03000c -int layout wifisafezoneinfoscreen 0x7f03000d -int layout wifisafezones 0x7f03000e +int layout mapround 0x7f03000a +int layout scanscreen 0x7f03000b +int layout settings 0x7f03000c +int layout splashscreenlayout 0x7f03000d +int layout stopsound 0x7f03000e +int layout wifisafezoneinfoscreen 0x7f03000f +int layout wifisafezones 0x7f030010 int raw connect 0x7f040000 int raw disconnect 0x7f040001 int raw error 0x7f040002 -int string Crop_error 0x7f06002e -int string DB_NAME 0x7f060024 -int string DB_PATH 0x7f060025 -int string FolderPath 0x7f06002d +int raw gtm_analytics 0x7f040003 +int string Crop_error 0x7f060037 +int string DB_NAME 0x7f06002d +int string DB_PATH 0x7f06002e +int string FolderPath 0x7f060036 int string accept 0x7f060002 -int string app_name 0x7f060023 -int string common_android_wear_notification_needs_update_text 0x7f060009 -int string common_android_wear_update_text 0x7f060016 -int string common_android_wear_update_title 0x7f060014 -int string common_google_play_services_enable_button 0x7f060012 -int string common_google_play_services_enable_text 0x7f060011 -int string common_google_play_services_enable_title 0x7f060010 -int string common_google_play_services_error_notification_requested_by_msg 0x7f06000b -int string common_google_play_services_install_button 0x7f06000f -int string common_google_play_services_install_text_phone 0x7f06000d -int string common_google_play_services_install_text_tablet 0x7f06000e -int string common_google_play_services_install_title 0x7f06000c -int string common_google_play_services_invalid_account_text 0x7f06001a -int string common_google_play_services_invalid_account_title 0x7f060019 -int string common_google_play_services_needs_enabling_title 0x7f06000a -int string common_google_play_services_network_error_text 0x7f060018 -int string common_google_play_services_network_error_title 0x7f060017 -int string common_google_play_services_notification_needs_installation_title 0x7f060007 -int string common_google_play_services_notification_needs_update_title 0x7f060008 -int string common_google_play_services_notification_ticker 0x7f060006 -int string common_google_play_services_unknown_issue 0x7f06001b -int string common_google_play_services_unsupported_text 0x7f06001d -int string common_google_play_services_unsupported_title 0x7f06001c -int string common_google_play_services_update_button 0x7f06001e -int string common_google_play_services_update_text 0x7f060015 -int string common_google_play_services_update_title 0x7f060013 -int string common_open_on_phone 0x7f060021 -int string common_signin_button_text 0x7f06001f -int string common_signin_button_text_long 0x7f060020 +int string app_name 0x7f06002c +int string auth_google_play_services_client_facebook_display_name 0x7f060007 +int string auth_google_play_services_client_google_display_name 0x7f060006 +int string cast_notification_connected_message 0x7f060009 +int string cast_notification_connecting_message 0x7f060008 +int string cast_notification_disconnect 0x7f06000a +int string common_android_wear_notification_needs_update_text 0x7f06000d +int string common_android_wear_update_text 0x7f06001a +int string common_android_wear_update_title 0x7f060018 +int string common_google_play_services_api_unavailable_text 0x7f060028 +int string common_google_play_services_enable_button 0x7f060016 +int string common_google_play_services_enable_text 0x7f060015 +int string common_google_play_services_enable_title 0x7f060014 +int string common_google_play_services_error_notification_requested_by_msg 0x7f06000f +int string common_google_play_services_install_button 0x7f060013 +int string common_google_play_services_install_text_phone 0x7f060011 +int string common_google_play_services_install_text_tablet 0x7f060012 +int string common_google_play_services_install_title 0x7f060010 +int string common_google_play_services_invalid_account_text 0x7f060020 +int string common_google_play_services_invalid_account_title 0x7f06001f +int string common_google_play_services_needs_enabling_title 0x7f06000e +int string common_google_play_services_network_error_text 0x7f06001e +int string common_google_play_services_network_error_title 0x7f06001d +int string common_google_play_services_notification_needs_update_title 0x7f06000c +int string common_google_play_services_notification_ticker 0x7f06000b +int string common_google_play_services_sign_in_failed_text 0x7f06002a +int string common_google_play_services_sign_in_failed_title 0x7f060029 +int string common_google_play_services_unknown_issue 0x7f060021 +int string common_google_play_services_unsupported_text 0x7f060023 +int string common_google_play_services_unsupported_title 0x7f060022 +int string common_google_play_services_update_button 0x7f060024 +int string common_google_play_services_update_text 0x7f060019 +int string common_google_play_services_update_title 0x7f060017 +int string common_google_play_services_updating_text 0x7f06001c +int string common_google_play_services_updating_title 0x7f06001b +int string common_open_on_phone 0x7f060027 +int string common_signin_button_text 0x7f060025 +int string common_signin_button_text_long 0x7f060026 int string create_calendar_message 0x7f060005 int string create_calendar_title 0x7f060004 int string decline 0x7f060003 -int string scanner 0x7f06002b -int string splashContentDescription 0x7f060026 +int string dummy_button 0x7f06003b +int string scanner 0x7f060034 +int string splashContentDescription 0x7f06002f int string store_picture_message 0x7f060001 int string store_picture_title 0x7f060000 -int string stradd_device 0x7f060027 -int string strcurrentwifi 0x7f060031 -int string strlogicalName 0x7f060029 -int string strlogicalNamemsg 0x7f060028 -int string strok 0x7f06002a -int string strstop 0x7f06002c -int string strwifidetails 0x7f060030 -int string strwifiheader 0x7f06002f -int string wallet_buy_button_place_holder 0x7f060022 +int string stradd_device 0x7f060030 +int string strcurrentwifi 0x7f06003a +int string strlogicalName 0x7f060032 +int string strlogicalNamemsg 0x7f060031 +int string strok 0x7f060033 +int string strstop 0x7f060035 +int string strwifidetails 0x7f060039 +int string strwifiheader 0x7f060038 +int string wallet_buy_button_place_holder 0x7f06002b int style AppBaseTheme 0x7f050005 int style AppTheme 0x7f050006 +int style ButtonBar 0x7f050008 +int style ButtonBarButton 0x7f050009 +int style FullscreenActionBarStyle 0x7f05000a +int style FullscreenTheme 0x7f050007 int style Theme_IAPTheme 0x7f050000 int style WalletFragmentDefaultButtonTextAppearance 0x7f050003 int style WalletFragmentDefaultDetailsHeaderTextAppearance 0x7f050002 @@ -340,27 +380,38 @@ int[] styleable AdsAttrs { 0x7f010000, 0x7f010001, 0x7f010002 } int styleable AdsAttrs_adSize 0 int styleable AdsAttrs_adSizes 1 int styleable AdsAttrs_adUnitId 2 -int[] styleable MapAttrs { 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010 } +int[] styleable ButtonBarContainerTheme { 0x7f010026, 0x7f010027 } +int styleable ButtonBarContainerTheme_metaButtonBarButtonStyle 1 +int styleable ButtonBarContainerTheme_metaButtonBarStyle 0 +int[] styleable CustomWalletTheme { 0x7f010025 } +int styleable CustomWalletTheme_windowTransitionStyle 0 +int[] styleable LoadingImageView { 0x7f010003, 0x7f010004, 0x7f010005 } +int styleable LoadingImageView_circleCrop 2 +int styleable LoadingImageView_imageAspectRatio 1 +int styleable LoadingImageView_imageAspectRatioAdjust 0 +int[] styleable MapAttrs { 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015 } int styleable MapAttrs_cameraBearing 1 int styleable MapAttrs_cameraTargetLat 2 int styleable MapAttrs_cameraTargetLng 3 int styleable MapAttrs_cameraTilt 4 int styleable MapAttrs_cameraZoom 5 +int styleable MapAttrs_liteMode 6 int styleable MapAttrs_mapType 0 -int styleable MapAttrs_uiCompass 6 -int styleable MapAttrs_uiRotateGestures 7 -int styleable MapAttrs_uiScrollGestures 8 -int styleable MapAttrs_uiTiltGestures 9 -int styleable MapAttrs_uiZoomControls 10 -int styleable MapAttrs_uiZoomGestures 11 -int styleable MapAttrs_useViewLifecycle 12 -int styleable MapAttrs_zOrderOnTop 13 -int[] styleable WalletFragmentOptions { 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014 } +int styleable MapAttrs_uiCompass 7 +int styleable MapAttrs_uiMapToolbar 15 +int styleable MapAttrs_uiRotateGestures 8 +int styleable MapAttrs_uiScrollGestures 9 +int styleable MapAttrs_uiTiltGestures 10 +int styleable MapAttrs_uiZoomControls 11 +int styleable MapAttrs_uiZoomGestures 12 +int styleable MapAttrs_useViewLifecycle 13 +int styleable MapAttrs_zOrderOnTop 14 +int[] styleable WalletFragmentOptions { 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019 } int styleable WalletFragmentOptions_appTheme 0 int styleable WalletFragmentOptions_environment 1 int styleable WalletFragmentOptions_fragmentMode 3 int styleable WalletFragmentOptions_fragmentStyle 2 -int[] styleable WalletFragmentStyle { 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f01001e, 0x7f01001f } +int[] styleable WalletFragmentStyle { 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f01001e, 0x7f01001f, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024 } int styleable WalletFragmentStyle_buyButtonAppearance 3 int styleable WalletFragmentStyle_buyButtonHeight 0 int styleable WalletFragmentStyle_buyButtonText 2 diff --git a/HiroApp/bin/classes.dex b/HiroApp/bin/classes.dex new file mode 100644 index 0000000..8130a66 Binary files /dev/null and b/HiroApp/bin/classes.dex differ diff --git a/HiroApp/bin/classes/.svn/all-wcprops b/HiroApp/bin/classes/.svn/all-wcprops new file mode 100644 index 0000000..9802888 --- /dev/null +++ b/HiroApp/bin/classes/.svn/all-wcprops @@ -0,0 +1,5 @@ +K 25 +svn:wc:ra_dav:version-url +V 50 +/svn/HeroApp_Android/!svn/ver/40/trunk/HeroApp/src +END diff --git a/HiroApp/bin/classes/.svn/entries b/HiroApp/bin/classes/.svn/entries new file mode 100644 index 0000000..cb7d6f4 --- /dev/null +++ b/HiroApp/bin/classes/.svn/entries @@ -0,0 +1,31 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src +https://xp-dev.com/svn/HeroApp_Android + + + +2015-02-07T11:42:35.315757Z +40 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +com +dir + diff --git a/HiroApp/bin/classes/com/.svn/all-wcprops b/HiroApp/bin/classes/com/.svn/all-wcprops new file mode 100644 index 0000000..a59bcf3 --- /dev/null +++ b/HiroApp/bin/classes/com/.svn/all-wcprops @@ -0,0 +1,5 @@ +K 25 +svn:wc:ra_dav:version-url +V 54 +/svn/HeroApp_Android/!svn/ver/40/trunk/HeroApp/src/com +END diff --git a/HiroApp/bin/classes/com/.svn/entries b/HiroApp/bin/classes/com/.svn/entries new file mode 100644 index 0000000..f199401 --- /dev/null +++ b/HiroApp/bin/classes/com/.svn/entries @@ -0,0 +1,31 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com +https://xp-dev.com/svn/HeroApp_Android + + + +2015-02-07T11:42:35.315757Z +40 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +hiroapp +dir + diff --git a/HiroApp/bin/classes/com/google/android/gms/R$attr.class b/HiroApp/bin/classes/com/google/android/gms/R$attr.class index 5f554f5..d7e9baa 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R$attr.class and b/HiroApp/bin/classes/com/google/android/gms/R$attr.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R$color.class b/HiroApp/bin/classes/com/google/android/gms/R$color.class index 3ea09c0..5de4af0 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R$color.class and b/HiroApp/bin/classes/com/google/android/gms/R$color.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R$drawable.class b/HiroApp/bin/classes/com/google/android/gms/R$drawable.class index d233145..206d799 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R$drawable.class and b/HiroApp/bin/classes/com/google/android/gms/R$drawable.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R$id.class b/HiroApp/bin/classes/com/google/android/gms/R$id.class index ad3f35d..4bf2cef 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R$id.class and b/HiroApp/bin/classes/com/google/android/gms/R$id.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R$integer.class b/HiroApp/bin/classes/com/google/android/gms/R$integer.class index 7336415..c5e267f 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R$integer.class and b/HiroApp/bin/classes/com/google/android/gms/R$integer.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R$raw.class b/HiroApp/bin/classes/com/google/android/gms/R$raw.class new file mode 100644 index 0000000..e6bca4b Binary files /dev/null and b/HiroApp/bin/classes/com/google/android/gms/R$raw.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R$string.class b/HiroApp/bin/classes/com/google/android/gms/R$string.class index 29c9ba9..df9c8ce 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R$string.class and b/HiroApp/bin/classes/com/google/android/gms/R$string.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R$style.class b/HiroApp/bin/classes/com/google/android/gms/R$style.class index 855fb2a..a0ccd69 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R$style.class and b/HiroApp/bin/classes/com/google/android/gms/R$style.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R$styleable.class b/HiroApp/bin/classes/com/google/android/gms/R$styleable.class index 0047913..510d40d 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R$styleable.class and b/HiroApp/bin/classes/com/google/android/gms/R$styleable.class differ diff --git a/HiroApp/bin/classes/com/google/android/gms/R.class b/HiroApp/bin/classes/com/google/android/gms/R.class index e66e269..f6fa3b3 100644 Binary files a/HiroApp/bin/classes/com/google/android/gms/R.class and b/HiroApp/bin/classes/com/google/android/gms/R.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/.svn/all-wcprops b/HiroApp/bin/classes/com/hiroapp/.svn/all-wcprops new file mode 100644 index 0000000..fdee4c1 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/.svn/all-wcprops @@ -0,0 +1,5 @@ +K 25 +svn:wc:ra_dav:version-url +V 62 +/svn/HeroApp_Android/!svn/ver/40/trunk/HeroApp/src/com/hiroapp +END diff --git a/HiroApp/bin/classes/com/hiroapp/.svn/entries b/HiroApp/bin/classes/com/hiroapp/.svn/entries new file mode 100644 index 0000000..ce99500 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/.svn/entries @@ -0,0 +1,49 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com/hiroapp +https://xp-dev.com/svn/HeroApp_Android + + + +2015-02-07T11:42:35.315757Z +40 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +adapter +dir + +common +dir + +dbhelper +dir + +font +dir + +main +dir + +model +dir + +scanservice +dir + diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/.svn/all-wcprops b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/all-wcprops new file mode 100644 index 0000000..6fa8e39 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/all-wcprops @@ -0,0 +1,23 @@ +K 25 +svn:wc:ra_dav:version-url +V 70 +/svn/HeroApp_Android/!svn/ver/39/trunk/HeroApp/src/com/hiroapp/adapter +END +CropOptionAdapter.java +K 25 +svn:wc:ra_dav:version-url +V 93 +/svn/HeroApp_Android/!svn/ver/27/trunk/HeroApp/src/com/hiroapp/adapter/CropOptionAdapter.java +END +ConnectedDeviceListAdapter.java +K 25 +svn:wc:ra_dav:version-url +V 102 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/adapter/ConnectedDeviceListAdapter.java +END +LeDeviceListAdapter.java +K 25 +svn:wc:ra_dav:version-url +V 95 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/adapter/LeDeviceListAdapter.java +END diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/.svn/entries b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/entries new file mode 100644 index 0000000..2d61f20 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/entries @@ -0,0 +1,130 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com/hiroapp/adapter +https://xp-dev.com/svn/HeroApp_Android + + + +2015-02-07T09:14:52.714821Z +39 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +ConnectedDeviceListAdapter.java +file +44 + + + +2015-02-16T06:07:32.000000Z +d2121c5538a48e5e02299239d687bdc4 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +14592 + +CropOptionAdapter.java +file + + + + +2015-02-07T09:21:25.000000Z +fc50c82354cc52a9da70db03c071d3ef +2015-01-23T05:55:20.586241Z +27 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +1262 + +LeDeviceListAdapter.java +file +44 + + + +2015-02-16T06:07:50.000000Z +28f8f81c5d54ee73bac28d1f93b65518 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +2890 + diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/ConnectedDeviceListAdapter.java.svn-base b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/ConnectedDeviceListAdapter.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/ConnectedDeviceListAdapter.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/CropOptionAdapter.java.svn-base b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/CropOptionAdapter.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/CropOptionAdapter.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/LeDeviceListAdapter.java.svn-base b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/LeDeviceListAdapter.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/prop-base/LeDeviceListAdapter.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/ConnectedDeviceListAdapter.java.svn-base b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/ConnectedDeviceListAdapter.java.svn-base new file mode 100644 index 0000000..0c1daf2 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/ConnectedDeviceListAdapter.java.svn-base @@ -0,0 +1,477 @@ +package com.hiroapp.adapter; + +import java.util.ArrayList; +import java.util.Timer; +import java.util.TimerTask; + +import android.content.Intent; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.util.Log; +import android.view.LayoutInflater; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.ImageView; +import android.widget.ListView; + +import com.hiroapp.common.BluetoothDeviceActor; +import com.hiroapp.dbhelper.DBHelper; +import com.hiroapp.font.OpenSansLight; +import com.hiroapp.main.HeroApp_App; +import com.hiroapp.main.MainActivity; +import com.hiroapp.main.MapActivity; +import com.hiroapp.main.R; +import com.hiroapp.main.SettingsActivity; +import com.hiroapp.model.DeviceInfoModel; + +public class ConnectedDeviceListAdapter extends BaseAdapter { + + private LayoutInflater layoutInflater; + private ArrayList listData; + private MainActivity mcontext; + private ListView listview; + private ViewHolder holder; + private Timer startbeepTimer; + private BeepFinishedTask beepfinishedTask; + + private ArrayList beepRunningList = null; + + private DBHelper dbhelper; + private HeroApp_App appStorage; + + public ConnectedDeviceListAdapter(MainActivity context, + ArrayList connectedDeviceList, ListView list) { + this.listData = connectedDeviceList; + mcontext = context; + listview = list; + layoutInflater = LayoutInflater.from(context); + beepRunningList = new ArrayList(); + appStorage = (HeroApp_App) context.getApplicationContext(); + dbhelper = appStorage.getDbhelper(); + } + + public void addDeviceTolist(final BluetoothDeviceActor Device) { + if (!listData.contains(Device)) { + if (listData != null && listData.size() > 0) { + for (int i = 0; i < listData.size(); i++) { + BluetoothDeviceActor bda = listData.get(i); + if (bda.getDevmodel() + .getDeviceMacAddress() + .equalsIgnoreCase( + Device.getDevmodel().getDeviceMacAddress())) { + listData.remove(bda); + mcontext.runOnUiThread(new Runnable() { + + @Override + public void run() { + // TODO Auto-generated method stub + notifyDataSetChanged(); + } + }); + + } + } + } + listData.add(Device); + mcontext.runOnUiThread(new Runnable() { + + @Override + public void run() { + // TODO Auto-generated method stub + notifyDataSetChanged(); + } + }); + + } else { + + if (listData.contains(Device)) { + mcontext.runOnUiThread(new Runnable() { + + @Override + public void run() { + View v2 = null; + + // TODO Auto-generated method stub + int index = listData.indexOf(Device); + v2 = listview.getChildAt(index + - listview.getFirstVisiblePosition()); + ImageView i = (ImageView) v2 + .findViewById(R.id.inflate_device_img_sound); + + i.setImageResource(R.drawable.buzzer_n); + i.setClickable(true); + + updateBattery(Device); + updateRssi(Device); + + listview.invalidate(); + + } + }); + + } + + } + } + + + public void removeDeviceFromlist(BluetoothDeviceActor Device) { + if (listData.contains(Device)) { + int index = listData.indexOf(Device); + listData.remove(index); + } + } + + public void updateRssi(BluetoothDeviceActor Device) { + + if (listData.contains(Device)) { + int index = listData.indexOf(Device); + BluetoothDeviceActor bda = listData.get(index); + bda.setAverageRSSI(Device.getAverageRSSI()); + + View v = null; + // for (int i = 0; i < listview.getChildCount(); i++) { + v = listview.getChildAt(index - listview.getFirstVisiblePosition()); + // } + + if (v != null) { + ImageView rssi = (ImageView) v + .findViewById(R.id.inflate_device_img_rssi); + if (bda.getAverageRSSI() > 95) + rssi.setImageResource(R.drawable.signal_n0); + else if (bda.getAverageRSSI() > 85 + && bda.getAverageRSSI() <= 95) + rssi.setImageResource(R.drawable.signal_n1); + else if (bda.getAverageRSSI() > 70 + && bda.getAverageRSSI() <= 85) + rssi.setImageResource(R.drawable.signal_n2); + else + rssi.setImageResource(R.drawable.signal_n3); + + } + + } + } + + public void updateBattery(BluetoothDeviceActor Device) { + if (listData.contains(Device)) { + int index = listData.indexOf(Device); + BluetoothDeviceActor bda = listData.get(index); + bda.setBatterylevel(Device.getBatterylevel()); + + View v = listview.getChildAt(index + - listview.getFirstVisiblePosition()); + + ImageView battery = (ImageView) v + .findViewById(R.id.inflate_device_img_battery); + + if (bda.getBatterylevel() > 80 && bda.getBatterylevel() <= 100) + battery.setImageResource(R.drawable.battery_n4); + else if (bda.getBatterylevel() > 60 && bda.getBatterylevel() <= 80) + battery.setImageResource(R.drawable.battery_n3); + else if (bda.getBatterylevel() > 40 && bda.getBatterylevel() <= 60) + battery.setImageResource(R.drawable.battery_n2); + else if (bda.getBatterylevel() > 20 && bda.getBatterylevel() <= 40) + battery.setImageResource(R.drawable.battery_n1); + else if (bda.getBatterylevel() > 1 && bda.getBatterylevel() <= 20) + battery.setImageResource(R.drawable.battery_i); + else + battery.setImageResource(R.drawable.battery_n4); + + } + } + + public void updateDisconnectEvent(BluetoothDeviceActor Device) { + if (listData.contains(Device)) { + int index = listData.indexOf(Device); + View v = listview.getChildAt(index + - listview.getFirstVisiblePosition()); + + if (v != null) { + ImageView battery = (ImageView) v + .findViewById(R.id.inflate_device_img_battery); + battery.setImageResource(R.drawable.battery_i); + + ImageView rssi = (ImageView) v + .findViewById(R.id.inflate_device_img_rssi); + rssi.setImageResource(R.drawable.signal_i); + + ImageView sound = (ImageView) v + .findViewById(R.id.inflate_device_img_sound); + sound.setImageResource(R.drawable.buzzer_i); + sound.setClickable(false); + + ImageView settings = (ImageView) v + .findViewById(R.id.inflate_device_img_settings); + + settings.setImageResource(R.drawable.settings_n); + settings.setClickable(true); + listview.invalidate(); + } + } + + } + + @Override + public int getCount() { + return listData.size(); + } + + @Override + public Object getItem(int position) { + return listData.get(position); + } + + @Override + public long getItemId(int position) { + // TODO Auto-generated method stub + + return position; + } + + @Override + public View getView(final int position, View convertView, ViewGroup parent) { + // TODO Auto-generated method stub + // ViewHolder holder; + if (convertView == null) { + + convertView = layoutInflater.inflate(R.layout.inflate_devicelist, + null); + holder = new ViewHolder(); + holder.deviceName = (OpenSansLight) convertView + .findViewById(R.id.inflate_device_txt_Name); + holder.imgrssi = (ImageView) convertView + .findViewById(R.id.inflate_device_img_rssi); + holder.imgmain = (ImageView) convertView + .findViewById(R.id.inflate_device_imageMain); + holder.imgsound = (ImageView) convertView + .findViewById(R.id.inflate_device_img_sound); + holder.imglocation = (ImageView) convertView + .findViewById(R.id.inflate_device_img_location); + holder.imgsettings = (ImageView) convertView + .findViewById(R.id.inflate_device_img_settings); + holder.imgbattery = (ImageView) convertView + .findViewById(R.id.inflate_device_img_battery); + + convertView.setTag(holder); + } else { + holder = (ViewHolder) convertView.getTag(); + } + final BluetoothDeviceActor bda = listData.get(position); + + holder.deviceName.setText(bda.getDevmodel().getDeviceLogicalName()); + if (bda.isConnected()) { + if (listData.get(position).getBatterylevel() > 80 + && listData.get(position).getBatterylevel() <= 100) + holder.imgbattery.setImageResource(R.drawable.battery_n4); + else if (listData.get(position).getBatterylevel() > 60 + && listData.get(position).getBatterylevel() <= 80) + holder.imgbattery.setImageResource(R.drawable.battery_n3); + else if (listData.get(position).getBatterylevel() > 40 + && listData.get(position).getBatterylevel() <= 60) + holder.imgbattery.setImageResource(R.drawable.battery_n2); + else if (listData.get(position).getBatterylevel() > 20 + && listData.get(position).getBatterylevel() <= 40) + holder.imgbattery.setImageResource(R.drawable.battery_n1); + else if (listData.get(position).getBatterylevel() > 1 + && listData.get(position).getBatterylevel() <= 20) + holder.imgbattery.setImageResource(R.drawable.battery_i); + else + holder.imgbattery.setImageResource(R.drawable.battery_n4); + + if (listData.get(position).getAverageRSSI() > 80 + && listData.get(position).getAverageRSSI() <= 100) + holder.imgrssi.setImageResource(R.drawable.signal_i); + else if (listData.get(position).getAverageRSSI() > 65 + && listData.get(position).getAverageRSSI() <= 80) + holder.imgrssi.setImageResource(R.drawable.signal_n0); + else if (listData.get(position).getAverageRSSI() > 50 + && listData.get(position).getAverageRSSI() <= 65) + holder.imgrssi.setImageResource(R.drawable.signal_n1); + else if (listData.get(position).getAverageRSSI() > 40 + && listData.get(position).getAverageRSSI() <= 50) + holder.imgrssi.setImageResource(R.drawable.signal_n2); + else if (listData.get(position).getAverageRSSI() > 30 + && listData.get(position).getAverageRSSI() <= 40) + holder.imgrssi.setImageResource(R.drawable.signal_n3); + else + holder.imgrssi.setImageResource(R.drawable.signal_n3); + + } + + if (!bda.isConnected()) { + holder.imgsound.setImageResource(R.drawable.buzzer_i); + holder.imgsound.setEnabled(false); + + holder.imgbattery.setImageResource(R.drawable.battery_i); + + holder.imgrssi.setImageResource(R.drawable.signal_i); + + holder.imgsettings.setImageResource(R.drawable.settings_n); + holder.imgsettings.setEnabled(true); + + } else { + holder.imgsound.setImageResource(R.drawable.buzzer_n); + holder.imgsound.setEnabled(true); + holder.imgsettings.setImageResource(R.drawable.settings_n); + holder.imgsettings.setEnabled(true); + } + + if (bda != null && bda.getPhotoUrl() != null + && !bda.getPhotoUrl().equalsIgnoreCase("")) { + + final Bitmap bitmap1 = BitmapFactory.decodeFile(bda.getPhotoUrl()); + + if (bitmap1 != null) { + holder.imgmain.setImageBitmap(bitmap1); + } + + } + + holder.imgsound.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + + if (listData.get(position).isConnected()) { + + if (!bda.isBeepRinging) { + + View v1 = listview.getChildAt(position); + holder.imgsound = (ImageView) v1 + .findViewById(R.id.inflate_device_img_sound); + holder.imgsound.setImageResource(R.drawable.buzzer_a2); + + if (getBeepVolume(bda.getDeviceMacAddress())) { + + listData.get(position) + .deviceIsReadyForCommunication("HiroAlert", + 2, ""); + } else { + listData.get(position) + .deviceIsReadyForCommunication("HiroAlert", + 1, ""); + } + bda.isBeepRinging = true; + beepRunningList.add(bda); + startbeepTimer = new Timer(); + beepfinishedTask = new BeepFinishedTask(); + if (getBeepVolume(bda.getDeviceMacAddress())) + startbeepTimer.schedule(beepfinishedTask, 10000, + 50000); + else + startbeepTimer.schedule(beepfinishedTask, 7000, + 50000); + } else { + if (startbeepTimer != null && beepfinishedTask != null) { + beepfinishedTask.cancel(); + startbeepTimer.cancel(); + } + + if (beepRunningList != null + && beepRunningList.size() > 0) { + int index = beepRunningList.indexOf(bda); + beepRunningList.remove(index); + } + + bda.isBeepRinging = false; + holder.imgsound.setImageResource(R.drawable.buzzer_n); + listData.get(position).deviceIsReadyForCommunication( + "HiroAlert", 0, ""); + } + } + + } + }); + + holder.imgsettings.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + MainActivity.BDA = listData.get(position); + Intent i = new Intent(mcontext, SettingsActivity.class); + i.putExtra("position", position); + mcontext.startActivity(i); + + } + }); + + holder.imglocation.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + Intent i = new Intent(mcontext, MapActivity.class); + i.putExtra("latitude", listData.get(position).getLatitude()); + i.putExtra("longitude", listData.get(position).getLongitude()); + i.putExtra("title", listData.get(position).getDevmodel() + .getDeviceLogicalName()); + mcontext.startActivity(i); + + } + }); + + return convertView; + } + + static class ViewHolder { + OpenSansLight deviceName; + ImageView imgrssi; + ImageView imgsound; + ImageView imgsettings; + ImageView imglocation; + ImageView imgmain; + ImageView imgbattery; + } + + public boolean getBeepVolume(String mac) { + + boolean isbeepVolume = true; + DeviceInfoModel model = dbhelper.getdeviceSettings(mac); + + if(model.isHiroBeepVolume() == 1) + isbeepVolume = true; + else + isbeepVolume = false; + + return isbeepVolume; + } + + class BeepFinishedTask extends TimerTask { + @Override + public void run() { + + BluetoothDeviceActor bda = null; + if (beepRunningList != null && beepRunningList.size() > 0) + bda = beepRunningList.get(0); + + if (bda != null) { + if (listData.contains(bda)) { + int index = listData.indexOf(bda); + View v = listview.getChildAt(index + - listview.getFirstVisiblePosition()); + + holder.imgsound = (ImageView) v + .findViewById(R.id.inflate_device_img_sound); + mcontext.runOnUiThread(new Runnable() { + + @Override + public void run() { + holder.imgsound.setImageResource(R.drawable.buzzer_n); + } + }); + + } + if (startbeepTimer != null && beepfinishedTask != null) { + beepfinishedTask.cancel(); + startbeepTimer.cancel(); + } + bda.isBeepRinging = false; + int index = beepRunningList.indexOf(bda); + beepRunningList.remove(index); + } + } + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/CropOptionAdapter.java.svn-base b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/CropOptionAdapter.java.svn-base new file mode 100644 index 0000000..dcee6c0 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/CropOptionAdapter.java.svn-base @@ -0,0 +1,50 @@ +package com.hiroapp.adapter; + +import java.util.ArrayList; + +import android.content.Context; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.ImageView; +import android.widget.TextView; + +import com.hiroapp.main.R; +import com.hiroapp.model.CropOption; + +/** + * Adapter for crop option list. + * + * @author Lorensius W. L. T + * + */ +public class CropOptionAdapter extends ArrayAdapter { + private ArrayList mOptions; + private LayoutInflater mInflater; + + public CropOptionAdapter(Context context, ArrayList options) { + super(context, R.layout.crop_selector, options); + + mOptions = options; + + mInflater = LayoutInflater.from(context); + } + + @Override + public View getView(int position, View convertView, ViewGroup group) { + if (convertView == null) + convertView = mInflater.inflate(R.layout.crop_selector, null); + + CropOption item = mOptions.get(position); + + if (item != null) { + ((ImageView) convertView.findViewById(R.id.iv_icon)).setImageDrawable(item.icon); + ((TextView) convertView.findViewById(R.id.tv_name)).setText(item.title); + + return convertView; + } + + return null; + } +} \ No newline at end of file diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/LeDeviceListAdapter.java.svn-base b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/LeDeviceListAdapter.java.svn-base new file mode 100644 index 0000000..4b3530b --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/adapter/.svn/text-base/LeDeviceListAdapter.java.svn-base @@ -0,0 +1,103 @@ +package com.hiroapp.adapter; + +import java.util.ArrayList; + +import android.bluetooth.BluetoothDevice; +import android.content.Context; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.TextView; + +import com.hiroapp.font.OpenSansRegular; +import com.hiroapp.main.R; + +public class LeDeviceListAdapter extends BaseAdapter { + private ArrayList listData; + + // private ArrayList listData; + + private LayoutInflater layoutInflater; + private int id; + String dev_uuid, dev_txpower; + + public LeDeviceListAdapter(Context context, + ArrayList mylistData) { + this.listData = mylistData; + layoutInflater = LayoutInflater.from(context); + } + + public void addDeviceTolist(BluetoothDevice Device, String uuid, + String transmissionpower) { + if (!listData.contains(Device)) { + listData.add(Device); + dev_uuid = uuid; + dev_txpower = transmissionpower; + } + } + + @Override + public int getCount() { + return listData.size(); + } + + @Override + public Object getItem(int position) { + return listData.get(position); + } + + @Override + public long getItemId(int position) { + // TODO Auto-generated method stub + + return position; + } + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + // TODO Auto-generated method stub + ViewHolder holder; + if (convertView == null) { + + convertView = layoutInflater + .inflate(R.layout.listitem_device, null); + holder = new ViewHolder(); + holder.deviceName = (OpenSansRegular) convertView + .findViewById(R.id.device_name); + holder.txtAddress = (OpenSansRegular) convertView + .findViewById(R.id.device_address); + holder.txtuuid = (TextView) convertView + .findViewById(R.id.device_uuid); + holder.txttxpower = (TextView) convertView + .findViewById(R.id.device_transmissionpower); + convertView.setTag(holder); + } else { + holder = (ViewHolder) convertView.getTag(); + } + BluetoothDevice devicename = (BluetoothDevice) listData.get(position); + String dname; + /* + * try { if (devicename.getName().equalsIgnoreCase("null") || + * devicename.getName().equalsIgnoreCase(null)) dname = + * "UNKNOWN DEVICE"; else dname = devicename.getName(); } catch + * (NullPointerException ex) { dname = "UNKNOWN DEVICE"; } + */ + if(devicename.getName() != null && !devicename.getName().equalsIgnoreCase("")) + dname = devicename.getName(); + else + dname = "UNKNOWN DEVICE"; + + holder.deviceName.setText("DeviceName : " + devicename.getName()); + holder.txtAddress.setText("Mac Address : " + devicename.getAddress()); + return convertView; + } + + static class ViewHolder { + OpenSansRegular deviceName; + OpenSansRegular txtAddress; + TextView txtuuid; + TextView txttxpower; + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$1.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$1.class index e3a969a..b49d9f5 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$1.class and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$10.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$10.class new file mode 100644 index 0000000..252eb1f Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$10.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$2.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$2.class index d45798c..6951722 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$2.class and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$2.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$3.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$3.class index cd6cc46..c354010 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$3.class and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$3.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$4.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$4.class index fe6a2d2..46fecd8 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$4.class and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$4.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$5.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$5.class index 75797a3..5da1d3a 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$5.class and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$5.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$6.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$6.class index 11a6e12..5e2f3de 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$6.class and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$6.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$7.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$7.class new file mode 100644 index 0000000..32bfdf4 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$7.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$8.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$8.class new file mode 100644 index 0000000..cc49b63 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$8.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$9.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$9.class new file mode 100644 index 0000000..11bf6dd Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$9.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$ViewHolder.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$ViewHolder.class index 2e2107c..5037d5c 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$ViewHolder.class and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter$ViewHolder.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter.class b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter.class index 92491f1..3b4eb82 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter.class and b/HiroApp/bin/classes/com/hiroapp/adapter/ConnectedDeviceListAdapter.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/CropOptionAdapter.class b/HiroApp/bin/classes/com/hiroapp/adapter/CropOptionAdapter.class index 1101e50..9c04da7 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/CropOptionAdapter.class and b/HiroApp/bin/classes/com/hiroapp/adapter/CropOptionAdapter.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/LeDeviceListAdapter.class b/HiroApp/bin/classes/com/hiroapp/adapter/LeDeviceListAdapter.class index e9ae530..ee9c3d3 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/LeDeviceListAdapter.class and b/HiroApp/bin/classes/com/hiroapp/adapter/LeDeviceListAdapter.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/adapter/WifissidAdapter.class b/HiroApp/bin/classes/com/hiroapp/adapter/WifissidAdapter.class index 01bf9a2..c560bda 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/adapter/WifissidAdapter.class and b/HiroApp/bin/classes/com/hiroapp/adapter/WifissidAdapter.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/all-wcprops b/HiroApp/bin/classes/com/hiroapp/common/.svn/all-wcprops new file mode 100644 index 0000000..fdadd6f --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/all-wcprops @@ -0,0 +1,41 @@ +K 25 +svn:wc:ra_dav:version-url +V 69 +/svn/HeroApp_Android/!svn/ver/40/trunk/HeroApp/src/com/hiroapp/common +END +ScanDevices.java +K 25 +svn:wc:ra_dav:version-url +V 86 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/common/ScanDevices.java +END +GPSTracker.java +K 25 +svn:wc:ra_dav:version-url +V 85 +/svn/HeroApp_Android/!svn/ver/19/trunk/HeroApp/src/com/hiroapp/common/GPSTracker.java +END +BDACommand.java +K 25 +svn:wc:ra_dav:version-url +V 85 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/common/BDACommand.java +END +ScanInterface.java +K 25 +svn:wc:ra_dav:version-url +V 88 +/svn/HeroApp_Android/!svn/ver/19/trunk/HeroApp/src/com/hiroapp/common/ScanInterface.java +END +BluetoothDeviceActor.java +K 25 +svn:wc:ra_dav:version-url +V 95 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/common/BluetoothDeviceActor.java +END +Utils.java +K 25 +svn:wc:ra_dav:version-url +V 80 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/common/Utils.java +END diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/entries b/HiroApp/bin/classes/com/hiroapp/common/.svn/entries new file mode 100644 index 0000000..a787bff --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/entries @@ -0,0 +1,232 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com/hiroapp/common +https://xp-dev.com/svn/HeroApp_Android + + + +2015-02-07T11:42:35.315757Z +40 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +BDACommand.java +file +44 + + + +2015-02-16T06:08:03.000000Z +b2dd0dd852ce44047d5dddc745a6b7c5 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +1138 + +BluetoothDeviceActor.java +file +44 + + + +2015-02-16T06:13:07.000000Z +d0194fc08f2e71bc88c091d326121171 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +32932 + +GPSTracker.java +file + + + + +2014-12-26T05:36:27.000000Z +c6f40b176aaa70a0a4837628cf1d5076 +2014-12-26T05:34:03.099554Z +19 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +4452 + +ScanDevices.java +file +44 + + + +2015-02-16T06:14:06.000000Z +9174f4e00e0c59040b008fc2959f0693 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +7952 + +ScanInterface.java +file + + + + +2014-12-26T05:36:27.000000Z +b7637fa7b84cbbb9b3f546b2cdfc752e +2014-12-26T05:34:03.099554Z +19 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +252 + +Utils.java +file +44 + + + +2015-02-16T06:15:05.000000Z +e01247f79bf21ffcd42bc9a039fdbbd1 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +11046 + diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/BDACommand.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/BDACommand.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/BDACommand.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/BluetoothDeviceActor.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/BluetoothDeviceActor.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/BluetoothDeviceActor.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/GPSTracker.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/GPSTracker.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/GPSTracker.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/ScanDevices.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/ScanDevices.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/ScanDevices.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/ScanInterface.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/ScanInterface.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/ScanInterface.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/Utils.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/Utils.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/prop-base/Utils.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/BDACommand.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/BDACommand.java.svn-base new file mode 100644 index 0000000..bbbb987 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/BDACommand.java.svn-base @@ -0,0 +1,44 @@ +package com.hiroapp.common; + +import java.util.ArrayList; + +import android.content.Context; + +import com.hiroapp.dbhelper.DBHelper; +import com.hiroapp.main.HeroApp_App; +import com.hiroapp.model.OperationModel; + +public class BDACommand { + private DBHelper dbhelper; + private HeroApp_App appStorage; + public ArrayList operationSequenceList; + public String commandName; + public String expectedValue; + + public BDACommand(Context mContext, String command) { + commandName = command; + appStorage = (HeroApp_App) mContext.getApplicationContext(); + dbhelper = appStorage.getDbhelper(); + operationSequenceList = new ArrayList(); + operationQueue(command); + } + + private void operationQueue(String command) { + + + operationSequenceList = dbhelper.performOperation(command); + + for (int i = 0; i < operationSequenceList.size(); i++) { + + if (operationSequenceList.get(i).getExpectedValue() != null + && !operationSequenceList.get(i).getExpectedValue() + .equalsIgnoreCase("")) { + expectedValue = operationSequenceList.get(i).getExpectedValue(); + } + + } + + + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/BluetoothDeviceActor.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/BluetoothDeviceActor.java.svn-base new file mode 100644 index 0000000..4966f0e --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/BluetoothDeviceActor.java.svn-base @@ -0,0 +1,1172 @@ +package com.hiroapp.common; + +import java.util.ArrayList; +import java.util.Hashtable; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import java.util.Timer; +import java.util.TimerTask; +import java.util.UUID; + +import android.annotation.SuppressLint; +import android.app.Activity; +import android.bluetooth.BluetoothAdapter; +import android.bluetooth.BluetoothDevice; +import android.bluetooth.BluetoothGatt; +import android.bluetooth.BluetoothGattCallback; +import android.bluetooth.BluetoothGattCharacteristic; +import android.bluetooth.BluetoothGattDescriptor; +import android.bluetooth.BluetoothGattServer; +import android.bluetooth.BluetoothGattServerCallback; +import android.bluetooth.BluetoothGattService; +import android.bluetooth.BluetoothManager; +import android.bluetooth.BluetoothProfile; +import android.content.Context; +import android.content.Intent; +import android.content.SharedPreferences; +import android.media.AudioManager; +import android.media.MediaPlayer; +import android.media.MediaPlayer.OnCompletionListener; +import android.media.Ringtone; +import android.media.RingtoneManager; +import android.net.Uri; +import android.util.Log; + +import com.hiroapp.dbhelper.DBHelper; +import com.hiroapp.main.HeroApp_App; +import com.hiroapp.main.MainActivity; +import com.hiroapp.main.R; +import com.hiroapp.model.CharacteristicsModel; +import com.hiroapp.model.DeviceInfoModel; +import com.hiroapp.model.OperationModel; +import com.hiroapp.scanservice.ScanBGService; + +@SuppressLint("NewApi") +public class BluetoothDeviceActor implements Runnable, ScanInterface { + + private final static String TAG = BluetoothDeviceActor.class + .getSimpleName(); + private Context mContext; + private BluetoothManager mBluetoothManager; + private BluetoothAdapter mBluetoothAdapter; + public int deviceId = 0; + public BluetoothGatt mBluetoothGatt; + public String commandname; + public int commandValue; + private BluetoothDevice mDevice; + public String deviceMacAddress; + private boolean isConnected = false; + private Thread thread; + private Thread thread1; + + public ArrayList bdaCommandQueue; + private Queue descriptorWriteQueue = new LinkedList(); + private Timer failTimer; + private ConnectionFailerTask failerTask; + private DBHelper dbhelper; + private HeroApp_App appStorage; + public BluetoothDeviceActor bda; + + public byte[] uuidMajorMinor = null; + public byte[] name = null; + public byte[] txPower = null; + + private int Batterylevel; + + private int notificationId = 0; + + private DeviceInfoModel devmodel; + + private Timer timer; + private ScheduleTask scheduleTask; + + private int alertlevel = 0; + private int linkLossAlert = 0; + + private MediaPlayer mPlayer; + + private static final UUID IMMEDIATE_ALERT_SERVICE = UUID + .fromString("00001802-0000-1000-8000-00805f9b34fb"); + private static final UUID ALERT_LEVEL_CHAR = UUID + .fromString("00002A06-0000-1000-8000-00805f9b34fb"); + + private static final int ALERT_LEVEL_CHARACTERISTIC_VALUE = 2; + private static final int ALERT_LEVEL_CHARACTERISTIC_FORMATTYPE = 17; + private static final int ALERT_LEVEL_CHARACTERISTIC_OFFSET = 0; + + private ArrayList rssiCountList = new ArrayList(); + private int averageRSSI = 0; + + private boolean isRssiget = false; + + private String photoUrl; + + private double latitude; + private double longitude; + + public boolean isBeepRinging = false; + // public boolean isSoundRinging = false; + + private Timer soundTimer; + private SoundTask SoundTask; + + SharedPreferences preferences; + + public double getLatitude() { + return latitude; + } + + public MediaPlayer getmPlayer() { + return mPlayer; + } + + public void setmPlayer(MediaPlayer mPlayer) { + this.mPlayer = mPlayer; + } + + public void setLatitude(double latitude) { + this.latitude = latitude; + } + + public double getLongitude() { + return longitude; + } + + public void setLongitude(double longitude) { + this.longitude = longitude; + } + + public String getPhotoUrl() { + return photoUrl; + } + + public void setPhotoUrl(String photoUrl) { + this.photoUrl = photoUrl; + } + + public int getAverageRSSI() { + return averageRSSI; + } + + public void setAverageRSSI(int averageRSSI) { + this.averageRSSI = averageRSSI; + } + + public int getLinkLossAlert() { + return linkLossAlert; + } + + public void setLinkLossAlert(int linkLossAlert) { + this.linkLossAlert = linkLossAlert; + } + + public int getAlertlevel() { + return alertlevel; + } + + public void setAlertlevel(int alertlevel) { + this.alertlevel = alertlevel; + } + + public int getNotificationId() { + return notificationId; + } + + public void setNotificationId(int notificationId) { + this.notificationId = notificationId; + } + + public int getBatterylevel() { + return Batterylevel; + } + + public void setBatterylevel(int batterylevel) { + Batterylevel = batterylevel; + } + + public DeviceInfoModel getDevmodel() { + return devmodel; + } + + public void setDevmodel(DeviceInfoModel devmodel) { + this.devmodel = devmodel; + } + + public byte[] getUuidMajorMinor() { + return uuidMajorMinor; + } + + public void setUuidMajorMinor(byte[] uuidMajorMinor) { + this.uuidMajorMinor = uuidMajorMinor; + } + + public byte[] getName() { + return name; + } + + public void setName(byte[] name) { + this.name = name; + } + + public byte[] getTxPower() { + return txPower; + } + + public void setTxPower(byte[] txPower) { + this.txPower = txPower; + } + + public int getDeviceId() { + return deviceId; + } + + public void setDeviceId(int deviceId) { + this.deviceId = deviceId; + } + + public BluetoothGatt getmBluetoothGatt() { + return mBluetoothGatt; + } + + public void setmBluetoothGatt(BluetoothGatt mBluetoothGatt) { + this.mBluetoothGatt = mBluetoothGatt; + } + + public BluetoothDevice getmDevice() { + return mDevice; + } + + public void setmDevice(BluetoothDevice mDevice) { + this.mDevice = mDevice; + } + + public String getDeviceMacAddress() { + return deviceMacAddress; + } + + public void setDeviceMacAddress(String deviceMacAddress) { + this.deviceMacAddress = deviceMacAddress; + } + + public boolean isConnected() { + return isConnected; + } + + public void setConnected(boolean isConnected) { + this.isConnected = isConnected; + } + + public BluetoothDeviceActor getBda() { + return bda; + } + + public void setBda(BluetoothDeviceActor bda) { + this.bda = bda; + } + + @SuppressLint("NewApi") + public void initialization(Context context) { + + mContext = context; + appStorage = (HeroApp_App) context.getApplicationContext(); + dbhelper = appStorage.getDbhelper(); + mBluetoothManager = (BluetoothManager) context + .getSystemService(Context.BLUETOOTH_SERVICE); + mBluetoothAdapter = mBluetoothManager.getAdapter(); + bdaCommandQueue = new ArrayList(); + + } + + public void setContext(Context context) { + mContext = context; + } + + + @Override + public void connectedDevice(BluetoothDevice device) { + + mDevice = device; + setDeviceMacAddress(device.getAddress()); + startThread(); + } + + @Override + public void run() { + connectDevice(mDevice); + } + + public void startThread() { + thread = new Thread(this); + thread.start(); + } + + public void stopThread() { + if (thread != null) { + final Thread tempThread = thread; + thread = null; + tempThread.interrupt(); + } + } + + /** + * Connects to the GATT server hosted on the Bluetooth LE device. + * + * @param device + * The device address of the destination device. + * + * @return Return true if the connection is initiated successfully. The + * connection result is reported asynchronously through the + * {@code BluetoothGattCallback#onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)} + * callback. + */ + public boolean connectDevice(final BluetoothDevice device) { + + if (device == null) { + return false; + } + + failTimer = new Timer(); + failerTask = new ConnectionFailerTask(); + failTimer.schedule(failerTask, 15000, 50000); + + try { + + if (mContext != null) { + + mBluetoothGatt = device.connectGatt(mContext, true, + mGattCallback); + + setmBluetoothGatt(mBluetoothGatt); + + setupGattServer(); + } + + } catch (Exception e) { + e.printStackTrace(); + } + + return true; + } + + // Implements callback methods for GATT events that the app cares about. For + // example, + // connection change and services discovered. + public final BluetoothGattCallback mGattCallback = new BluetoothGattCallback() { + + public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) { + + if (rssiCountList != null && rssiCountList.size() < 20) { + + rssiCountList.add(rssi); + if (rssiCountList.size() == 20) { + int count = 0; + for (int i = 0; i < rssiCountList.size(); i++) { + + count = count - rssiCountList.get(i); + } + final int posCount = Math.abs(count); + final int averageRSSI = posCount / 20; + + setAverageRSSI(averageRSSI); + + Utils.setBda(BluetoothDeviceActor.this); + broadcastUpdateRSSI(Utils.ACTION_RSSI, averageRSSI); + rssiCountList.clear(); + + } else { + if (getmBluetoothGatt() != null) + getmBluetoothGatt().readRemoteRssi(); + } + + } + + }; + + @Override + public void onConnectionStateChange(BluetoothGatt gatt, int status, + int newState) { + super.onConnectionStateChange(gatt, status, newState); + + String intentAction; + + if (newState == BluetoothProfile.STATE_CONNECTED) { + try { + setConnected(true); + if (failerTask != null && failTimer != null) { + failerTask.cancel(); + failTimer.cancel(); + } + //Log.e(TAG, "Connect from GATT server."); + + stopThread(); + + if (getmBluetoothGatt() != null) { + boolean discover = getmBluetoothGatt() + .discoverServices(); + } + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { + //Log.e(TAG, "Disconnected from GATT server."); + setConnected(false); + intentAction = Utils.ACTION_GATT_DISCONNECTED; + getmBluetoothGatt().close(); + setmBluetoothGatt(null); + + MainActivity.lastConnectedBDA = BluetoothDeviceActor.this; + + if (bdaCommandQueue != null && bdaCommandQueue.size() > 0) + bdaCommandQueue.clear(); + if (descriptorWriteQueue != null + && descriptorWriteQueue.size() > 0) + descriptorWriteQueue.clear(); + + if (timer != null && scheduleTask != null) { + scheduleTask.cancel(); + timer.cancel(); + } + isRssiget = false; + commandname = ""; + broadcastUpdate(intentAction, -1); + + soundTimer = new Timer(); + SoundTask = new SoundTask(); + soundTimer.schedule(SoundTask, 20000, 50000); + + } + + } + + @Override + public void onServicesDiscovered(BluetoothGatt gatt, int status) { + super.onServicesDiscovered(gatt, status); + + String intentAction; + intentAction = Utils.ACTION_GATT_CONNECTED; + broadcastUpdate(intentAction, -1); + discoverServices(gatt.getServices()); + + } + + @Override + public void onCharacteristicRead(BluetoothGatt gatt, + BluetoothGattCharacteristic characteristic, int status) { + // TODO Auto-generated method stub + super.onCharacteristicRead(gatt, characteristic, status); + //Log.e(TAG, "onCharacteristicRead called"); + BDACommand bdacommand = null; + if (bdaCommandQueue != null && bdaCommandQueue.size() > 0) { + bdacommand = bdaCommandQueue.get(0); + bdaCommandQueue.remove(0); + } + byte[] data = characteristic.getValue(); + if (data != null) { + + convertCharacteristicsValue(characteristic, bdacommand); + } + + if (bdacommand.commandName.equalsIgnoreCase("Batterylevel")) { + deviceIsReadyForCommunication("LinkLossAlert", -1, "Read"); + + int id = dbhelper.getnotificationId(deviceMacAddress); + + Utils.generateNotificationForConnect(mContext, mContext + .getResources().getString(R.string.app_name), + getDevmodel().getDeviceLogicalName() + " is Connected", + id); + String intentAction; + + if (MainActivity.mLeDeviceListAdapter != null) { + MainActivity.mLeDeviceListAdapter + .addDeviceTolist(BluetoothDeviceActor.this); + } + + intentAction = Utils.ACTION_DESCRIPTOR_WRITE; + broadcastUpdate(intentAction, -1); + + } else if (bdacommand.commandName.equalsIgnoreCase("LinkLossAlert")) { + + if (!isRssiget) { + + isRssiget = true; + if (timer != null && scheduleTask != null) { + scheduleTask.cancel(); + timer.cancel(); + } + + timer = new Timer(); + scheduleTask = new ScheduleTask(); + timer.schedule(scheduleTask, 1000, 3000); + } + + } + } + + @Override + public void onCharacteristicWrite(BluetoothGatt gatt, + BluetoothGattCharacteristic characteristic, int status) { + // TODO Auto-generated method stub + super.onCharacteristicWrite(gatt, characteristic, status); + //Log.e(TAG, "onCharacteristicWrite called"); + + BDACommand bdacommand = null; + + byte[] data = characteristic.getValue(); + if (data != null) { + + if (bdaCommandQueue != null && bdaCommandQueue.size() > 0) { + bdacommand = bdaCommandQueue.get(0); + bdaCommandQueue.remove(0); + + if (bdacommand.commandName.equalsIgnoreCase("HeroAlert")) { + + String value = convertCharacteristicsValue( + characteristic, bdacommand); + int val = Integer.parseInt(value, 16); + + broadcastUpdate(Utils.ACTION_ALERT, val); + } + } + + } + } + + @Override + public void onCharacteristicChanged(BluetoothGatt gatt, + BluetoothGattCharacteristic characteristic) { + // TODO Auto-generated method stub + super.onCharacteristicChanged(gatt, characteristic); + + //Log.e(TAG, "onCharacteristicChanged called"); + + if (characteristic.getUuid().equals( + "00002a19-0000-1000-8000-00805f9b34fb")) + getBatteryUpdate(characteristic); + + } + + @Override + public void onDescriptorRead(BluetoothGatt gatt, + BluetoothGattDescriptor descriptor, int status) { + // TODO Auto-generated method stub + super.onDescriptorRead(gatt, descriptor, status); + } + + @Override + public void onDescriptorWrite(BluetoothGatt gatt, + BluetoothGattDescriptor descriptor, int status) { + super.onDescriptorWrite(gatt, descriptor, status); + + descriptorWriteQueue.remove(); // pop the item that we just + + // finishing writing + // if there is more to write, do it! + if (descriptorWriteQueue.size() > 0) + writeGattDescriptor(descriptorWriteQueue.element()); + else { + + if (!dbhelper.checkIfDeviceExists(getDevmodel())) { + setNotificationId(dbhelper.insertDeviceInfo(getDevmodel())); + } + // if service hash already contain the mac address the remove + // the old with fresh bda + if (ScanBGService.hash_service_connected_device_list != null + && ScanBGService.hash_service_connected_device_list + .containsKey(getDeviceMacAddress())) + ScanBGService.hash_service_connected_device_list + .remove(getDeviceMacAddress()); + ScanBGService.hash_service_connected_device_list.put( + getDeviceMacAddress(), getBda()); + + deviceIsReadyForCommunication("Batterylevel", 0, ""); + + } + + } + + }; + + private void discoverServices(List list) { + +// for (int i = 0; i < list.size(); i++) { +// Log.e("serviceUUID", " " + list.get(i).getUuid()); +// } + + for (int i = 0; i < list.size(); i++) { + + final int serviceId = dbhelper.getServiceIdFromUUIDAndDeviceId(list + .get(i).getUuid(), getDeviceId()); + + if (serviceId == -1) { + continue; + } + + Hashtable charHas = dbhelper + .getCharacteristicsOfService(serviceId, getDeviceId()); + + ArrayList gattCharacteristics = (ArrayList) list + .get(i).getCharacteristics(); + + for (int j = 0; j < gattCharacteristics.size(); j++) { + + Object name = gattCharacteristics.get(j).getUuid().toString() + .trim(); + + if (charHas != null && charHas.containsKey(name)) { + + CharacteristicsModel model = charHas + .get(gattCharacteristics.get(j).getUuid() + .toString().trim()); + + if (model.isObservable() == 1) { + + boolean isNotify = getmBluetoothGatt() + .setCharacteristicNotification( + gattCharacteristics.get(j), true); + + ArrayList gattdescriptor = (ArrayList) gattCharacteristics + .get(j).getDescriptors(); + + for (int k = 0; k < gattdescriptor.size(); k++) { + + BluetoothGattDescriptor descriptor = gattdescriptor + .get(k); + descriptorWriteQueue.add(descriptor); + + } + } + } + } + } + + if (descriptorWriteQueue.size() > 0) { + writeGattDescriptor(descriptorWriteQueue.element()); + } else { + // store data here + if (!dbhelper.checkIfDeviceExists(getDevmodel())) { + setNotificationId(dbhelper.insertDeviceInfo(getDevmodel())); + } + // if service hash already contain the mac address the remove + // the old with fresh bda + if (ScanBGService.hash_service_connected_device_list != null + && ScanBGService.hash_service_connected_device_list + .containsKey(getDeviceMacAddress())) + ScanBGService.hash_service_connected_device_list + .remove(getDeviceMacAddress()); + ScanBGService.hash_service_connected_device_list.put( + getDeviceMacAddress(), getBda()); + + deviceIsReadyForCommunication("Batterylevel", 0, ""); + + } + + } + + class ScheduleTask extends TimerTask { + + @Override + public void run() { + // TODO Auto-generated method stub + mBluetoothGatt.readRemoteRssi(); + } + + } + + // Write gatt descriptor + public void writeGattDescriptor(BluetoothGattDescriptor d) { + d.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE); + getmBluetoothGatt().writeDescriptor(d); + } + + class ConnectionFailerTask extends TimerTask { + @Override + public void run() { + broadcastUpdate(Utils.ACTION_CONNECT_FAIL, -1); + failerTask.cancel(); + failTimer.cancel(); + } + } + + private void broadcastUpdate(final String action, int val) { + final Intent intent = new Intent(action); + intent.putExtra("value", val); + mContext.sendBroadcast(intent); + } + + private void broadcastUpdateRSSI(final String action, int val) { + final Intent intent = new Intent(action); + intent.putExtra("Rssi", val); + mContext.sendBroadcast(intent); + } + + // device is ready to for communition + public void deviceIsReadyForCommunication(String name, int value, + String operationType) { + +// Log.e(TAG, "commandname in deviceIsReadyForCommunication = " + name); + commandname = name; + commandValue = value; + if (bdaCommandQueue != null && bdaCommandQueue.size() > 0) { + bdaCommandQueue.remove(0); + } + + if (name != null && !name.equalsIgnoreCase("")) { + checkAndPerformCommand(name, commandValue, operationType); + } + } + + // check if device is null or its bluetooth gatt is null. + public void checkAndPerformCommand(String command, int value, + String operationType) { + + if (mDevice == null && deviceMacAddress != null) { + mDevice = mBluetoothAdapter.getRemoteDevice(deviceMacAddress); + } else { + + if (mDevice == null && deviceMacAddress == null) { + ScanDevices scan = new ScanDevices(mContext); + return; + } + } + if (getmBluetoothGatt() == null) { + // ScanDevices scan = new ScanDevices(mContext); + } else { + performCommand(command, value, operationType); + } + } + + public void performCommand(String command, int value, String operationType) { + +// Log.e(TAG, "Command Name in performCommand ====== " + command +// + " ======= " + bdaCommandQueue); + + if (bdaCommandQueue == null || bdaCommandQueue.size() == 0) { + BDACommand bdc; + bdc = new BDACommand(mContext, command); + bdaCommandQueue.add(bdc); + + if (bdaCommandQueue.size() == 1) + processCommand(bdc, value, operationType); + } + + } + + private void processCommand(BDACommand bdc, int value, String operationType) { +// Log.e("processCommand()", " " + bdc.operationSequenceList.size()); + if (bdc.operationSequenceList.size() > 0) { + OperationModel model = bdc.operationSequenceList.get(0); + bdc.operationSequenceList.remove(0); + processCurrentModel(model, value, operationType); + } else { +// Log.e("processCommand()", +// " else " + bdc.operationSequenceList.size()); + if (bdaCommandQueue != null && bdaCommandQueue.size() > 0) + bdaCommandQueue.clear(); + } + + } + + private void processCurrentModel(OperationModel model, int value, + String operationType) { + + UUID serviceuid = UUID.fromString(model.getServiceUUID()); + BluetoothGattService service = getmBluetoothGatt().getService( + serviceuid); + UUID characteristicuid = UUID.fromString(model.getCharUUID()); + BluetoothGattCharacteristic characteristic = null; + if (service != null) { + characteristic = service.getCharacteristic(characteristicuid); + } + if (characteristic != null) { + if (model.getOperation().equalsIgnoreCase("Read")) { + boolean read = getmBluetoothGatt().readCharacteristic( + characteristic); +// Log.e(TAG, "Read fire = " + read); + } else if (model.getOperation().equalsIgnoreCase("Write")) { + byte[] byt = null; + byt = makeRequestByte(value); + characteristic.setValue(byt); + boolean write = getmBluetoothGatt().writeCharacteristic( + characteristic); +// Log.e(TAG, "write fire = " + write); + if (!write) { + if (bdaCommandQueue != null && bdaCommandQueue.size() > 0) + bdaCommandQueue.remove(0); + } + + } else if (model.getOperation().equalsIgnoreCase("ReadWrite")) { + + if (operationType.equalsIgnoreCase("Read")) { + boolean read = getmBluetoothGatt().readCharacteristic( + characteristic); +// Log.e(TAG, "Read fire = " + read); + } else { + byte[] byt = null; + byt = makeRequestByte(value); + characteristic.setValue(byt); + boolean write = getmBluetoothGatt().writeCharacteristic( + characteristic); +// Log.e(TAG, "write fire = " + write); + if (!write) { + if (bdaCommandQueue != null + && bdaCommandQueue.size() > 0) + bdaCommandQueue.remove(0); + } + } + + } + } + + } + + private byte[] makeRequestByte(int value) { + + byte[] byt = new byte[1]; + + byt[0] = (byte) convertIntToHex(value); + + return byt; + } + + public static int convertIntToHex(int n) { + return Integer.valueOf(String.valueOf(n), 16); + + } + + public String convertCharacteristicsValue( + BluetoothGattCharacteristic characteristic, BDACommand bdaCommand) { + + // For all other profiles, writes the data formatted in HEX. + final byte[] data = characteristic.getValue(); + StringBuilder stringBuilder = null; + if (data != null && data.length > 0) { + stringBuilder = new StringBuilder(data.length); + for (byte byteChar : data) + stringBuilder.append(String.format("%02X ", byteChar)); + } + String value = null; + if (bdaCommand != null + && bdaCommand.commandName.equalsIgnoreCase("Batterylevel")) { + value = stringBuilder.toString().trim(); + Batterylevel = Integer.parseInt(value, 16); + Utils.setBdaForbattery(BluetoothDeviceActor.this); + broadcastUpdate(Utils.ACTION_BATTERY_LEVEL, -1); + + if (Batterylevel < 20) { + if (getPreference("BatteryIndication")) { + + int id = dbhelper.getnotificationId(deviceMacAddress); + Utils.generateNotification(mContext, mContext + .getResources().getString(R.string.app_name), + "Battery is getting low for " + + getDevmodel().getDeviceLogicalName(), id, + true); + // playLowBatterySound(); + } + } + +// Log.e(TAG, "convertCharacteristicsValue Batterylevel ========== " +// + Batterylevel); + } else if (bdaCommand != null + && bdaCommand.commandName.equalsIgnoreCase("LinkLossAlert")) { + value = stringBuilder.toString().trim(); + linkLossAlert = Integer.parseInt(value, 16); + } else { + value = stringBuilder.toString().trim(); + } + +// Log.e(TAG, "convertCharacteristicsValue " + value); + return value; + } + + private void playLowBatterySound() { + MediaPlayer mp = MediaPlayer.create(mContext, R.raw.error); + mp.setOnCompletionListener(new OnCompletionListener() { + + @Override + public void onCompletion(MediaPlayer mp) { + mp.release(); + } + + }); + mp.start(); + + } + + public void getBatteryUpdate(BluetoothGattCharacteristic characteristic) { + // For all other profiles, writes the data formatted in HEX. + final byte[] data = characteristic.getValue(); + StringBuilder stringBuilder = null; + if (data != null && data.length > 0) { + stringBuilder = new StringBuilder(data.length); + for (byte byteChar : data) + stringBuilder.append(String.format("%02X ", byteChar)); + } + String value = null; + value = stringBuilder.toString().trim(); + Batterylevel = Integer.parseInt(value, 16); + if (Batterylevel < 20) { + if (getPreference("BatteryIndication")) { + // playLowBatterySound(); + + int id = dbhelper.getnotificationId(deviceMacAddress); + Utils.generateNotification(mContext, mContext.getResources() + .getString(R.string.app_name), + "Battery is getting low for " + + getDevmodel().getDeviceLogicalName(), id, + true); + + } + } + Utils.setBdaForbattery(BluetoothDeviceActor.this); + broadcastUpdate(Utils.ACTION_BATTERY_LEVEL, -1); + } + + @Override + public void addDevice(BluetoothDevice scandevices, String uuid, + String string) { + } + + public void setupGattServer() { + + final BluetoothManager bluetoothManager = (BluetoothManager) mContext + .getSystemService(Context.BLUETOOTH_SERVICE); + BluetoothGattServerCallback mBluetoothGattServerCallback = new BluetoothGattServerCallback() { + @Override + public void onConnectionStateChange(BluetoothDevice device, + int status, int newState) { +// Log.e("BLEMainActivity:onConnectionStateChange", "device : " +// + device + " status : " + status + " new state : " +// + newState); + } + + @Override + public void onServiceAdded(int status, BluetoothGattService service) { +// Log.e("BLEMainActivity:onServiceAdded", +// "service : " + service.getUuid() + " status = " +// + status); + } + + @Override + public void onCharacteristicReadRequest(BluetoothDevice device, + int requestId, int offset, + BluetoothGattCharacteristic characteristic) { +// Log.e("BLEMainActivity:onCharacteristicReadRequest", +// "device : " + device.getAddress() + " request = " +// + requestId + " offset = " + offset +// + " characteristic = " +// + characteristic.getUuid()); + + } + + @Override + public void onCharacteristicWriteRequest(BluetoothDevice device, + int requestId, BluetoothGattCharacteristic characteristic, + boolean preparedWrite, boolean responseNeeded, int offset, + byte[] value) { + super.onCharacteristicWriteRequest(device, requestId, + characteristic, preparedWrite, responseNeeded, offset, + value); + int val = 0; + if (value != null) { + val = value[0]; + } + +// Log.e(TAG, "value == " + val); + +// Log.e("BLEMainActivity", "device : " + device.getAddress() +// + " characteristic : " + characteristic.getUuid() +// + "Value = " + value.toString() + "requestId = " +// + requestId + " Service == " +// + characteristic.getService().getUuid()); + + playSound(val); + + + } + + @Override + public void onDescriptorReadRequest(BluetoothDevice device, + int requestId, int offset, + BluetoothGattDescriptor descriptor) { + + } + + @Override + public void onDescriptorWriteRequest(BluetoothDevice device, + int requestId, BluetoothGattDescriptor descriptor, + boolean preparedWrite, boolean responseNeeded, int offset, + byte[] value) { + + } + + @Override + public void onExecuteWrite(BluetoothDevice device, int requestId, + boolean execute) { + + } + }; + BluetoothGattServer gattServer = bluetoothManager.openGattServer( + mContext.getApplicationContext(), mBluetoothGattServerCallback); + BluetoothGattService service = new BluetoothGattService( + IMMEDIATE_ALERT_SERVICE, + BluetoothGattService.SERVICE_TYPE_PRIMARY); + BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic( + ALERT_LEVEL_CHAR, + BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE, + BluetoothGattCharacteristic.PERMISSION_WRITE); + characteristic.setValue(ALERT_LEVEL_CHARACTERISTIC_VALUE, + ALERT_LEVEL_CHARACTERISTIC_FORMATTYPE, + ALERT_LEVEL_CHARACTERISTIC_OFFSET); + service.addCharacteristic(characteristic); + gattServer.addService(service); + Log.e("BLEMainActivity:setupGattServer", + "Gatt server setup complete : " + gattServer.toString()); + + } + + public boolean getPreference(String key) { + + boolean istrue = dbhelper.getColumnValue(deviceMacAddress, key); + + return istrue; + } + + private void playSound(int val) { + preferences = mContext.getSharedPreferences( + mContext.getString(R.string.app_name), + Activity.MODE_WORLD_WRITEABLE); + + String path = preferences.getString("PhoneRing", ""); + + if (val == 0) { + // isSoundRinging = false; + if (mPlayer != null && mPlayer.isPlaying()) { + mPlayer.stop(); + mPlayer.release(); + } + } else { + + Utils.generateNotificationForFindPhone(mContext, mContext + .getResources().getString(R.string.app_name), + "Hiro wants to find your phone", 500); + + mPlayer = new MediaPlayer(); + try { + + if (!path.equalsIgnoreCase("")) { + Uri uri = Uri.parse(path); + mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); + mPlayer.setDataSource(mContext.getApplicationContext(), uri); + mPlayer.prepare(); + mPlayer.setLooping(false); + mPlayer.start(); + setmPlayer(mPlayer); + + mPlayer.setOnCompletionListener(new OnCompletionListener() { + + @Override + public void onCompletion(MediaPlayer mp) { + // TODO Auto-generated method stub + mPlayer.stop(); + mPlayer.release(); + // isSoundRinging = false; + + } + }); + } else { + Uri notification = RingtoneManager + .getDefaultUri(RingtoneManager.TYPE_RINGTONE); + mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); + mPlayer.setDataSource(mContext.getApplicationContext(), + notification); + mPlayer.prepare(); + mPlayer.setLooping(false); + mPlayer.start(); + + setmPlayer(mPlayer); + + mPlayer.setOnCompletionListener(new OnCompletionListener() { + + @Override + public void onCompletion(MediaPlayer mp) { + // TODO Auto-generated method stub + mPlayer.stop(); + mPlayer.release(); + // isSoundRinging = false; + } + }); + } + } catch (Exception e) { + + } + } + } + + class SoundTask extends TimerTask { + + @Override + public void run() { + // TODO Auto-generated method stub + if (!isConnected) { + boolean isDisSound = getPreference("NotificationDisconnectAlert"); + + if (getPreference("NotificationIndication")) { + + int id = dbhelper.getnotificationId(deviceMacAddress); + + Utils.generateNotification(mContext, mContext + .getResources().getString(R.string.app_name), + getDevmodel().getDeviceLogicalName() + + " is getting away!", id, isDisSound); + } + + if (isDisSound) { + String path = dbhelper.getRing(deviceMacAddress, + "DisconnectRing"); + // String path = getRingtone("DisconnectRing"); + try { + if (path != null && !path.equalsIgnoreCase("")) { + Uri uri = Uri.parse(path); + Ringtone r = RingtoneManager.getRingtone( + mContext.getApplicationContext(), uri); + r.play(); + } else { + MediaPlayer mp = MediaPlayer.create( + mContext.getApplicationContext(), + R.raw.disconnect); + + mp.setOnCompletionListener(new OnCompletionListener() { + + @Override + public void onCompletion(MediaPlayer mp) { + mp.release(); + } + + }); + mp.start(); + } + + } catch (IllegalArgumentException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (SecurityException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IllegalStateException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + } + + soundTimer.cancel(); + SoundTask.cancel(); + } + + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/GPSTracker.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/GPSTracker.java.svn-base new file mode 100644 index 0000000..a8b8e05 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/GPSTracker.java.svn-base @@ -0,0 +1,176 @@ +package com.hiroapp.common; + +import android.app.Service; +import android.content.Context; +import android.content.Intent; +import android.location.Location; +import android.location.LocationListener; +import android.location.LocationManager; +import android.os.Bundle; +import android.os.IBinder; +import android.util.Log; + +public class GPSTracker extends Service implements LocationListener { + + private final Context mContext; + + // flag for GPS status + boolean isGPSEnabled = false; + + // flag for network status + boolean isNetworkEnabled = false; + + // flag for GPS status + boolean canGetLocation = false; + + Location location; // location + double latitude; // latitude + double longitude; // longitude + + // The minimum distance to change Updates in meters + private static final long MIN_DISTANCE_CHANGE_FOR_UPDATES = 10; // 10 meters + + // The minimum time between updates in milliseconds + private static final long MIN_TIME_BW_UPDATES = 1000 * 60 * 1; // 1 minute + + // Declaring a Location Manager + protected LocationManager locationManager; + + public GPSTracker(Context context) { + this.mContext = context; + getLocation(); + } + + public Location getLocation() { + try { + locationManager = (LocationManager) mContext.getApplicationContext() + .getSystemService(LOCATION_SERVICE); + + // getting GPS status + isGPSEnabled = locationManager + .isProviderEnabled(LocationManager.GPS_PROVIDER); + + // getting network status + isNetworkEnabled = locationManager + .isProviderEnabled(LocationManager.NETWORK_PROVIDER); + + if (!isGPSEnabled && !isNetworkEnabled) { + // no network provider is enabled + } else { + this.canGetLocation = true; + // First get location from Network Provider + if (isNetworkEnabled) { + locationManager.requestLocationUpdates( + LocationManager.NETWORK_PROVIDER, + MIN_TIME_BW_UPDATES, + MIN_DISTANCE_CHANGE_FOR_UPDATES, this); + Log.d("Network", "Network"); + if (locationManager != null) { + location = locationManager + .getLastKnownLocation(LocationManager.NETWORK_PROVIDER); + if (location != null) { + latitude = location.getLatitude(); + longitude = location.getLongitude(); + } + } + } + // if GPS Enabled get lat/long using GPS Services + if (isGPSEnabled) { + if (location == null) { + locationManager.requestLocationUpdates( + LocationManager.GPS_PROVIDER, + MIN_TIME_BW_UPDATES, + MIN_DISTANCE_CHANGE_FOR_UPDATES, this); + Log.d("GPS Enabled", "GPS Enabled"); + if (locationManager != null) { + location = locationManager + .getLastKnownLocation(LocationManager.GPS_PROVIDER); + if (location != null) { + latitude = location.getLatitude(); + longitude = location.getLongitude(); + } + } + } + } + } + + } catch (Exception e) { + e.printStackTrace(); + } + + return location; + } + + /** + * Stop using GPS listener Calling this function will stop using GPS in your + * app + * */ + public void stopUsingGPS() { + if (locationManager != null) { + locationManager.removeUpdates(GPSTracker.this); + } + } + + /** + * Function to get latitude + * */ + public double getLatitude() { + if (location != null) { + latitude = location.getLatitude(); + } + + // return latitude + return latitude; + } + + /** + * Function to get longitude + * */ + public double getLongitude() { + if (location != null) { + longitude = location.getLongitude(); + } + + // return longitude + return longitude; + } + + /** + * Function to check GPS/wifi enabled + * + * @return boolean + * */ + public boolean canGetLocation() { + return this.canGetLocation; + } + + @Override + public void onProviderDisabled(String provider) { + } + + @Override + public void onProviderEnabled(String provider) { + } + + @Override + public void onStatusChanged(String provider, int status, Bundle extras) { + } + + @Override + public IBinder onBind(Intent arg0) { + return null; + } + + @Override + public void onLocationChanged(Location location) { +// if (location != null) { +// Log.e("SuperMap", +// "Location changed : Lat: " + location.getLatitude() +// + " Lng: " + location.getLongitude()); +// latitude = location.getLatitude(); +// longitude = location.getLongitude(); +// Log.e("latitude,longitude", "" + latitude + "," + longitude); +// +// } + } +} \ No newline at end of file diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/ScanDevices.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/ScanDevices.java.svn-base new file mode 100644 index 0000000..8880940 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/ScanDevices.java.svn-base @@ -0,0 +1,261 @@ +package com.hiroapp.common; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.Timer; +import java.util.TimerTask; + +import android.annotation.SuppressLint; +import android.annotation.TargetApi; +import android.bluetooth.BluetoothAdapter; +import android.bluetooth.BluetoothDevice; +import android.bluetooth.BluetoothManager; +import android.content.Context; +import android.content.Intent; +import android.os.Build; +import android.util.Log; + +import com.hiroapp.model.DeviceInfoModel; +import com.hiroapp.scanservice.ScanBGService; + +@SuppressLint("NewApi") +@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2) +public class ScanDevices { + + private BluetoothAdapter mBluetoothAdapter; + private ArrayList scanDeviceNameList; + private Context context; + public ScanInterface scaninterface; + public boolean isDeviceConnected = false; + private Timer timer; + private ScheduleTask scheduleTask; + int transmissionpower = 0; + String devicename = null; + String comp_spe = ""; + String uuid; + protected static char[] hexArray = "0123456789ABCDEF".toCharArray(); + String mac_address = ""; + + + @SuppressLint("NewApi") + public ScanDevices(Context mcontext) { + final BluetoothManager bluetoothManager = (BluetoothManager) mcontext + .getSystemService(Context.BLUETOOTH_SERVICE); + mBluetoothAdapter = bluetoothManager.getAdapter(); + context = mcontext; + scaninterface = (ScanInterface) mcontext; + } + + @SuppressLint("NewApi") + public ScanDevices(Context mcontext, + LinkedHashMap devlist) { + final BluetoothManager bluetoothManager = (BluetoothManager) mcontext + .getSystemService(Context.BLUETOOTH_SERVICE); + mBluetoothAdapter = bluetoothManager.getAdapter(); + context = mcontext; + startScanning(); + } + + public void startScanning() { + scanDeviceNameList = new ArrayList(); + mBluetoothAdapter.startLeScan(mLeScanCallback); + } + + public void stopScanning() { + try { + mBluetoothAdapter.stopLeScan(mLeScanCallback); + } catch (Exception e) { +// Log.e("StopScanning", e.getMessage()); + } + } + + class ScheduleTask extends TimerTask { + @Override + public void run() { + + broadcastUpdate(Utils.ACTION_DEVICE_NOT_FOUND); + mBluetoothAdapter.stopLeScan(mLeScanCallback); + } + } + + private void broadcastUpdate(final String action) { + + final Intent intent = new Intent(action); + context.sendBroadcast(intent); + } + + // Device scan callback. + private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() { + + @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2) + @Override + public void onLeScan(final BluetoothDevice device, int rssi, + final byte[] scanRecord) { + + String deviceName = device.getAddress(); + + if (scanDeviceNameList != null + && scanDeviceNameList.contains(device.getAddress())) { + + if (ScanBGService.device_list != null + && ScanBGService.device_list.size() > 0 + && ScanBGService.device_list.containsKey(deviceName)) { + if (ScanBGService.hash_service_connected_device_list != null + && ScanBGService.hash_service_connected_device_list + .size() > 0 + && ScanBGService.hash_service_connected_device_list + .containsKey(deviceName)) { + BluetoothDeviceActor bda = ScanBGService.hash_service_connected_device_list + .get(deviceName); + if (!bda.isConnected()) { + scanDeviceNameList.add(device.getAddress()); + DeviceInfoModel devmodel = ScanBGService.device_list + .get(deviceName); + ScanBGService.device_list.remove(deviceName); + if (ScanBGService.device_list.size() == 0) + ScanBGService.isScanRunning = false; + makeandconnectBDA(device, devmodel); + } + } else { + scanDeviceNameList.remove(device.getAddress()); + } + } + + } else { + StringBuffer sb = new StringBuffer(); + for (byte b : scanRecord) { + sb.append(String.format("%02X", b)); + } + // decodescan(sb.toString()); + if (ScanBGService.device_list != null + && ScanBGService.device_list.size() > 0 + && ScanBGService.device_list.containsKey(deviceName)) { + DeviceInfoModel devmodel = ScanBGService.device_list + .get(deviceName); + ScanBGService.device_list.remove(deviceName); + if (ScanBGService.device_list.size() == 0) + ScanBGService.isScanRunning = false; + makeandconnectBDA(device, devmodel); + } else if (device != null && device.getName() != null + && !device.getName().toString().equalsIgnoreCase("")) { + if (device.getName().toString().equalsIgnoreCase("hiro")) { + scanDeviceNameList.add(device.getAddress()); + if (scaninterface != null) { + scaninterface.addDevice(device, uuid, + String.valueOf(transmissionpower)); + } + + } + } + + } + } + + }; + + public void decodescan(String data) { + // byte[] s = data.getBytes(); + int datalength = 0; + int length; + int type; + int i = 0; + int j = 2; + String deviceType; + while (datalength != data.length()) { + length = Integer.parseInt(data.substring(i, i + j), 16); + type = Integer.parseInt(data.substring((i + j), i + j + 2), 16); + switch (type) { + case 1: + break; + case 2: + uuid = data.substring((i + j + 2), i + j + (length * 2)); + break; + case 3: + uuid = data.substring((i + j + 2), i + j + (length * 2)); + break; + case 4: + uuid = data.substring((i + j + 2), i + j + (length * 2)); + break; + case 5: + uuid = data.substring((i + j + 2), i + j + (length * 2)); + break; + case 6: + uuid = data.substring((i + j + 2), i + j + (length * 2)); + break; + case 7: + uuid = data.substring((i + j + 2), i + j + (length * 2)); + break; + case 9: + devicename = hextoString(data.substring((i + j + 2), i + j + + (length * 2))); + // Log.e("deviceName==", devicename); + break; + case 10: // for the transmission power + transmissionpower = Integer.parseInt( + data.substring((i + j + 2), i + j + (length * 2)), 16); + Log.e("transmissionpower ", " " + transmissionpower); + break; + case 255: + comp_spe = data.substring((i + j + 2), i + j + (length * 2)); + break; + } + // i = i + j + 2 + length; + Log.e("manufacuterID uuid-->", " " + uuid); + i = i + j + (length * 2); + datalength = i; + if (length == 0) + break; + } + } + + public static String bytesToHex(byte[] bytes) { + char[] hexChars = new char[bytes.length * 2]; + int v; + for (int j = 0; j < bytes.length; j++) { + v = bytes[j] & 0xFF; + hexChars[j * 2] = hexArray[v >>> 4]; + hexChars[j * 2 + 1] = hexArray[v & 0x0F]; + } + return new String(hexChars); + } + + public String hextoString(String hex) { + + StringBuilder output = new StringBuilder(); + for (int j = 0; j < hex.length(); j += 2) { + String str = hex.substring(j, j + 2); + output.append((char) Integer.parseInt(str, 16)); + } + return output.toString(); + } + + public void makeandconnectBDA(BluetoothDevice device, + DeviceInfoModel devmodel) { + + if (ScanBGService.hash_service_connected_device_list != null + && ScanBGService.hash_service_connected_device_list.size() > 0 + && ScanBGService.hash_service_connected_device_list + .containsKey(device.getAddress())) { + + BluetoothDeviceActor bda = ScanBGService.hash_service_connected_device_list + .get(device.getAddress()); + bda.setDevmodel(devmodel); + scaninterface = bda; + bda.connectedDevice(device); + + } else { + + BluetoothDeviceActor serviceBDA = new BluetoothDeviceActor(); + + serviceBDA.initialization(context); + serviceBDA.setmDevice(device); + serviceBDA.setDeviceMacAddress(device.getAddress()); + serviceBDA.setContext(context); + serviceBDA.setBda(serviceBDA); + serviceBDA.setDevmodel(devmodel); + scaninterface = serviceBDA; + serviceBDA.connectedDevice(device); + } + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/ScanInterface.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/ScanInterface.java.svn-base new file mode 100644 index 0000000..ad32bab --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/ScanInterface.java.svn-base @@ -0,0 +1,9 @@ +package com.hiroapp.common; + +import android.bluetooth.BluetoothDevice; + +public interface ScanInterface { + + public void connectedDevice(BluetoothDevice device); + public void addDevice(BluetoothDevice scandevices, String uuid, String string); +} diff --git a/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/Utils.java.svn-base b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/Utils.java.svn-base new file mode 100644 index 0000000..a6313a0 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/common/.svn/text-base/Utils.java.svn-base @@ -0,0 +1,353 @@ +package com.hiroapp.common; + +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.Notification; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.bluetooth.BluetoothAdapter; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.IntentFilter; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.net.Uri; +import android.os.Environment; +import android.support.v4.app.NotificationCompat; +import android.util.Log; +import android.view.View; +import android.view.inputmethod.InputMethodManager; + +import com.hiroapp.main.MainActivity; +import com.hiroapp.main.R; + +public class Utils { + + public final static String ACTION_GATT_CONNECTED = "ACTION_GATT_CONNECTED"; + public final static String ACTION_GATT_DISCONNECTED = "ACTION_GATT_DISCONNECTED"; + public final static String ACTION_DEVICE_NOT_FOUND = "ACTION_DEVICE_NOT_FOUND"; + public final static String ACTION_CONNECT_FAIL = "ACTION_CONNECT_FAIL"; + public final static String ACTION_BATTERY_LEVEL = "ACTION_BATTERY_LEVEL"; + + public final static String ACTION_DESCRIPTOR_WRITE = "ACTION_DESCRIPTOR_WRITE"; + public final static String ACTION_ALERT = "ACTION_ALERT"; + public final static String ACTION_RSSI = "ACTION_RSSI"; + + public static BluetoothDeviceActor bdaForbattery; + + public static BluetoothDeviceActor bda; + + public static BluetoothAdapter btAdapter; + + public static AlertDialog alertDialog = null; + + public static int REQUEST_ENABLE_BT = 0001; + + + public static BluetoothDeviceActor getBdaForbattery() { + return bdaForbattery; + } + + public static void setBdaForbattery(BluetoothDeviceActor bdaForbattery) { + Utils.bdaForbattery = bdaForbattery; + } + + public static BluetoothDeviceActor getBda() { + return bda; + } + + public static void setBda(BluetoothDeviceActor bda1) { + bda = bda1; + } + + public static IntentFilter makeIntentFilter() { + + IntentFilter filter = new IntentFilter(); + filter.addAction(ACTION_GATT_CONNECTED); + filter.addAction(ACTION_GATT_DISCONNECTED); + filter.addAction(ACTION_DEVICE_NOT_FOUND); + filter.addAction(ACTION_CONNECT_FAIL); + filter.addAction(ACTION_BATTERY_LEVEL); + filter.addAction(ACTION_DESCRIPTOR_WRITE); + filter.addAction(ACTION_ALERT); + filter.addAction(ACTION_RSSI); + + return filter; + } + + public static BluetoothAdapter getBTAdapter() { + btAdapter = BluetoothAdapter.getDefaultAdapter(); + return btAdapter; + } + + + /** + * Checking whether net connection is available or not. + * + * @param nContext + * @return true if net connection is available otherwise false + */ + public static boolean isNetworkAvailable(Context nContext) { + boolean isNetAvailable = false; + if (nContext != null) { + ConnectivityManager mConnectivityManager = (ConnectivityManager) nContext + .getSystemService(Context.CONNECTIVITY_SERVICE); + + if (mConnectivityManager != null) { + boolean mobileNetwork = false; + boolean wifiNetwork = false; + + boolean mobileNetworkConnecetd = false; + boolean wifiNetworkConnecetd = false; + + NetworkInfo mobileInfo = mConnectivityManager + .getNetworkInfo(ConnectivityManager.TYPE_MOBILE); + NetworkInfo wifiInfo = mConnectivityManager + .getNetworkInfo(ConnectivityManager.TYPE_WIFI); + + if (mobileInfo != null) + mobileNetwork = mobileInfo.isAvailable(); + + if (wifiInfo != null) + wifiNetwork = wifiInfo.isAvailable(); + + if (wifiNetwork == true || mobileNetwork == true) { + if (mobileInfo != null) + mobileNetworkConnecetd = mobileInfo + .isConnectedOrConnecting(); + if (wifiInfo != null) + wifiNetworkConnecetd = wifiInfo + .isConnectedOrConnecting(); + } + + isNetAvailable = (mobileNetworkConnecetd || wifiNetworkConnecetd); + } + } + return isNetAvailable; + } + + + public static void showBluetoothDialog(String title, String msg, + final Context context) { + AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context); + dialogBuilder.setPositiveButton("Settings", + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + dialog.dismiss(); + Intent enableIntent = new Intent( + BluetoothAdapter.ACTION_REQUEST_ENABLE); + ((Activity) context).startActivityForResult( + enableIntent, Utils.REQUEST_ENABLE_BT); + } + }); + dialogBuilder.setNegativeButton("Cancel", + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + dialog.dismiss(); + } + }); + dialogBuilder.setTitle(title); + dialogBuilder.setMessage(msg); + dialogBuilder.show(); + } + + public static void showOKAlertMsg(String title, String msg, Context context) { + AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context); + dialogBuilder.setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + dialog.dismiss(); + } + }); + + dialogBuilder.setTitle(title); + dialogBuilder.setMessage(msg); + dialogBuilder.show(); + } + + + public static void hidekeyboard(Context context) { + InputMethodManager inputManager = (InputMethodManager) context + .getSystemService(Context.INPUT_METHOD_SERVICE); + + // check if no view has focus: + View view = ((Activity) context).getCurrentFocus(); + if (view != null) { + inputManager.hideSoftInputFromWindow(view.getWindowToken(), + InputMethodManager.HIDE_NOT_ALWAYS); + } + } + + public static void generateNotification(Context context, + String title, String msg, int id, boolean isDisSound) { + NotificationManager notificationManager = (NotificationManager) context + .getSystemService(context.NOTIFICATION_SERVICE); + + Notification n = new Notification.Builder(context) + .setContentTitle(title).setContentText(msg) + .setDefaults(Notification.DEFAULT_VIBRATE) + .setSmallIcon(R.drawable.notification_icon).build(); + + if(!isDisSound) + n.flags |= Notification.DEFAULT_SOUND; + + notificationManager.notify(id, n); + } + + public static void generateNotificationForConnect(Context context, + String title, String msg, int id) { + NotificationManager notificationManager = (NotificationManager) context + .getSystemService(context.NOTIFICATION_SERVICE); + + Notification n = new Notification.Builder(context) + .setContentTitle(title).setContentText(msg) + .setSmallIcon(R.drawable.notification_icon).build(); + notificationManager.notify(id, n); + } + + + public static void removeNotification(Context context,int id) { + NotificationManager notificationManager = (NotificationManager) context + .getSystemService(context.NOTIFICATION_SERVICE); + + notificationManager.cancel(id); + } + + + public static void generateNotificationForFindPhone(Context context, + String title, String msg, int id) { + + Intent i = new Intent(context,MainActivity.class); + + i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK + | Intent.FLAG_ACTIVITY_CLEAR_TOP + | Intent.FLAG_ACTIVITY_SINGLE_TOP); + + PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, + i, PendingIntent.FLAG_UPDATE_CURRENT); + + + NotificationManager notificationManager = (NotificationManager) context + .getSystemService(context.NOTIFICATION_SERVICE); + + NotificationCompat.Builder mBuilder = + new NotificationCompat.Builder(context) + .setSmallIcon(R.drawable.notification_icon) + .setContentTitle(title) + .setContentText(msg) + .setAutoCancel(true); + mBuilder.setContentIntent(pendingIntent); + notificationManager.notify(id, mBuilder.build()); + + } + + public static void makeDirectory(Context context) { + + if (Environment.getExternalStorageDirectory().exists()) { + File wallpaperDirectory = new File( + Environment.getExternalStorageDirectory() + File.separator + + context.getString(R.string.FolderPath)); + + if (!wallpaperDirectory.exists()) + wallpaperDirectory.mkdirs(); + + } else { +// Log.e("Not Exist", "Sd Cards Not Exist"); + } + + } + + public static Bitmap resizeBitmap(int targetW, int targetH, String path) { + BitmapFactory.Options bmOptions = new BitmapFactory.Options(); + bmOptions.inJustDecodeBounds = true; + BitmapFactory.decodeFile(path, bmOptions); + int photoW = bmOptions.outWidth; + int photoH = bmOptions.outHeight; + + int scaleFactor = 1; + if ((targetW > 0) || (targetH > 0)) { + scaleFactor = Math.min(photoW / targetW, photoH / targetH); + } + + bmOptions.inJustDecodeBounds = false; + bmOptions.inSampleSize = scaleFactor; + bmOptions.inPurgeable = true; + + return BitmapFactory.decodeFile(path, bmOptions); + } + + public static Bitmap decodeUri(Context context, Uri selectedImage) + throws FileNotFoundException { + + // Decode image size + BitmapFactory.Options o = new BitmapFactory.Options(); + o.inJustDecodeBounds = true; + BitmapFactory.decodeStream(context.getContentResolver() + .openInputStream(selectedImage), null, o); + + // Find the correct scale value. It should be the power of 2. + final int REQUIRED_SIZE_WIDTH = 480, REQUIRED_SIZE_HEIGHT = 800; + int width_tmp = o.outWidth, height_tmp = o.outHeight; + int scale = 1; + + if (height_tmp > REQUIRED_SIZE_HEIGHT + || width_tmp > REQUIRED_SIZE_WIDTH) { + if (width_tmp > height_tmp) { + scale = Math.round((float) height_tmp + / (float) REQUIRED_SIZE_HEIGHT); + } else { + scale = Math.round((float) width_tmp + / (float) REQUIRED_SIZE_WIDTH); + } + } + + // Decode with inSampleSize + BitmapFactory.Options o2 = new BitmapFactory.Options(); + o2.inSampleSize = scale; + return BitmapFactory.decodeStream(context.getContentResolver() + .openInputStream(selectedImage), null, o2); + + } + + + public static void saveImageFile(Bitmap bitmap, String path) { + try { + + File ImageFile = new File(path); + if (!ImageFile.exists()) { + ImageFile.createNewFile(); + } else { + ImageFile.delete(); + ImageFile.createNewFile(); + } + if (bitmap != null) { + ByteArrayOutputStream bytes1 = new ByteArrayOutputStream(); + bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bytes1); + byte[] byteArray = bytes1.toByteArray(); + FileOutputStream imagefo = new FileOutputStream(ImageFile); + imagefo.write(byteArray); + imagefo.close(); + } + // Save image in /images and /thumb folder + + + } catch (FileNotFoundException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } finally { + bitmap = null; + } + } + + +} diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$1.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$1.class index a3a47a3..e040916 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$1.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$2.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$2.class index 966ebfe..ac1ae3b 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$2.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$2.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$3.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$3.class index 9ce347e..326f498 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$3.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$3.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$4.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$4.class index 1e3631e..90f079b 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$4.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$4.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$5.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$5.class index 51da5c8..8a2aa13 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$5.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$5.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$6.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$6.class index 146652b..14954e2 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$6.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$6.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$7.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$7.class new file mode 100644 index 0000000..3c3c8b2 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$7.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$ConnectionFailerTask.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$ConnectionFailerTask.class index a1d3c0b..e8e6f4f 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$ConnectionFailerTask.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$ConnectionFailerTask.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$ScheduleTask.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$ScheduleTask.class index 030805e..bac12a7 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$ScheduleTask.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$ScheduleTask.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$SoundTask.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$SoundTask.class index 31503bd..01e76c5 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$SoundTask.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor$SoundTask.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor.class b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor.class index 4192080..606ceea 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor.class and b/HiroApp/bin/classes/com/hiroapp/common/BluetoothDeviceActor.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/GPSTracker.class b/HiroApp/bin/classes/com/hiroapp/common/GPSTracker.class index b9f00b8..02871c2 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/GPSTracker.class and b/HiroApp/bin/classes/com/hiroapp/common/GPSTracker.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$1.class b/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$1.class new file mode 100644 index 0000000..eb63353 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$2.class b/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$2.class new file mode 100644 index 0000000..f06ce37 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$2.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$ScheduleTask.class b/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$ScheduleTask.class new file mode 100644 index 0000000..9039295 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/common/ScanDev2$ScheduleTask.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/ScanDev2.class b/HiroApp/bin/classes/com/hiroapp/common/ScanDev2.class new file mode 100644 index 0000000..adf9f86 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/common/ScanDev2.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/ScanDevices$1.class b/HiroApp/bin/classes/com/hiroapp/common/ScanDevices$1.class index 2e8bf4b..bf8c37a 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/ScanDevices$1.class and b/HiroApp/bin/classes/com/hiroapp/common/ScanDevices$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/ScanDevices.class b/HiroApp/bin/classes/com/hiroapp/common/ScanDevices.class index a3c0cab..69f07de 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/ScanDevices.class and b/HiroApp/bin/classes/com/hiroapp/common/ScanDevices.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/common/Utils.class b/HiroApp/bin/classes/com/hiroapp/common/Utils.class index 76c0112..0950903 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/common/Utils.class and b/HiroApp/bin/classes/com/hiroapp/common/Utils.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/all-wcprops b/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/all-wcprops new file mode 100644 index 0000000..fdc98f0 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/all-wcprops @@ -0,0 +1,11 @@ +K 25 +svn:wc:ra_dav:version-url +V 71 +/svn/HeroApp_Android/!svn/ver/31/trunk/HeroApp/src/com/hiroapp/dbhelper +END +DBHelper.java +K 25 +svn:wc:ra_dav:version-url +V 85 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/dbhelper/DBHelper.java +END diff --git a/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/entries b/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/entries new file mode 100644 index 0000000..8dadd23 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com/hiroapp/dbhelper +https://xp-dev.com/svn/HeroApp_Android + + + +2015-01-31T08:33:48.671505Z +31 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +DBHelper.java +file +44 + + + +2015-02-16T06:44:24.000000Z +0467de96b7661eaf614435cb411e08f4 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +15870 + diff --git a/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/prop-base/DBHelper.java.svn-base b/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/prop-base/DBHelper.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/prop-base/DBHelper.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/text-base/DBHelper.java.svn-base b/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/text-base/DBHelper.java.svn-base new file mode 100644 index 0000000..e7ba546 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/dbhelper/.svn/text-base/DBHelper.java.svn-base @@ -0,0 +1,538 @@ +package com.hiroapp.dbhelper; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.util.ArrayList; +import java.util.Hashtable; +import java.util.LinkedHashMap; +import java.util.UUID; + +import android.content.ContentValues; +import android.content.Context; +import android.database.Cursor; +import android.database.SQLException; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.database.sqlite.SQLiteOpenHelper; +import android.util.Log; + +import com.google.android.gms.internal.is; +import com.hiroapp.main.R; +import com.hiroapp.model.CharacteristicsModel; +import com.hiroapp.model.DeviceInfoModel; +import com.hiroapp.model.OperationModel; + +public class DBHelper extends SQLiteOpenHelper { + + private static Context context; + private static SQLiteDatabase db; + private final static int DB_VERSION = 1; + private static String tbl_deviceinfo = "DeviceInfo"; + private static String tbl_services = "Services"; + private static String tbl_characteristic = "Characteristics"; + private static String tbl_operationType = "OperationType"; + + private final static String TAG = DBHelper.class.getSimpleName(); + + public DBHelper(Context mcontext) { + super(mcontext, mcontext.getResources().getString(R.string.DB_NAME), + null, DB_VERSION); + context = mcontext; + // TODO Auto-generated constructor stub + } + + @Override + public void onCreate(SQLiteDatabase db) { + // TODO Auto-generated method stub + + } + + @Override + public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { + + } + + /** + * Function is used to create a Database. + * + * @throws java.io.IOException + */ + public void createDataBase() throws IOException { + // ---Check whether database is already created or not--- + boolean dbExist = checkDataBase(); + + if (!dbExist) { + this.getReadableDatabase(); + try { + // ---If not created then copy the database--- + copyDataBase(); + this.close(); + } catch (IOException e) { + throw new Error("Error copying database"); + } + this.getWritableDatabase(); + } else { + this.getWritableDatabase(); + } + } + + /** + * Copy the database to the output stream + * + * @throws java.io.IOException + */ + private void copyDataBase() throws IOException { + InputStream myInput = context.getAssets().open( + context.getString(R.string.DB_NAME)); + String outFileName = context.getString(R.string.DB_PATH) + + context.getString(R.string.DB_NAME); + OutputStream myOutput = new FileOutputStream(outFileName); + byte[] buffer = new byte[1024]; + int length; + while ((length = myInput.read(buffer)) > 0) { + myOutput.write(buffer, 0, length); + } + myOutput.flush(); + myOutput.close(); + myInput.close(); + } + + /** + * Open the database + * + * @throws android.database.SQLException + */ + public void openDataBase() throws SQLException { + // --- Open the database--- + String myPath = context.getString(R.string.DB_PATH) + + context.getString(R.string.DB_NAME); + db = SQLiteDatabase.openDatabase(myPath, null, + SQLiteDatabase.OPEN_READWRITE); + + } + + /** + * Check whether database already created or not + * + * @return boolean + */ + private boolean checkDataBase() { + try { + String myPath = context.getString(R.string.DB_PATH) + + context.getString(R.string.DB_NAME); + File f = new File(myPath); + if (f.exists()) + return true; + else + return false; + } catch (SQLiteException e) { + e.printStackTrace(); + return false; + } + } + + // get Service UUID + public int getServiceIdFromUUIDAndDeviceId(UUID uuid, int deviceId) { + + int id = -1; + Cursor cursor = null; + + cursor = db.query(tbl_services, null, "ServiceUUID='" + uuid + "'", + null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + id = cursor.getInt(cursor.getColumnIndex("ID")); + + } + + if (cursor != null) + cursor.close(); + + return id; + } + + // get Characteristic of service. + public Hashtable getCharacteristicsOfService( + int serviceId, int deviceId) { + + Hashtable table = new Hashtable(); + + CharacteristicsModel model = null; + Cursor cursor = null; + + cursor = db.query(tbl_characteristic, null, "ServiceId=" + serviceId, + null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + + for (int i = 0; i < cursor.getCount(); i++) { + + model = new CharacteristicsModel(); + model.setId(cursor.getInt(cursor.getColumnIndex("ID"))); + model.setCharName(cursor.getString(cursor + .getColumnIndex("CharName"))); + model.setCharUUID(cursor.getString( + cursor.getColumnIndex("CharUUID")).trim()); + model.setServiceId(cursor.getInt(cursor + .getColumnIndex("ServiceId"))); + model.setDeviceId(cursor.getInt(cursor + .getColumnIndex("DeviceId"))); + model.setObservable(cursor.getInt(cursor + .getColumnIndex("IsObservable"))); + + table.put(model.getCharUUID(), model); + cursor.moveToNext(); + + } + + } + + if (cursor != null) + cursor.close(); + + return table; + } + + public ArrayList performOperation(String command) { + + ArrayList list = new ArrayList(); + + int operationId = -1; + Cursor cursor = null; + + cursor = db.query(tbl_operationType, null, "OperationName='" + command + + "' AND DeviceId=1", null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + operationId = cursor.getInt(cursor.getColumnIndex("ID")); + + } + if (cursor != null) + cursor.close(); + + list = getOperationSequenceData(operationId, command); + + return list; + + } + + public ArrayList getOperationSequenceData(int operationId, + String command) { + + OperationModel model = null; + ArrayList list = new ArrayList(); + + String query = "select OS.ID,OS.OperationId,OS.CharId,OS.Operation,OS.Value,OS.ExpectedValue,CH.CharUUID," + + "CH.ServiceId,CH.CharName,CH.CharReturnType,SE.ServiceUUID,OT.OperationName from OperationSequence OS, Characteristics CH, Services SE," + + "OperationType OT where OS.OperationId=" + + operationId + + " and CH.ID=OS.CharId and SE.ID=CH.ServiceId and OS.OperationId = OT.ID"; + +// Log.e("Query", "Query == " + query); + + Cursor cursor = db.rawQuery(query, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + + for (int i = 0; i < cursor.getCount(); i++) { + + model = new OperationModel(); + model.setId(cursor.getInt(cursor.getColumnIndex("ID"))); + model.setCharRefId(cursor.getInt(cursor + .getColumnIndex("CharId"))); + model.setCharUUID(cursor.getString(cursor + .getColumnIndex("CharUUID"))); + model.setOperation(cursor.getString(cursor + .getColumnIndex("Operation"))); + model.setOperationRefId(cursor.getInt(cursor + .getColumnIndex("OperationId"))); + model.setServiceUUID(cursor.getString(cursor + .getColumnIndex("ServiceUUID"))); + model.setOperationName(cursor.getString(cursor + .getColumnIndex("OperationName"))); + model.setCharName(cursor.getString(cursor + .getColumnIndex("CharName"))); + model.setCharReturnType(cursor.getString(cursor + .getColumnIndex("CharReturnType"))); + model.setExpectedValue(cursor.getString(cursor + .getColumnIndex("ExpectedValue"))); + model.setValue(cursor.getString(cursor.getColumnIndex("Value"))); + + list.add(model); + cursor.moveToNext(); + + } + } + + if (cursor != null) + cursor.close(); + + return list; + + } + + public int insertDeviceInfo(DeviceInfoModel deviceInfo) { + int id = 0; + ContentValues devval = new ContentValues(); + devval.put("DeviceSerialNumber", deviceInfo.getDeviceSerialNumber()); + devval.put("DeviceMacAddress", deviceInfo.getDeviceMacAddress()); + devval.put("DeviceLogicalName", deviceInfo.getDeviceLogicalName()); +// Log.e("insertCommandInfo", "Insert Fresh Command to DB"); + id = (int) db.insert(tbl_deviceinfo, null, devval); + return id; + } + + public boolean checkIfDeviceExists(DeviceInfoModel model) { + Cursor cursor = null; + + cursor = db.query(tbl_deviceinfo, null, + "DeviceMacAddress='" + model.getDeviceMacAddress() + "'", null, + null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + if (cursor != null) + cursor.close(); + return true; + } + if (cursor != null) + cursor.close(); + + return false; + } + + public boolean checkIfDeviceCount() { + Cursor cursor = null; + + cursor = db.query(tbl_deviceinfo, null, null, null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + if (cursor != null) + cursor.close(); + return true; + } + if (cursor != null) + cursor.close(); + + return false; + } + + public LinkedHashMap getDeviceListFromDB() { + LinkedHashMap table = new LinkedHashMap(); + + DeviceInfoModel model = null; + Cursor cursor = null; + + cursor = db.query(tbl_deviceinfo, null, null, null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + + for (int i = 0; i < cursor.getCount(); i++) { + + model = new DeviceInfoModel(); + model.setDeviceSerialNumber(cursor.getString(cursor + .getColumnIndex("DeviceSerialNumber"))); + model.setDeviceMacAddress(cursor.getString(cursor + .getColumnIndex("DeviceMacAddress"))); + model.setDeviceLogicalName(cursor.getString(cursor + .getColumnIndex("DeviceLogicalName"))); + model.setDevicePhotoUrl(cursor.getString(cursor + .getColumnIndex("DevicePhotoUrl"))); + model.setId(cursor.getInt(cursor.getColumnIndex("ID"))); + model.setLatitude(cursor.getDouble(cursor + .getColumnIndex("Latitude"))); + model.setLongitude(cursor.getDouble(cursor + .getColumnIndex("Longitude"))); + model.setBatteryIndication(cursor.getInt(cursor + .getColumnIndex("BatteryIndication"))); + model.setDisconnectRing(cursor.getString(cursor + .getColumnIndex("DisconnectRing"))); + model.setHiroBeepVolume(cursor.getInt(cursor + .getColumnIndex("HiroBeepVolume"))); + model.setHiroDisBeepAlert(cursor.getInt(cursor + .getColumnIndex("HiroDisBeepAlert"))); + model.setHiroDisconnectBeep(cursor.getInt(cursor + .getColumnIndex("HiroDisconnectBeep"))); + model.setNotificationDisconnectAlert(cursor.getInt(cursor + .getColumnIndex("NotificationDisconnectAlert"))); + model.setNotificationIndication(cursor.getInt(cursor + .getColumnIndex("NotificationIndication"))); + model.setPhoneRing(cursor.getString(cursor + .getColumnIndex("PhoneRing"))); + + table.put(model.getDeviceMacAddress(), model); + cursor.moveToNext(); + } + } + + if (cursor != null) + cursor.close(); + + return table; + + } + + public void updatePhotoURL(String mac, String strImagePath) { + + ContentValues value = new ContentValues(); + value.put("DevicePhotoUrl", strImagePath); + + db.update(tbl_deviceinfo, value, "DeviceMacAddress = '" + mac + "'", + null); + + } + + public void updateLocation(String deviceMacAddress, double latitude, + double longitude) { + ContentValues value = new ContentValues(); + value.put("Latitude", latitude); + value.put("Longitude", longitude); + db.update(tbl_deviceinfo, value, "DeviceMacAddress = '" + + deviceMacAddress + "'", null); + + } + + public void removeDevice(String deviceMacAddress) { + + db.delete(tbl_deviceinfo, "DeviceMacAddress = '" + deviceMacAddress + + "'", null); + + } + + public DeviceInfoModel getdeviceSettings(String mac) { + + DeviceInfoModel model = null; + Cursor cursor = null; + + cursor = db.query(tbl_deviceinfo, null, "DeviceMacAddress='" + mac + + "'", null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + + for (int i = 0; i < cursor.getCount(); i++) { + + model = new DeviceInfoModel(); + model.setDeviceSerialNumber(cursor.getString(cursor + .getColumnIndex("DeviceSerialNumber"))); + model.setDeviceMacAddress(cursor.getString(cursor + .getColumnIndex("DeviceMacAddress"))); + model.setDeviceLogicalName(cursor.getString(cursor + .getColumnIndex("DeviceLogicalName"))); + model.setDevicePhotoUrl(cursor.getString(cursor + .getColumnIndex("DevicePhotoUrl"))); + model.setId(cursor.getInt(cursor.getColumnIndex("ID"))); + model.setLatitude(cursor.getDouble(cursor + .getColumnIndex("Latitude"))); + model.setLongitude(cursor.getDouble(cursor + .getColumnIndex("Longitude"))); + model.setBatteryIndication(cursor.getInt(cursor + .getColumnIndex("BatteryIndication"))); + model.setDisconnectRing(cursor.getString(cursor + .getColumnIndex("DisconnectRing"))); + model.setHiroBeepVolume(cursor.getInt(cursor + .getColumnIndex("HiroBeepVolume"))); + model.setHiroDisBeepAlert(cursor.getInt(cursor + .getColumnIndex("HiroDisBeepAlert"))); + model.setHiroDisconnectBeep(cursor.getInt(cursor + .getColumnIndex("HiroDisconnectBeep"))); + model.setNotificationDisconnectAlert(cursor.getInt(cursor + .getColumnIndex("NotificationDisconnectAlert"))); + model.setNotificationIndication(cursor.getInt(cursor + .getColumnIndex("NotificationIndication"))); + model.setPhoneRing(cursor.getString(cursor + .getColumnIndex("PhoneRing"))); + + } + + } + + if (cursor != null) + cursor.close(); + + return model; + } + + public void updateDeviceInfo(String macAddress, String column, int values) { + // TODO Auto-generated method stub + ContentValues value = new ContentValues(); + value.put(column, values); + db.update(tbl_deviceinfo, value, "DeviceMacAddress = '" + macAddress + + "'", null); + } + + public void updateDeviceRingInfo(String macAddress, String column, + String values) { + // TODO Auto-generated method stub + ContentValues value = new ContentValues(); + value.put(column, values); + db.update(tbl_deviceinfo, value, "DeviceMacAddress = '" + macAddress + + "'", null); + } + + public boolean getColumnValue(String deviceMacAddress, String key) { + + Cursor cursor = null; + boolean isTrue = false; + int value = 1; + cursor = db.query(tbl_deviceinfo, null, "DeviceMacAddress='" + + deviceMacAddress + "'", null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + + value = cursor.getInt(cursor.getColumnIndex(key)); + + if (value == 1) + isTrue = true; + else + isTrue = false; + } + + if (cursor != null) + cursor.close(); + + return isTrue; + } + + public String getRing(String deviceMacAddress, String key) { + Cursor cursor = null; + String path = ""; + cursor = db.query(tbl_deviceinfo, null, "DeviceMacAddress='" + + deviceMacAddress + "'", null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + path = cursor.getString(cursor.getColumnIndex(key)); + } + if (cursor != null) + cursor.close(); + return path; + } + + public int getnotificationId(String deviceMacAddress) { + // TODO Auto-generated method stub + + Cursor cursor = null; + int id = 1; + cursor = db.query(tbl_deviceinfo, null, "DeviceMacAddress='" + + deviceMacAddress + "'", null, null, null, null); + + if (cursor != null && cursor.getCount() > 0) { + cursor.moveToFirst(); + id = cursor.getInt(cursor.getColumnIndex("ID")); + } + if (cursor != null) + cursor.close(); + + return id; + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/dbhelper/DBHelper.class b/HiroApp/bin/classes/com/hiroapp/dbhelper/DBHelper.class index 88d411a..3672aa3 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/dbhelper/DBHelper.class and b/HiroApp/bin/classes/com/hiroapp/dbhelper/DBHelper.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/font/.svn/all-wcprops b/HiroApp/bin/classes/com/hiroapp/font/.svn/all-wcprops new file mode 100644 index 0000000..54b2ccc --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/font/.svn/all-wcprops @@ -0,0 +1,23 @@ +K 25 +svn:wc:ra_dav:version-url +V 67 +/svn/HeroApp_Android/!svn/ver/22/trunk/HeroApp/src/com/hiroapp/font +END +OpenSansRegular.java +K 25 +svn:wc:ra_dav:version-url +V 88 +/svn/HeroApp_Android/!svn/ver/22/trunk/HeroApp/src/com/hiroapp/font/OpenSansRegular.java +END +OpenSansLight.java +K 25 +svn:wc:ra_dav:version-url +V 86 +/svn/HeroApp_Android/!svn/ver/22/trunk/HeroApp/src/com/hiroapp/font/OpenSansLight.java +END +OpenSansBold.java +K 25 +svn:wc:ra_dav:version-url +V 85 +/svn/HeroApp_Android/!svn/ver/22/trunk/HeroApp/src/com/hiroapp/font/OpenSansBold.java +END diff --git a/HiroApp/bin/classes/com/hiroapp/font/.svn/entries b/HiroApp/bin/classes/com/hiroapp/font/.svn/entries new file mode 100644 index 0000000..4a27027 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/font/.svn/entries @@ -0,0 +1,130 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com/hiroapp/font +https://xp-dev.com/svn/HeroApp_Android + + + +2015-01-03T10:13:46.178203Z +22 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +OpenSansBold.java +file + + + + +2015-02-07T09:21:25.000000Z +f7b6c9bbe6f5f20f81f41fc83319729f +2015-01-03T10:13:46.178203Z +22 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +786 + +OpenSansLight.java +file + + + + +2015-02-07T09:21:25.000000Z +e76c133e67641627cafa068d2efb14ec +2015-01-03T10:13:46.178203Z +22 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +791 + +OpenSansRegular.java +file + + + + +2015-02-07T09:21:25.000000Z +257c63a883aa4970d7e0784ee928be91 +2015-01-03T10:13:46.178203Z +22 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +801 + diff --git a/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansBold.java.svn-base b/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansBold.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansBold.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansLight.java.svn-base b/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansLight.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansLight.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansRegular.java.svn-base b/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansRegular.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/font/.svn/prop-base/OpenSansRegular.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansBold.java.svn-base b/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansBold.java.svn-base new file mode 100644 index 0000000..2aadbc1 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansBold.java.svn-base @@ -0,0 +1,30 @@ +package com.hiroapp.font; + +import android.content.Context; +import android.graphics.Typeface; +import android.util.AttributeSet; +import android.widget.TextView; + +public class OpenSansBold extends TextView{ + + public OpenSansBold(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + init(); + } + + public OpenSansBold(Context context, AttributeSet attrs) { + super(context, attrs); + init(); + } + + public OpenSansBold(Context context) { + super(context); + init(); + } + + private void init() { + Typeface tf = Typeface.createFromAsset(getContext().getAssets(), + "fonts/OpenSansBold.ttf"); + setTypeface(tf); + } +} diff --git a/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansLight.java.svn-base b/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansLight.java.svn-base new file mode 100644 index 0000000..8d8cd1f --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansLight.java.svn-base @@ -0,0 +1,30 @@ +package com.hiroapp.font; + +import android.content.Context; +import android.graphics.Typeface; +import android.util.AttributeSet; +import android.widget.TextView; + +public class OpenSansLight extends TextView{ + + public OpenSansLight(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + init(); + } + + public OpenSansLight(Context context, AttributeSet attrs) { + super(context, attrs); + init(); + } + + public OpenSansLight(Context context) { + super(context); + init(); + } + + private void init() { + Typeface tf = Typeface.createFromAsset(getContext().getAssets(), + "fonts/OpenSansLight.ttf"); + setTypeface(tf); + } +} diff --git a/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansRegular.java.svn-base b/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansRegular.java.svn-base new file mode 100644 index 0000000..ccb79cf --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/font/.svn/text-base/OpenSansRegular.java.svn-base @@ -0,0 +1,30 @@ +package com.hiroapp.font; + +import android.content.Context; +import android.graphics.Typeface; +import android.util.AttributeSet; +import android.widget.TextView; + +public class OpenSansRegular extends TextView{ + + public OpenSansRegular(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + init(); + } + + public OpenSansRegular(Context context, AttributeSet attrs) { + super(context, attrs); + init(); + } + + public OpenSansRegular(Context context) { + super(context); + init(); + } + + private void init() { + Typeface tf = Typeface.createFromAsset(getContext().getAssets(), + "fonts/OpenSansRegular.ttf"); + setTypeface(tf); + } +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/all-wcprops b/HiroApp/bin/classes/com/hiroapp/main/.svn/all-wcprops new file mode 100644 index 0000000..107409a --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/all-wcprops @@ -0,0 +1,53 @@ +K 25 +svn:wc:ra_dav:version-url +V 67 +/svn/HeroApp_Android/!svn/ver/40/trunk/HeroApp/src/com/hiroapp/main +END +InfoActivity.java +K 25 +svn:wc:ra_dav:version-url +V 85 +/svn/HeroApp_Android/!svn/ver/19/trunk/HeroApp/src/com/hiroapp/main/InfoActivity.java +END +ScanActivity.java +K 25 +svn:wc:ra_dav:version-url +V 85 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/main/ScanActivity.java +END +MapActivity.java +K 25 +svn:wc:ra_dav:version-url +V 84 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/main/MapActivity.java +END +HeroApp_App.java +K 25 +svn:wc:ra_dav:version-url +V 84 +/svn/HeroApp_Android/!svn/ver/19/trunk/HeroApp/src/com/hiroapp/main/HeroApp_App.java +END +MainActivity.java +K 25 +svn:wc:ra_dav:version-url +V 85 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/main/MainActivity.java +END +AutoStart.java +K 25 +svn:wc:ra_dav:version-url +V 82 +/svn/HeroApp_Android/!svn/ver/19/trunk/HeroApp/src/com/hiroapp/main/AutoStart.java +END +SplashScreen.java +K 25 +svn:wc:ra_dav:version-url +V 85 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/main/SplashScreen.java +END +SettingsActivity.java +K 25 +svn:wc:ra_dav:version-url +V 89 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/main/SettingsActivity.java +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/entries b/HiroApp/bin/classes/com/hiroapp/main/.svn/entries new file mode 100644 index 0000000..1c9ac0c --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/entries @@ -0,0 +1,324 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com/hiroapp/main +https://xp-dev.com/svn/HeroApp_Android + + + +2015-02-07T11:42:35.315757Z +40 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +AutoStart.java +file + + + + +2014-12-26T05:36:48.000000Z +55a3a0b771d7dec73b6750bf626f94cb +2014-12-26T05:34:03.099554Z +19 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +1074 + +HeroApp_App.java +file + + + + +2014-12-26T05:36:40.000000Z +f5be8c30e3e4c625b8613bf7968655fa +2014-12-26T05:34:03.099554Z +19 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +1024 + +InfoActivity.java +file + + + + +2014-12-26T05:36:48.000000Z +3bbd0a49fc72c1da8122de704b6f6dd9 +2014-12-26T05:34:03.099554Z +19 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +769 + +MainActivity.java +file +44 + + + +2015-02-16T05:33:48.000000Z +79e8eb32146a1775ad7b5a263b1079cd +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +16664 + +MapActivity.java +file +44 + + + +2015-02-16T05:34:39.000000Z +955090c3fbc2f9cd5f31efc736c278a7 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +2993 + +RoundedMapView.java +file +44 + + + + + + + + + + + + + + + + + + + +deleted + +ScanActivity.java +file +44 + + + +2015-02-16T05:39:17.000000Z +0b5849d53c94bfe29098c6e4d25d99de +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +9028 + +SettingsActivity.java +file +44 + + + +2015-02-16T05:54:34.000000Z +8502f03776f1aead8dfd178f6600e56e +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +16290 + +SplashScreen.java +file +44 + + + +2015-02-16T06:06:03.000000Z +6efcf619f74ce7c4bd559eb1410979de +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +3304 + diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/AutoStart.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/AutoStart.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/AutoStart.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/HeroApp_App.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/HeroApp_App.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/HeroApp_App.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/InfoActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/InfoActivity.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/InfoActivity.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/MainActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/MainActivity.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/MainActivity.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/MapActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/MapActivity.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/MapActivity.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/ScanActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/ScanActivity.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/ScanActivity.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/SettingsActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/SettingsActivity.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/SettingsActivity.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/SplashScreen.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/SplashScreen.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/prop-base/SplashScreen.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/AutoStart.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/AutoStart.java.svn-base new file mode 100644 index 0000000..ceb1e1c --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/AutoStart.java.svn-base @@ -0,0 +1,39 @@ +package com.hiroapp.main; + +import android.bluetooth.BluetoothAdapter; +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.util.Log; + +import com.hiroapp.scanservice.ScanBGService; + +public class AutoStart extends BroadcastReceiver { + + @Override + public void onReceive(Context context, Intent intent) { + // TODO Auto-generated method stub + String action = intent.getAction(); + Log.e(":::::::::::::::Inside Receiver for auto start ", ":::::::" + + action); + + if (intent != null + && intent.getAction().equals( + "android.intent.action.BOOT_COMPLETED")) { + Log.e("Auto start service started ", ""); + // SecuRemote s = new SecuRemote(context); + + Intent startServiceIntent = new Intent(context, ScanBGService.class); + context.startService(startServiceIntent); + } else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { + + if (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1) == BluetoothAdapter.STATE_OFF) { + + } else { + ScanBGService.isScanRunning = false; + } + + } + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/HeroApp_App.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/HeroApp_App.java.svn-base new file mode 100644 index 0000000..03ca018 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/HeroApp_App.java.svn-base @@ -0,0 +1,59 @@ +package com.hiroapp.main; + +import android.app.Application; + +import com.hiroapp.dbhelper.DBHelper; + +public class HeroApp_App extends Application { + + /** + * Database Helper class to Access the database. + */ + private DBHelper dbhelper; + + /** + * @return the dbhelper + */ + public DBHelper getDbhelper() { + return dbhelper; + } + + /** + * @param dbhelper + * the dbhelper to set + */ + public void setDbhelper(DBHelper dbhelper) { + this.dbhelper = dbhelper; + } + + /** + * Called when the application class is called. and it create and open + * database. + */ + + public void onCreate() { + super.onCreate(); + dbhelper = new DBHelper(this); + try { + + // create and open database. + dbhelper.createDataBase(); + dbhelper.openDataBase(); + } catch (Exception e) { + e.printStackTrace(); + } + + } + + /** + * Method is called when terminate the Application class. + */ + @Override + public void onTerminate() { + // TODO Auto-generated method stub + super.onTerminate(); + if (dbhelper != null) + dbhelper.close(); + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/InfoActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/InfoActivity.java.svn-base new file mode 100644 index 0000000..b836fef --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/InfoActivity.java.svn-base @@ -0,0 +1,33 @@ +package com.hiroapp.main; + +import android.app.Activity; +import android.os.Bundle; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.Window; +import android.widget.ImageView; + +public class InfoActivity extends Activity { + private ImageView imgback; + + @Override + protected void onCreate(Bundle savedInstanceState) { + // TODO Auto-generated method stub + super.onCreate(savedInstanceState); + requestWindowFeature(Window.FEATURE_NO_TITLE); + + setContentView(R.layout.info); + + imgback = (ImageView) findViewById(R.id.imageView1); + imgback.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + finish(); + } + }); + + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/MainActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/MainActivity.java.svn-base new file mode 100644 index 0000000..8abc012 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/MainActivity.java.svn-base @@ -0,0 +1,596 @@ +package com.hiroapp.main; + +import java.io.File; +import java.io.FileNotFoundException; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Random; +import java.util.Set; + +import android.app.Activity; +import android.app.ActivityManager; +import android.app.AlertDialog; +import android.content.ActivityNotFoundException; +import android.content.BroadcastReceiver; +import android.content.ComponentName; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.pm.ResolveInfo; +import android.graphics.Bitmap; +import android.net.Uri; +import android.os.Bundle; +import android.os.Environment; +import android.provider.MediaStore; +import android.util.Log; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.Window; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.ArrayAdapter; +import android.widget.ImageView; +import android.widget.ListView; + +import com.hiroapp.adapter.ConnectedDeviceListAdapter; +import com.hiroapp.adapter.CropOptionAdapter; +import com.hiroapp.common.BluetoothDeviceActor; +import com.hiroapp.common.GPSTracker; +import com.hiroapp.common.Utils; +import com.hiroapp.dbhelper.DBHelper; +import com.hiroapp.model.CropOption; +import com.hiroapp.model.DeviceInfoModel; +import com.hiroapp.scanservice.ScanBGService; + +public class MainActivity extends Activity implements OnClickListener { + + static Context context; + private DBHelper dbhelper; + private HeroApp_App appStorage; + LinkedHashMap device_list; + private ListView list; + public static ConnectedDeviceListAdapter mLeDeviceListAdapter; + public static ArrayList connectedDeviceList; + + public static BluetoothDeviceActor BDA = null; + // private View footerView; + // private RelativeLayout relfooterMain; + private ArrayAdapter adapter = null; + private File file = null; + private Uri mImageCaptureUri = null; + private static final int PICK_FROM_CAMERA = 1; + private static final int CROP_FROM_CAMERA = 2; + private static final int PICK_FROM_FILE = 3; + private String strImagePath = null; + private Bitmap bitmap = null, photo = null; + + private int selectedPosition = -1; + private ImageView image; + private ImageView imgadd_device; + public static BluetoothDeviceActor lastConnectedBDA = null; + + public static Context mcontext; + + @Override + protected void onCreate(Bundle savedInstanceState) { + // TODO Auto-generated method stub + super.onCreate(savedInstanceState); + requestWindowFeature(Window.FEATURE_NO_TITLE); + + setContentView(R.layout.mainscreen); + + registerReceiver(mGattUpdateReceiver, Utils.makeIntentFilter()); + + initScreen(); + setListener(); + + mcontext = this; + + list.setOnItemClickListener(new OnItemClickListener() { + + @Override + public void onItemClick(AdapterView parent, View view, + final int position, long id) { + // TODO Auto-generated method stub + + image = (ImageView) view + .findViewById(R.id.inflate_device_imageMain); + + image.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + + selectedPosition = position; + chooseImage(); + } + }); + + } + }); + + } + + /** + * define click listener of the objects. + */ + private void setListener() { + // TODO Auto-generated method stub + imgadd_device.setOnClickListener(this); + } + + /** + * Initialization of the objects; + */ + private void initScreen() { + // TODO Auto-generated method stub + context = this; + appStorage = (HeroApp_App) context.getApplicationContext(); + dbhelper = appStorage.getDbhelper(); + device_list = new LinkedHashMap(); + imgadd_device = (ImageView) findViewById(R.id.imgaddnewdevice); + list = (ListView) findViewById(R.id.listView1); + connectedDeviceList = new ArrayList(); + + mLeDeviceListAdapter = new ConnectedDeviceListAdapter(this, + connectedDeviceList, list); + list.setAdapter(mLeDeviceListAdapter); + + final String[] items = getResources().getStringArray( + R.array.ImageSelection); + adapter = new ArrayAdapter(this, + android.R.layout.select_dialog_item, items); + checkBDA(); + startBGService(); + } + + @Override + protected void onResume() { + // TODO Auto-generated method stub + super.onResume(); + + } + + /** + * Method is used to check if Hiro connected or not. if connected then display UI. + */ + private void checkBDA() { + + // TODO Auto-generated method stub + if (dbhelper.checkIfDeviceCount()) { + // device Found then verify from service that this device is + // connected or not + device_list = dbhelper.getDeviceListFromDB(); + + Set e = device_list.keySet(); + + Iterator e1 = e.iterator(); + + while (e1.hasNext()) { + String mac_add = (String) e1.next(); + if (ScanBGService.hash_service_connected_device_list != null + & ScanBGService.hash_service_connected_device_list + .size() > 0) { + + if (ScanBGService.hash_service_connected_device_list + .containsKey(mac_add)) { + // verify the bda is conneted or not + DeviceInfoModel model = device_list.get(mac_add); + BluetoothDeviceActor bda = ScanBGService.hash_service_connected_device_list + .get(mac_add); + bda.setContext(MainActivity.this); + bda.setNotificationId(model.getId()); + bda.setPhotoUrl(model.getDevicePhotoUrl()); + bda.setDevmodel(model); + bda.setLatitude(model.getLatitude()); + bda.setLongitude(model.getLongitude()); + bda.setDeviceMacAddress(model.getDeviceMacAddress()); + mLeDeviceListAdapter.addDeviceTolist(bda); + mLeDeviceListAdapter.notifyDataSetChanged(); + + try { + if (bda.getmPlayer() != null + && bda.getmPlayer().isPlaying()) { + try { + bda.getmPlayer().stop(); + bda.getmPlayer().release(); + + Utils.removeNotification(mcontext, 500); + } catch (Exception e2) { + // TODO: handle exception + } + } + } catch (Exception e2) { + // TODO Auto-generated catch block + e2.printStackTrace(); + } + + } else { + DeviceInfoModel model = device_list.get(mac_add); + BluetoothDeviceActor bda = new BluetoothDeviceActor(); + bda.setContext(MainActivity.this); + bda.setNotificationId(model.getId()); + bda.setPhotoUrl(model.getDevicePhotoUrl()); + bda.setLatitude(model.getLatitude()); + bda.setLongitude(model.getLongitude()); + bda.setDeviceMacAddress(model.getDeviceMacAddress()); + bda.setDevmodel(model); + mLeDeviceListAdapter.addDeviceTolist(bda); + mLeDeviceListAdapter.notifyDataSetChanged(); + } + + } else { + + DeviceInfoModel model = device_list.get(mac_add); + BluetoothDeviceActor bda = new BluetoothDeviceActor(); + bda.setContext(MainActivity.this); + bda.setNotificationId(model.getId()); + bda.setPhotoUrl(model.getDevicePhotoUrl()); + bda.setLatitude(model.getLatitude()); + bda.setLongitude(model.getLongitude()); + bda.setDeviceMacAddress(model.getDeviceMacAddress()); + bda.setDevmodel(model); + mLeDeviceListAdapter.addDeviceTolist(bda); + mLeDeviceListAdapter.notifyDataSetChanged(); + } + } + + } else { + Log.e("MainActivity", "No device found from DB"); + } + } + + + /** + * Handle click event of the objects. + */ + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + + if (v == imgadd_device) { + Intent i = new Intent(MainActivity.this, ScanActivity.class); + startActivity(i); + } + + } + + /** + * Start Background service of the app. that scan Hiro in background if not connected. + */ + public static void startBGService() { + + if (!isMyServiceRunning()) { + Log.e("service started first time", ""); + ScanBGService.intentService = new Intent(context, + ScanBGService.class); + context.startService(ScanBGService.intentService); + + } else { + Log.e(" service is already running ", ""); + } + + } + + /** + * Check if Background service is already running. if not then start background service again. + * @return + */ + static boolean isMyServiceRunning() { + try { + final ActivityManager manager; + if (context != null) { + manager = (ActivityManager) context + .getSystemService(ACTIVITY_SERVICE); + for (ActivityManager.RunningServiceInfo service : manager + .getRunningServices(Integer.MAX_VALUE)) { + if ("com.heroapp.scanservice.ScanBGService" + .equalsIgnoreCase(service.service.getClassName())) { + Log.e("com.heroapp.scanservice.ScanBGService", ""); + return true; + } + } + } + } catch (NullPointerException ex) { + } catch (Exception e) { + } + return false; + } + + + /** + * BroadcastReceiver to handle the event that come from Hiro. + */ + private final BroadcastReceiver mGattUpdateReceiver = new BroadcastReceiver() { + @Override + public void onReceive(Context context, Intent intent) { + final String action = intent.getAction(); + + if (Utils.ACTION_GATT_CONNECTED.equals(action)) { + + } else if (Utils.ACTION_GATT_DISCONNECTED.equals(action)) { + + getAndStoreLocation(); + + } else if (Utils.ACTION_DESCRIPTOR_WRITE.equals(action)) { + } else if (Utils.ACTION_BATTERY_LEVEL.equals(action)) { + + mLeDeviceListAdapter.updateBattery(Utils.getBdaForbattery()); + + } else if (Utils.ACTION_RSSI.equals(action)) { + int rssi = intent.getIntExtra("Rssi", 0); + // Log.e("Average RSSI", "RSSI = " + rssi); + mLeDeviceListAdapter.updateRssi(Utils.getBda()); + } + + } + }; + + /** + * called when Activity is destroy and unregister the broadcast receiver. + */ + protected void onDestroy() { + super.onDestroy(); + try { + unregisterReceiver(mGattUpdateReceiver); + } catch (IllegalArgumentException ex) { + + } catch (Exception e) { + + } + }; + + + /** + * Method is used to pick the Image from File or Capture the image from camera. + */ + public void chooseImage() { + AlertDialog.Builder builder = new AlertDialog.Builder(this); + builder.setTitle("Choose Image"); + builder.setAdapter(adapter, new DialogInterface.OnClickListener() { + + public void onClick(DialogInterface dialog, int item) { + if (item == 0) { + Utils.makeDirectory(MainActivity.this); + Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); + + Random random = new Random(); + int no = random.nextInt(); + + file = new File(Environment.getExternalStorageDirectory() + + File.separator + getString(R.string.FolderPath) + + File.separator + no + ".jpg"); + mImageCaptureUri = Uri.fromFile(file); + intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, + mImageCaptureUri); + + try { + intent.putExtra("return-data", true); + startActivityForResult(intent, PICK_FROM_CAMERA); + } catch (ActivityNotFoundException e) { + e.printStackTrace(); + } + } else { + Utils.makeDirectory(MainActivity.this); + + Random random = new Random(); + int no = random.nextInt(); + + file = new File(Environment.getExternalStorageDirectory() + + File.separator + getString(R.string.FolderPath) + + File.separator + no + ".jpg"); + + Intent intent = new Intent(); + intent.setType("image/*"); + intent.setAction(Intent.ACTION_GET_CONTENT); + startActivityForResult(Intent.createChooser(intent, + "Complete action using"), PICK_FROM_FILE); + } + } + }); + + final AlertDialog dialog_profile = builder.create(); + dialog_profile.show(); + } + + + /** + * Get the Result of the Pick Image from camera or Gallery. + */ + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + + Log.e("onacitivytresult == > result code ", "==" + resultCode); + if (resultCode != RESULT_OK) + return; + + switch (requestCode) { + case PICK_FROM_CAMERA: + doCrop(); + break; + + case PICK_FROM_FILE: + mImageCaptureUri = data.getData(); + + try { + if (bitmap != null) { + bitmap.recycle(); + bitmap = null; + } + bitmap = Utils.decodeUri(MainActivity.this, mImageCaptureUri); + } catch (FileNotFoundException e) { + e.printStackTrace(); + } + + Random random = new Random(); + int no = random.nextInt(); + + strImagePath = Environment.getExternalStorageDirectory() + + File.separator + getString(R.string.FolderPath) + + File.separator + no + ".jpg"; + + Utils.saveImageFile(bitmap, strImagePath); + + if (bitmap != null) { + image.setImageBitmap(bitmap); + String mac = connectedDeviceList.get(selectedPosition) + .getDeviceMacAddress(); + connectedDeviceList.get(selectedPosition).setPhotoUrl( + strImagePath); + dbhelper.updatePhotoURL(mac, strImagePath); + } + + break; + + case CROP_FROM_CAMERA: + Bundle extras = data.getExtras(); + Utils.makeDirectory(MainActivity.this); + + if (extras != null) { + if (photo != null) { + photo.recycle(); + photo = null; + } + photo = extras.getParcelable("data"); + + strImagePath = file.getAbsolutePath(); + + Utils.saveImageFile(photo, strImagePath); + + if (photo != null) { + String mac = connectedDeviceList.get(selectedPosition) + .getDeviceMacAddress(); + if (mac != null) { + connectedDeviceList.get(selectedPosition).setPhotoUrl( + strImagePath); + ScanBGService.hash_service_connected_device_list.get( + mac).setPhotoUrl(strImagePath); + dbhelper.updatePhotoURL(mac, strImagePath); + image.setImageBitmap(photo); + } + + } + } + break; + + } + } + + /** + * Is used to store the last Location of the Hiro when it disconnect with phone. + */ + private void getAndStoreLocation() { + + GPSTracker gps = new GPSTracker(MainActivity.this); + + // check if GPS enabled + if (gps.canGetLocation()) { + double latitude = gps.getLatitude(); + double longitude = gps.getLongitude(); + + //Log.e("LatLong", "Latitude = " + latitude + " And Longitude = " + // + longitude); + + dbhelper.updateLocation(lastConnectedBDA.getDeviceMacAddress(), + latitude, longitude); + + lastConnectedBDA.setLatitude(latitude); + lastConnectedBDA.setLongitude(longitude); + } + + // checkBDA(); + + mLeDeviceListAdapter.updateDisconnectEvent(lastConnectedBDA); + + } + + /** + * This Method is used to Crop the Image. If image is large in size then + * this is used to crop that image. Image taken from file or from Camera + * that will be croped by this method. + */ + private void doCrop() { + final ArrayList cropOptions = new ArrayList(); + Intent intent = new Intent("com.android.camera.action.CROP"); + intent.setType("image/*"); + List list = getPackageManager().queryIntentActivities( + intent, 0); + + int size = list.size(); + + if (size == 0) { + Utils.showOKAlertMsg(getString(R.string.app_name), + getString(R.string.Crop_error), MainActivity.this); + + return; + } else { + intent.setData(mImageCaptureUri); + intent.putExtra("outputX", 150); + intent.putExtra("outputY", 150); + intent.putExtra("aspectX", 1); + intent.putExtra("aspectY", 1); + intent.putExtra("scale", true); + intent.putExtra("return-data", true); + + if (size == 1) { + Intent i = new Intent(intent); + ResolveInfo res = list.get(0); + + i.setComponent(new ComponentName(res.activityInfo.packageName, + res.activityInfo.name)); + + startActivityForResult(i, CROP_FROM_CAMERA); + } else { + for (ResolveInfo res : list) { + final CropOption co = new CropOption(); + + co.title = getPackageManager().getApplicationLabel( + res.activityInfo.applicationInfo); + co.icon = getPackageManager().getApplicationIcon( + res.activityInfo.applicationInfo); + co.appIntent = new Intent(intent); + + co.appIntent + .setComponent(new ComponentName( + res.activityInfo.packageName, + res.activityInfo.name)); + cropOptions.add(co); + } + CropOptionAdapter adapter = new CropOptionAdapter( + getApplicationContext(), cropOptions); + + AlertDialog.Builder builder = new AlertDialog.Builder(this); + builder.setTitle("Choose Crop App"); + builder.setAdapter(adapter, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int item) { + startActivityForResult( + cropOptions.get(item).appIntent, + CROP_FROM_CAMERA); + } + }); + + builder.setOnCancelListener(new DialogInterface.OnCancelListener() { + @Override + public void onCancel(DialogInterface dialog) { + + if (mImageCaptureUri != null) { + getContentResolver().delete(mImageCaptureUri, null, + null); + mImageCaptureUri = null; + } + } + }); + + AlertDialog alert = builder.create(); + + alert.show(); + } + } + + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/MapActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/MapActivity.java.svn-base new file mode 100644 index 0000000..692502a --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/MapActivity.java.svn-base @@ -0,0 +1,107 @@ +package com.hiroapp.main; + +import android.app.Activity; +import android.os.Bundle; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.Window; +import android.widget.ImageView; +import android.widget.Toast; + +import com.google.android.gms.maps.CameraUpdateFactory; +import com.google.android.gms.maps.GoogleMap; +import com.google.android.gms.maps.MapFragment; +import com.google.android.gms.maps.model.CameraPosition; +import com.google.android.gms.maps.model.LatLng; +import com.google.android.gms.maps.model.MarkerOptions; +import com.hiroapp.font.OpenSansLight; + +public class MapActivity extends Activity { + + private GoogleMap googleMap; + private ImageView imgback; + + private double latitude; + private double longitude; + + private String title; + + private OpenSansLight txtTitle; + + @Override + protected void onCreate(Bundle savedInstanceState) { + // TODO Auto-generated method stub + super.onCreate(savedInstanceState); + requestWindowFeature(Window.FEATURE_NO_TITLE); + + setContentView(R.layout.map); + + txtTitle = (OpenSansLight) findViewById(R.id.map_title); + + latitude = getIntent().getDoubleExtra("latitude", 0); + longitude = getIntent().getDoubleExtra("longitude", 0); + title = getIntent().getStringExtra("title"); + + txtTitle.setText(title); + + imgback = (ImageView) findViewById(R.id.imageView1); + imgback.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + finish(); + } + }); + + initilizeMap(); + + } + + /** + * function to load map. If map is not created it will create it for you + * + * @param storeModelList2 + * */ + private void initilizeMap() { + if (googleMap == null) { + googleMap = ((MapFragment) getFragmentManager().findFragmentById( + R.id.map)).getMap(); + // googleMap.setMyLocationEnabled(true); + googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL); + googleMap.getUiSettings().setCompassEnabled(false); + googleMap.getUiSettings().setZoomControlsEnabled(false); + + if (latitude != 0 && longitude != 0) { + // create marker + MarkerOptions marker = new MarkerOptions().position( + new LatLng(latitude, longitude)).title("You were here"); + + // adding marker + googleMap.addMarker(marker); + + zoomCameraPosition(latitude, longitude); + } + + }// check if map is created successfully or not + if (googleMap == null) { + Toast.makeText(getApplicationContext(), + "Sorry! unable to create maps", Toast.LENGTH_SHORT).show(); + } + } + + /** + * It will zoom the Camera Position on the Map. + * @param latitude + * @param longitude + */ + public void zoomCameraPosition(double latitude, double longitude) { + + CameraPosition cameraPosition = new CameraPosition.Builder() + .target(new LatLng(latitude, longitude)).zoom(11).build(); + + googleMap.animateCamera(CameraUpdateFactory + .newCameraPosition(cameraPosition)); + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/ScanActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/ScanActivity.java.svn-base new file mode 100644 index 0000000..e731fde --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/ScanActivity.java.svn-base @@ -0,0 +1,327 @@ +package com.hiroapp.main; + +import java.util.ArrayList; + +import android.app.Activity; +import android.app.Dialog; +import android.app.ProgressDialog; +import android.bluetooth.BluetoothAdapter; +import android.bluetooth.BluetoothDevice; +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.DialogInterface; +import android.content.DialogInterface.OnDismissListener; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.os.Bundle; +import android.os.Handler; +import android.util.Log; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.Window; +import android.widget.AdapterView; +import android.widget.Button; +import android.widget.EditText; +import android.widget.ListView; +import android.widget.ProgressBar; +import android.widget.TextView; +import android.widget.Toast; + +import com.hiroapp.adapter.LeDeviceListAdapter; +import com.hiroapp.common.BluetoothDeviceActor; +import com.hiroapp.common.ScanDevices; +import com.hiroapp.common.ScanInterface; +import com.hiroapp.common.Utils; +import com.hiroapp.model.DeviceInfoModel; + +public class ScanActivity extends Activity implements OnClickListener, + ScanInterface { + + LeDeviceListAdapter mLeDeviceListAdapter; + ArrayList scanlist; + ListView lv; + ProgressBar prb; + TextView txtscanning; + ScanDevices scan; + Context context; + ProgressDialog progdialog; + public static BluetoothDeviceActor BDA; + public static final int REQUEST_ENABLE_BT = 0001; + BluetoothAdapter adapter; + + @Override + protected void onCreate(Bundle savedInstanceState) { + // TODO Auto-generated method stub + super.onCreate(savedInstanceState); + requestWindowFeature(Window.FEATURE_NO_TITLE); + setContentView(R.layout.scanscreen); + intiScreen(); + setListener(); + if (getPackageManager().hasSystemFeature( + PackageManager.FEATURE_BLUETOOTH_LE)) + startscanning(); + else + Toast.makeText(this, "BLE is not supported on this phone", + Toast.LENGTH_SHORT).show(); + + registerReceiver(mGattUpdateReceiver, Utils.makeIntentFilter()); + } + + /** + * It will start the scanning for near by Hiro. + */ + private void startscanning() { + // TODO Auto-generated method stub + if (adapter.isEnabled()) { + prb.setVisibility(View.VISIBLE); + scan = new ScanDevices(ScanActivity.this); + scan.startScanning(); + } else { + prb.setVisibility(View.INVISIBLE); + Intent enableIntent = new Intent( + BluetoothAdapter.ACTION_REQUEST_ENABLE); + startActivityForResult(enableIntent, REQUEST_ENABLE_BT); + + } + + } + + /** + * Handle the result when device Blue tooth is Enable. + */ + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + // TODO Auto-generated method stub + super.onActivityResult(requestCode, resultCode, data); + switch (requestCode) { + case REQUEST_ENABLE_BT: + if (resultCode == RESULT_OK) { + prb.setVisibility(View.VISIBLE); + scan = new ScanDevices(ScanActivity.this); + scan.startScanning(); + txtscanning.setText("Stop"); + } else { + txtscanning.setText("Scan"); + } + break; + + default: + break; + } + } + + /** + * define click listener of the objects. + */ + private void setListener() { + // TODO Auto-generated method stub + txtscanning.setOnClickListener(this); + } + + + /** + * Initialization of the objects; + */ + private void intiScreen() { + // TODO Auto-generated method stub + context = this; + scanlist = new ArrayList(); + adapter = BluetoothAdapter.getDefaultAdapter(); + mLeDeviceListAdapter = new LeDeviceListAdapter(this, scanlist); + prb = (ProgressBar) findViewById(R.id.progressbar); + lv = (ListView) findViewById(R.id.lstscanning); + txtscanning = (TextView) findViewById(R.id.txtscan); + lv.setAdapter(mLeDeviceListAdapter); + + lv.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() { + public void onItemClick(AdapterView parent, View view, + int position, long id) { + + scan.stopScanning(); + prb.setVisibility(View.INVISIBLE); + + BluetoothDevice btdevice = scanlist.get(position); + + showLogicalNameDialog(btdevice); + + } + }); + } + + @Override + public void connectedDevice(BluetoothDevice device) { + // TODO Auto-generated method stub + + } + + + /** + * Handle click event of the objects. + */ + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + switch (v.getId()) { + case R.id.txtscan: + if (txtscanning.getText().toString().equalsIgnoreCase("Stop")) { + prb.setVisibility(View.INVISIBLE); + scan.stopScanning(); + txtscanning.setText("Scan"); + } else { + + if (adapter.isEnabled()) { + if (scanlist != null && scanlist.size() > 0) + scanlist.clear(); + mLeDeviceListAdapter.notifyDataSetChanged(); + scan.startScanning(); + prb.setVisibility(View.VISIBLE); + txtscanning.setText("Stop"); + + } else { + prb.setVisibility(View.INVISIBLE); + Intent enableIntent = new Intent( + BluetoothAdapter.ACTION_REQUEST_ENABLE); + startActivityForResult(enableIntent, REQUEST_ENABLE_BT); + + } + } + break; + + default: + break; + } + } + + + /** + * Add device into List when it available into scan. + */ + @Override + public void addDevice(final BluetoothDevice scandevices, final String uuid, + final String transmissionpower) { + // TODO Auto-generated method stub + runOnUiThread(new Runnable() { + + @Override + public void run() { + // TODO Auto-generated method stub + if (mLeDeviceListAdapter != null) { + Log.e("getName", " " + scandevices.getName()); + try { + // if (scandevices != null + // && !scandevices.getName().equalsIgnoreCase("") + // || !scandevices.getName() + // .equalsIgnoreCase(null)) { + mLeDeviceListAdapter.addDeviceTolist(scandevices, uuid, + transmissionpower); + mLeDeviceListAdapter.notifyDataSetChanged(); + // } + } catch (NullPointerException ex) { + + } catch (Exception e) { + } + } + } + }); + + } + + /** + * BroadcastReceiver to handle the event that come from Hiro. + */ + private final BroadcastReceiver mGattUpdateReceiver = new BroadcastReceiver() { + @Override + public void onReceive(Context context, Intent intent) { + final String action = intent.getAction(); + + if (Utils.ACTION_GATT_CONNECTED.equals(action)) { + // Intent i = new Intent(ScanActivity.this, + // BeaconConfigurationScreen.class); + // startActivity(i); + + } else if (Utils.ACTION_GATT_DISCONNECTED.equals(action)) { + } else if (Utils.ACTION_DESCRIPTOR_WRITE.equals(action)) { + if (progdialog != null && progdialog.isShowing()) + progdialog.dismiss(); + + Handler handler = new Handler(); + handler.postDelayed(new Runnable() { + + @Override + public void run() { + finish(); + + } + }, 1000); + + } + + } + }; + + + /** + * called when Activity is destroy and unregister the broadcast receiver. + */ + protected void onDestroy() { + super.onDestroy(); + try { + unregisterReceiver(mGattUpdateReceiver); + } catch (IllegalArgumentException ex) { + + } catch (Exception e) { + + } + }; + + + /** + * It will display the Dialog to enter the Logical Name of the Hiro. + * @param btdevice + */ + + public void showLogicalNameDialog(final BluetoothDevice btdevice) { + final Dialog dlg = new Dialog(ScanActivity.this); + dlg.setContentView(R.layout.dlg_logical_name_layout); + dlg.setTitle(getResources().getString(R.string.app_name)); + dlg.setCancelable(true); + Button b1 = (Button) dlg.findViewById(R.id.dlg_logical_name_btn_OK); + + dlg.setOnDismissListener(new OnDismissListener() { + @Override + public void onDismiss(DialogInterface dialog) { + // TODO Auto-generated method stub + } + }); + b1.setOnClickListener(new OnClickListener() { + @Override + public void onClick(View v) { + dlg.dismiss(); + EditText et = (EditText) dlg + .findViewById(R.id.dlg_logical_name_edt_lname); + if (!et.getText().toString().equals("")) { + Utils.hidekeyboard(ScanActivity.this); + progdialog = ProgressDialog.show(ScanActivity.this, "", + "Please Wait Connecting Device", true); + progdialog.setCancelable(true); + DeviceInfoModel devinfo = new DeviceInfoModel(); + devinfo.setDeviceSerialNumber(btdevice.getName()); + devinfo.setDeviceMacAddress(btdevice.getAddress()); + devinfo.setDeviceLogicalName(et.getText().toString().trim()); + BDA = new BluetoothDeviceActor(); + BDA.initialization(ScanActivity.this); + BDA.setContext(context); + BDA.connectedDevice(btdevice); + BDA.setDevmodel(devinfo); + BDA.setBda(BDA); + } else { + Toast.makeText(ScanActivity.this, + "Field should not be blank.", Toast.LENGTH_SHORT) + .show(); + } + } + }); + dlg.show(); + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/SettingsActivity.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/SettingsActivity.java.svn-base new file mode 100644 index 0000000..ff27eaf --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/SettingsActivity.java.svn-base @@ -0,0 +1,540 @@ +package com.hiroapp.main; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.media.Ringtone; +import android.media.RingtoneManager; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.net.Uri; +import android.net.wifi.WifiInfo; +import android.net.wifi.WifiManager; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.Window; +import android.widget.CheckBox; +import android.widget.CompoundButton; +import android.widget.CompoundButton.OnCheckedChangeListener; +import android.widget.ImageView; + +import com.hiroapp.common.BluetoothDeviceActor; +import com.hiroapp.common.Utils; +import com.hiroapp.dbhelper.DBHelper; +import com.hiroapp.font.OpenSansLight; +import com.hiroapp.model.DeviceInfoModel; +import com.hiroapp.scanservice.ScanBGService; + +public class SettingsActivity extends Activity implements OnClickListener { + + private ImageView swbattery; + private ImageView swHeroAlert; + private ImageView swBeep; +// private ImageView swWifi; + private CheckBox chkNotification; + private CheckBox chkSoundAlert; + private CheckBox chkherobeepAlert; + + private ImageView imgback; + + private ImageView imginfo; + private SharedPreferences preferences; + + private OpenSansLight txtDisconnectRingtone; + private OpenSansLight txtPhoneRing; + private OpenSansLight txtDelete; +// private OpenSansLight txtWifiName; +// private OpenSansLight txtSave; + + private static DBHelper dbhelper; + private HeroApp_App appStorage; + + private String macAddress; + + private DeviceInfoModel model; + + private int position; + + @Override + protected void onCreate(Bundle savedInstanceState) { + // TODO Auto-generated method stub + requestWindowFeature(Window.FEATURE_NO_TITLE); + super.onCreate(savedInstanceState); + setContentView(R.layout.settings); + + initialization(); + setListener(); + + if (MainActivity.BDA != null) + macAddress = MainActivity.BDA.getDeviceMacAddress(); + + position = getIntent().getIntExtra("position", 0); + + // method is used to update the UI. + UpdateUi(); + + swBeep.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + if (model.isHiroBeepVolume() == 1) { + if (MainActivity.BDA.isConnected()) { + dbhelper.updateDeviceInfo(macAddress, "HiroBeepVolume", + 0); + model.setHiroBeepVolume(0); + swBeep.setImageResource(R.drawable.sw_mild); + } + } else { + if (MainActivity.BDA.isConnected()) { + dbhelper.updateDeviceInfo(macAddress, "HiroBeepVolume", + 1); + model.setHiroBeepVolume(1); + swBeep.setImageResource(R.drawable.sw_high); + } + } + } + }); + + + swbattery.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + if (model.isBatteryIndication() == 1) { + dbhelper.updateDeviceInfo(macAddress, "BatteryIndication", + 0); + model.setBatteryIndication(0); + swbattery.setImageResource(R.drawable.sw_disable); + } else { + dbhelper.updateDeviceInfo(macAddress, "BatteryIndication", + 1); + model.setBatteryIndication(1); + swbattery.setImageResource(R.drawable.sw_enable); + } + } + }); + + + + swHeroAlert.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + if (model.isHiroDisconnectBeep() == 1) { + if (MainActivity.BDA.isConnected()) { + MainActivity.BDA.deviceIsReadyForCommunication( + "LinkLossAlert", 1, "Write"); + + dbhelper.updateDeviceInfo(macAddress, + "HiroDisconnectBeep", 0); + model.setHiroDisconnectBeep(0); + swHeroAlert.setImageResource(R.drawable.sw_mild); + } + } else { + if (MainActivity.BDA.isConnected()) { + MainActivity.BDA.deviceIsReadyForCommunication( + "LinkLossAlert", 2, "Write"); + dbhelper.updateDeviceInfo(macAddress, + "HiroDisconnectBeep", 1); + model.setHiroDisconnectBeep(1); + swHeroAlert.setImageResource(R.drawable.sw_high); + } + + } + } + }); + + + chkNotification + .setOnCheckedChangeListener(new OnCheckedChangeListener() { + + @Override + public void onCheckedChanged(CompoundButton buttonView, + boolean isChecked) { + if (isChecked) { + dbhelper.updateDeviceInfo(macAddress, + "NotificationIndication", 1); + } else { + dbhelper.updateDeviceInfo(macAddress, + "NotificationIndication", 0); + } + } + }); + + chkSoundAlert.setOnCheckedChangeListener(new OnCheckedChangeListener() { + + @Override + public void onCheckedChanged(CompoundButton buttonView, + boolean isChecked) { + if (isChecked) { + dbhelper.updateDeviceInfo(macAddress, + "NotificationDisconnectAlert", 1); + } else { + dbhelper.updateDeviceInfo(macAddress, + "NotificationDisconnectAlert", 0); + } + } + }); + + chkherobeepAlert + .setOnCheckedChangeListener(new OnCheckedChangeListener() { + + @Override + public void onCheckedChanged(CompoundButton buttonView, + boolean isChecked) { + if (isChecked) { + dbhelper.updateDeviceInfo(macAddress, + "HiroDisBeepAlert", 1); + swHeroAlert.setEnabled(true); + + if (MainActivity.BDA.isConnected()) { + MainActivity.BDA.deviceIsReadyForCommunication( + "LinkLossAlert", 2, "Write"); + + if (model.isHiroDisconnectBeep() == 1) + swHeroAlert + .setImageResource(R.drawable.sw_high); + else + swHeroAlert + .setImageResource(R.drawable.sw_mild); + } + } else { + dbhelper.updateDeviceInfo(macAddress, + "HiroDisBeepAlert", 0); + swHeroAlert.setEnabled(false); + + if (MainActivity.BDA.isConnected()) { + MainActivity.BDA.deviceIsReadyForCommunication( + "LinkLossAlert", 0, "Write"); + } + + } + } + }); + } + + /** + * Method is used to update the Setting UI. + */ + private void UpdateUi() { + // TODO Auto-generated method stub + + if (macAddress != null && !macAddress.equalsIgnoreCase("")) { + + model = dbhelper.getdeviceSettings(macAddress); + + if (model != null) { + + if (model.isBatteryIndication() == 1) + swbattery.setImageResource(R.drawable.sw_enable); + else + swbattery.setImageResource(R.drawable.sw_disable); + + if (model.isNotificationIndication() == 1) + chkNotification.setChecked(true); + else + chkNotification.setChecked(false); + + if (model.isNotificationDisconnectAlert() == 1) + chkSoundAlert.setChecked(true); + else + chkSoundAlert.setChecked(false); + + if (model.isHiroDisBeepAlert() == 1) { + chkherobeepAlert.setChecked(true); + swHeroAlert.setEnabled(true); + } else { + chkherobeepAlert.setChecked(false); + swHeroAlert.setEnabled(false); + } + + if (model.isHiroDisconnectBeep() == 1) { + swHeroAlert.setImageResource(R.drawable.sw_high); + if (MainActivity.BDA.isConnected()) { + MainActivity.BDA.deviceIsReadyForCommunication( + "LinkLossAlert", 2, "Write"); + } + } else { + swHeroAlert.setImageResource(R.drawable.sw_mild); + if (MainActivity.BDA.isConnected()) { + MainActivity.BDA.deviceIsReadyForCommunication( + "LinkLossAlert", 1, "Write"); + } + } + + if (model.isHiroBeepVolume() == 1) + swBeep.setImageResource(R.drawable.sw_high); + else + swBeep.setImageResource(R.drawable.sw_mild); + + setRingname(model); + + } + } + +// String ssid = getCurrentSsid(SettingsActivity.this); +// txtWifiName.setText(ssid); + + + } + + /** + * Initialization of the objects; + */ + private void initialization() { + + imginfo = (ImageView) findViewById(R.id.Settings_img_info); + imgback = (ImageView) findViewById(R.id.imageView1); + + swbattery = (ImageView) findViewById(R.id.settings_sw_battery); + swHeroAlert = (ImageView) findViewById(R.id.settings_sw_heroalert); + swBeep = (ImageView) findViewById(R.id.settings_sw_beepvolume); +// swWifi = (ImageView) findViewById(R.id.settings_sw_wifimode); + + chkNotification = (CheckBox) findViewById(R.id.settings_chk_pushnotification); + chkSoundAlert = (CheckBox) findViewById(R.id.settings_chk_phonesound); + chkherobeepAlert = (CheckBox) findViewById(R.id.settings_chk_heroalert); + preferences = this.getSharedPreferences(getString(R.string.app_name), + Activity.MODE_WORLD_WRITEABLE); + + txtDisconnectRingtone = (OpenSansLight) findViewById(R.id.Settings_txt_defaultring); + txtPhoneRing = (OpenSansLight) findViewById(R.id.Settings_txt_defaultring_for_phone); + txtDelete = (OpenSansLight) findViewById(R.id.delete); +// txtWifiName = (OpenSansLight) findViewById(R.id.settings_txt_wifiName); +// txtSave = (OpenSansLight) findViewById(R.id.settings_txt_Save); + + appStorage = (HeroApp_App) this.getApplicationContext(); + dbhelper = appStorage.getDbhelper(); + } + + + /** + * define click listener of the objects. + */ + private void setListener() { + // TODO Auto-generated method stub + + imginfo.setOnClickListener(this); + txtDisconnectRingtone.setOnClickListener(this); + txtPhoneRing.setOnClickListener(this); + imgback.setOnClickListener(this); + txtDelete.setOnClickListener(this); + } + + + /** + * Handle click event of the objects. + */ + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + + if (v == imginfo) { + + Intent i = new Intent(SettingsActivity.this, InfoActivity.class); + startActivity(i); + + } else if (v == txtDisconnectRingtone) { + Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); + intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, + RingtoneManager.TYPE_NOTIFICATION); + intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, "Select Tone"); + String disRing = model.getDisconnectRing(); + if (disRing == null || disRing.equalsIgnoreCase("")) { + intent.putExtra( + RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, + RingtoneManager + .getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)); + } else { + Uri uri = Uri.parse(model.getDisconnectRing()); + intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, + uri); + } + this.startActivityForResult(intent, 5); + } else if (v == txtPhoneRing) { + Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); + intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, + RingtoneManager.TYPE_ALL); + String phoneRing = model.getPhoneRing(); + if (phoneRing == null || phoneRing.equalsIgnoreCase("")) { + intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, + RingtoneManager + .getDefaultUri(RingtoneManager.TYPE_RINGTONE)); + } else { + Uri uri = Uri.parse(model.getPhoneRing()); + intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, + uri); + } + intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, "Select Tone"); + this.startActivityForResult(intent, 6); + } else if (v == imgback) { + finish(); + } else if (v == txtDelete) { + openWarningDialog(position); + } + + } + + + /** + * Set the Ring tone that is selected for the disconnect Hiro or Find phone through. + * @param model + */ + private void setRingname(DeviceInfoModel model) { + + String phoneRing = preferences.getString("PhoneRing", ""); + + String disRing = model.getDisconnectRing(); + + if (disRing != null && !disRing.equalsIgnoreCase("")) { + Uri uri = Uri.parse(disRing); + Ringtone ringtone = RingtoneManager.getRingtone( + SettingsActivity.this, uri); + String name = ringtone.getTitle(SettingsActivity.this); + if (name != null && !name.equalsIgnoreCase("")) + txtDisconnectRingtone.setText(name); + } + + if (phoneRing != null && !phoneRing.equalsIgnoreCase("")) { + Uri uri1 = Uri.parse(phoneRing); + Ringtone ringtone1 = RingtoneManager.getRingtone( + SettingsActivity.this, uri1); + String name1 = ringtone1.getTitle(SettingsActivity.this); + txtPhoneRing.setText(name1); + } + + } + + + /** + * Get the Result of selected ring tone for disconnect Hiro or find phone through. + */ + @Override + protected void onActivityResult(final int requestCode, + final int resultCode, final Intent intent) { + if (resultCode == Activity.RESULT_OK && requestCode == 5) { + Uri uri = intent + .getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI); + + if (uri != null) { + String chosenRingtone = uri.toString(); + dbhelper.updateDeviceRingInfo(macAddress, "DisconnectRing", + chosenRingtone); + model.setDisconnectRing(chosenRingtone); + } + + setRingname(model); + + } else if (resultCode == Activity.RESULT_OK && requestCode == 6) { + Uri uri = intent + .getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI); + + if (uri != null) { + String chosenRingtone = uri.toString(); + + SharedPreferences.Editor editor1 = preferences.edit(); + editor1.putString("PhoneRing", chosenRingtone); + editor1.commit(); + } + setRingname(model); + } + } + + + /** + * Open warning dialog while delete the Hiro. + * @param position + */ + private void openWarningDialog(final int position) { + // TODO Auto-generated method stub + AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this); + dialogBuilder.setPositiveButton("Yes", + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + dialog.dismiss(); + + int id = dbhelper.getnotificationId(macAddress); + Utils.removeNotification(MainActivity.mcontext, id); + dbhelper.removeDevice(macAddress); + + if (ScanBGService.hash_service_connected_device_list != null + & ScanBGService.hash_service_connected_device_list + .size() > 0) { + + if (ScanBGService.hash_service_connected_device_list + .containsKey(macAddress)) { + + BluetoothDeviceActor bda = ScanBGService.hash_service_connected_device_list + .get(macAddress); + + if (bda.isConnected()) + bda.getmBluetoothGatt().disconnect(); + + ScanBGService.hash_service_connected_device_list + .remove(macAddress); + } + } + + if (ScanBGService.device_list != null + && ScanBGService.device_list + .containsKey(macAddress)) + ScanBGService.device_list.remove(macAddress); + + if (MainActivity.BDA != null + && MainActivity.BDA.isConnected()) + MainActivity.BDA.getmBluetoothGatt().disconnect(); + + MainActivity.connectedDeviceList.remove(position); + + MainActivity.mLeDeviceListAdapter + .notifyDataSetChanged(); + + finish(); + } + }); + dialogBuilder.setNegativeButton("No", + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + dialog.dismiss(); + } + }); + dialogBuilder + .setTitle(this.getResources().getString(R.string.app_name)); + dialogBuilder.setMessage("Are you sure you want to delete?"); + dialogBuilder.show(); + } + + +// get the current wifi SSID + +// public static String getCurrentSsid(Context context) { +// String ssid = null; +// ConnectivityManager connManager = (ConnectivityManager) context +// .getSystemService(Context.CONNECTIVITY_SERVICE); +// NetworkInfo networkInfo = connManager +// .getNetworkInfo(ConnectivityManager.TYPE_WIFI); +// if (networkInfo.isConnected()) { +// final WifiManager wifiManager = (WifiManager) context +// .getSystemService(Context.WIFI_SERVICE); +// final WifiInfo connectionInfo = wifiManager.getConnectionInfo(); +// if (connectionInfo != null +// && !TextUtils.isEmpty(connectionInfo.getSSID())) { +// ssid = connectionInfo.getSSID(); +// } +// } +// +// Log.e("SSID", "SSID = " + ssid); +// +// return ssid; +// } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/SplashScreen.java.svn-base b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/SplashScreen.java.svn-base new file mode 100644 index 0000000..21d54a8 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/main/.svn/text-base/SplashScreen.java.svn-base @@ -0,0 +1,120 @@ +package com.hiroapp.main; + +import android.app.Activity; +import android.content.Intent; +import android.content.SharedPreferences; +import android.os.Bundle; +import android.os.Handler; +import android.os.Handler.Callback; +import android.os.Message; +import android.view.Window; + +public class SplashScreen extends Activity implements Callback, Runnable { + + private Handler handler; + private int splash_interval = 3000; + private String TAG = this.getClass().getSimpleName(); + private SharedPreferences preferences; + private Thread thread; + + @Override + protected void onCreate(Bundle savedInstanceState) { + // TODO Auto-generated method stub + super.onCreate(savedInstanceState); + this.requestWindowFeature(Window.FEATURE_NO_TITLE); + setContentView(R.layout.splashscreenlayout); + + preferences = this.getSharedPreferences(getString(R.string.app_name), + Activity.MODE_WORLD_WRITEABLE); + + getPreferenceValue(); + } + + @Override + protected void onResume() { + // TODO Auto-generated method stub + super.onResume(); + handler = new Handler(this); + thread = new Thread(this); + thread.start(); + + } + + @Override + public void run() { + // TODO Auto-generated method stub + try { + Thread.sleep(splash_interval); + handler.sendEmptyMessage(0); + } catch (InterruptedException ex) { + } + } + + + /** + * Start the MainActivity when Splash interval is complete. + */ + @Override + public boolean handleMessage(Message msg) { + // TODO Auto-generated method stub + if (msg.what == 0) { + // load pick band activity + Intent intent = null; + intent = new Intent(SplashScreen.this, MainActivity.class); + startActivity(intent); + finish(); // finish the splash screen + } + return false; + } + + + /** + * Get the Preference value + */ + public void getPreferenceValue() { + +// boolean isBattery = preferences.getBoolean("isbattery", true); +// boolean isnotification = preferences.getBoolean("isnotification", true); +// boolean isSoundAlert = preferences.getBoolean("isSoundAlert", true); +// boolean isHeroBeepAlert = preferences.getBoolean("isHeroBeepAlert", +// true); +// boolean isbeepHigh = preferences.getBoolean("isbeepHigh", true); +// boolean isbeepVolume = preferences.getBoolean("isbeepVolumeHigh", true); +// +// String disRing = preferences.getString("DisconnectRing", ""); + String phoneRing = preferences.getString("PhoneRing", ""); + + SharedPreferences.Editor editor1 = preferences.edit(); +// editor1.putBoolean("isbattery", isBattery); +// editor1.putBoolean("isbeepHigh", isbeepHigh); +// editor1.putBoolean("isbeepVolumeHigh", isbeepVolume); +// editor1.putBoolean("isnotification", isnotification); +// editor1.putBoolean("isSoundAlert", isSoundAlert); +// editor1.putBoolean("isHeroBeepAlert", isHeroBeepAlert); +// editor1.putString("DisconnectRing", disRing); + editor1.putString("PhoneRing", phoneRing); + editor1.commit(); + + } + + + /** + * called when Activity is destroy and remove the handler. + */ + @Override + protected void onDestroy() { + // TODO Auto-generated method stub + super.onDestroy(); + + if(thread != null){ + thread.interrupt(); + thread = null; + + if(handler != null && handler.hasMessages(0)) + handler.removeMessages(0); + + } + + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/main/AutoStart$1.class b/HiroApp/bin/classes/com/hiroapp/main/AutoStart$1.class index e510026..0ef5896 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/AutoStart$1.class and b/HiroApp/bin/classes/com/hiroapp/main/AutoStart$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/AutoStart.class b/HiroApp/bin/classes/com/hiroapp/main/AutoStart.class index d26330f..459d178 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/AutoStart.class and b/HiroApp/bin/classes/com/hiroapp/main/AutoStart.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/InfoActivity.class b/HiroApp/bin/classes/com/hiroapp/main/InfoActivity.class index bf4532f..9cea8e3 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/InfoActivity.class and b/HiroApp/bin/classes/com/hiroapp/main/InfoActivity.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$1.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$1.class index bff73dd..29e9120 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$1.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$2$1.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$2$1.class index 0772780..0929726 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$2$1.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$2$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$2.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$2.class index 9a69651..ec15c8a 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$2.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$2.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$3.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$3.class index f0d6c55..588912c 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$3.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$3.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$4.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$4.class index 5162d48..dde9c7e 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$4.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$4.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$5.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$5.class index 380acba..7a81664 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$5.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$5.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$6.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$6.class index 83fa749..4a1ad07 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$6.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$6.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$7.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$7.class index f2cb088..849fa9d 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$7.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$7.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$8.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$8.class index da8c970..4f51fc1 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity$8.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity$8.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MainActivity.class b/HiroApp/bin/classes/com/hiroapp/main/MainActivity.class index 060f594..c0658ed 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MainActivity.class and b/HiroApp/bin/classes/com/hiroapp/main/MainActivity.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/MapActivity.class b/HiroApp/bin/classes/com/hiroapp/main/MapActivity.class index 8cce351..000bd25 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/MapActivity.class and b/HiroApp/bin/classes/com/hiroapp/main/MapActivity.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$attr.class b/HiroApp/bin/classes/com/hiroapp/main/R$attr.class index fe7f647..949b295 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$attr.class and b/HiroApp/bin/classes/com/hiroapp/main/R$attr.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$color.class b/HiroApp/bin/classes/com/hiroapp/main/R$color.class index b6ad2b4..5519886 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$color.class and b/HiroApp/bin/classes/com/hiroapp/main/R$color.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$drawable.class b/HiroApp/bin/classes/com/hiroapp/main/R$drawable.class index 7576e2f..9a64c32 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$drawable.class and b/HiroApp/bin/classes/com/hiroapp/main/R$drawable.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$id.class b/HiroApp/bin/classes/com/hiroapp/main/R$id.class index 92fda1e..40fe204 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$id.class and b/HiroApp/bin/classes/com/hiroapp/main/R$id.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$integer.class b/HiroApp/bin/classes/com/hiroapp/main/R$integer.class index 4051dd8..78ae44f 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$integer.class and b/HiroApp/bin/classes/com/hiroapp/main/R$integer.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$layout.class b/HiroApp/bin/classes/com/hiroapp/main/R$layout.class index 3437f67..fc9754a 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$layout.class and b/HiroApp/bin/classes/com/hiroapp/main/R$layout.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$raw.class b/HiroApp/bin/classes/com/hiroapp/main/R$raw.class index c6c17d9..1d2b043 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$raw.class and b/HiroApp/bin/classes/com/hiroapp/main/R$raw.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$string.class b/HiroApp/bin/classes/com/hiroapp/main/R$string.class index a1ab734..142df27 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$string.class and b/HiroApp/bin/classes/com/hiroapp/main/R$string.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$style.class b/HiroApp/bin/classes/com/hiroapp/main/R$style.class index 18c6d02..ddfea0f 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$style.class and b/HiroApp/bin/classes/com/hiroapp/main/R$style.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/R$styleable.class b/HiroApp/bin/classes/com/hiroapp/main/R$styleable.class index 6cf19b8..6374a65 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/R$styleable.class and b/HiroApp/bin/classes/com/hiroapp/main/R$styleable.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$1$1.class b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$1$1.class index 89541d2..2c77839 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$1$1.class and b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$1$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$1.class b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$1.class index a989bef..2b4acfc 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$1.class and b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$2.class b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$2.class index 20ad4ce..7be4cd8 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$2.class and b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$2.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$3.class b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$3.class index a208789..3bcb9dc 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$3.class and b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$3.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$4.class b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$4.class index ca6cc21..a21e653 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$4.class and b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$4.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$5.class b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$5.class index d123188..0f396d4 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$5.class and b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$5.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$6.class b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$6.class new file mode 100644 index 0000000..2257e06 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity$6.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity.class b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity.class index bc001ad..61172ab 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/ScanActivity.class and b/HiroApp/bin/classes/com/hiroapp/main/ScanActivity.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$1.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$1.class index 216c5c6..652785d 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$1.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$2.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$2.class index d29d289..ef4129b 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$2.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$2.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$3.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$3.class index 5249894..f132961 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$3.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$3.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$4.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$4.class index b68a2d5..603cab4 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$4.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$4.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$5.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$5.class index 2f79e89..1664a35 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$5.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$5.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$6.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$6.class index 8ba1147..9f1071a 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$6.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$6.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$7.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$7.class index 321f594..583fd8d 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$7.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$7.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$8.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$8.class index 1c4f0d6..992e082 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$8.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity$8.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity.class b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity.class index 220b54a..941ba61 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity.class and b/HiroApp/bin/classes/com/hiroapp/main/SettingsActivity.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/SplashScreen.class b/HiroApp/bin/classes/com/hiroapp/main/SplashScreen.class index 6aff95a..1980ac6 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/SplashScreen.class and b/HiroApp/bin/classes/com/hiroapp/main/SplashScreen.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/Stopsound$1.class b/HiroApp/bin/classes/com/hiroapp/main/Stopsound$1.class new file mode 100644 index 0000000..ef0a7c6 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/Stopsound$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/Stopsound$2.class b/HiroApp/bin/classes/com/hiroapp/main/Stopsound$2.class new file mode 100644 index 0000000..89381cf Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/Stopsound$2.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/Stopsound$3.class b/HiroApp/bin/classes/com/hiroapp/main/Stopsound$3.class new file mode 100644 index 0000000..6192252 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/Stopsound$3.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/Stopsound$4.class b/HiroApp/bin/classes/com/hiroapp/main/Stopsound$4.class new file mode 100644 index 0000000..793a72a Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/Stopsound$4.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/Stopsound.class b/HiroApp/bin/classes/com/hiroapp/main/Stopsound.class new file mode 100644 index 0000000..c575e76 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/Stopsound.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/WifiInfoActivity.class b/HiroApp/bin/classes/com/hiroapp/main/WifiInfoActivity.class index 3a5399b..9525216 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/WifiInfoActivity.class and b/HiroApp/bin/classes/com/hiroapp/main/WifiInfoActivity.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/WifiZonesActivity$1.class b/HiroApp/bin/classes/com/hiroapp/main/WifiZonesActivity$1.class index bed24ee..02a7ccd 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/WifiZonesActivity$1.class and b/HiroApp/bin/classes/com/hiroapp/main/WifiZonesActivity$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/WifiZonesActivity.class b/HiroApp/bin/classes/com/hiroapp/main/WifiZonesActivity.class index 4f99da9..fda64e8 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/main/WifiZonesActivity.class and b/HiroApp/bin/classes/com/hiroapp/main/WifiZonesActivity.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider$1.class b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider$1.class new file mode 100644 index 0000000..34e3ce0 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider$OnVisibilityChangeListener.class b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider$OnVisibilityChangeListener.class new file mode 100644 index 0000000..7ec3112 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider$OnVisibilityChangeListener.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider.class b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider.class new file mode 100644 index 0000000..4a2de7f Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHider.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderBase.class b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderBase.class new file mode 100644 index 0000000..68498ac Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderBase.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderHoneycomb$1.class b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderHoneycomb$1.class new file mode 100644 index 0000000..7caf2f6 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderHoneycomb$1.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderHoneycomb.class b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderHoneycomb.class new file mode 100644 index 0000000..fcb9f12 Binary files /dev/null and b/HiroApp/bin/classes/com/hiroapp/main/util/SystemUiHiderHoneycomb.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/all-wcprops b/HiroApp/bin/classes/com/hiroapp/model/.svn/all-wcprops new file mode 100644 index 0000000..3884c0a --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/all-wcprops @@ -0,0 +1,29 @@ +K 25 +svn:wc:ra_dav:version-url +V 68 +/svn/HeroApp_Android/!svn/ver/31/trunk/HeroApp/src/com/hiroapp/model +END +DeviceInfoModel.java +K 25 +svn:wc:ra_dav:version-url +V 89 +/svn/HeroApp_Android/!svn/ver/31/trunk/HeroApp/src/com/hiroapp/model/DeviceInfoModel.java +END +CropOption.java +K 25 +svn:wc:ra_dav:version-url +V 84 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/model/CropOption.java +END +OperationModel.java +K 25 +svn:wc:ra_dav:version-url +V 88 +/svn/HeroApp_Android/!svn/ver/19/trunk/HeroApp/src/com/hiroapp/model/OperationModel.java +END +CharacteristicsModel.java +K 25 +svn:wc:ra_dav:version-url +V 94 +/svn/HeroApp_Android/!svn/ver/19/trunk/HeroApp/src/com/hiroapp/model/CharacteristicsModel.java +END diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/entries b/HiroApp/bin/classes/com/hiroapp/model/.svn/entries new file mode 100644 index 0000000..67589fa --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/entries @@ -0,0 +1,164 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com/hiroapp/model +https://xp-dev.com/svn/HeroApp_Android + + + +2015-01-31T08:33:48.671505Z +31 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +CharacteristicsModel.java +file + + + + +2014-12-26T05:36:35.000000Z +de4b4d7152143c2ee063108584917dec +2014-12-26T05:34:03.099554Z +19 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +1016 + +CropOption.java +file +44 + + + +2015-02-16T06:16:31.000000Z +3aa04779c33d218e10fb3f010b5901e2 +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +207 + +DeviceInfoModel.java +file + + + + +2015-02-07T09:21:25.000000Z +f864a081f6d4e8530d80589bcdb71082 +2015-01-31T08:33:48.671505Z +31 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +3084 + +OperationModel.java +file + + + + +2014-12-26T05:36:38.000000Z +6f22251984aa320028dc02628d7adc8c +2014-12-26T05:34:03.099554Z +19 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +2127 + diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/CharacteristicsModel.java.svn-base b/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/CharacteristicsModel.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/CharacteristicsModel.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/CropOption.java.svn-base b/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/CropOption.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/CropOption.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/DeviceInfoModel.java.svn-base b/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/DeviceInfoModel.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/DeviceInfoModel.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/OperationModel.java.svn-base b/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/OperationModel.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/prop-base/OperationModel.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/CharacteristicsModel.java.svn-base b/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/CharacteristicsModel.java.svn-base new file mode 100644 index 0000000..34408ae --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/CharacteristicsModel.java.svn-base @@ -0,0 +1,60 @@ +package com.hiroapp.model; + +public class CharacteristicsModel { + + private int id; + private String charUUID; + private String charName; + private int serviceId; + private int deviceId; + private int isObservable; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getCharUUID() { + return charUUID; + } + + public void setCharUUID(String charUUID) { + this.charUUID = charUUID; + } + + public String getCharName() { + return charName; + } + + public void setCharName(String charName) { + this.charName = charName; + } + + public int getServiceId() { + return serviceId; + } + + public void setServiceId(int serviceId) { + this.serviceId = serviceId; + } + + public int getDeviceId() { + return deviceId; + } + + public void setDeviceId(int deviceId) { + this.deviceId = deviceId; + } + + public int isObservable() { + return isObservable; + } + + public void setObservable(int isObservable) { + this.isObservable = isObservable; + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/CropOption.java.svn-base b/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/CropOption.java.svn-base new file mode 100644 index 0000000..bd26d2d --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/CropOption.java.svn-base @@ -0,0 +1,10 @@ +package com.hiroapp.model; + +import android.content.Intent; +import android.graphics.drawable.Drawable; + +public class CropOption { + public CharSequence title; + public Drawable icon; + public Intent appIntent; +} \ No newline at end of file diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/DeviceInfoModel.java.svn-base b/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/DeviceInfoModel.java.svn-base new file mode 100644 index 0000000..ddf497e --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/DeviceInfoModel.java.svn-base @@ -0,0 +1,143 @@ +package com.hiroapp.model; + +public class DeviceInfoModel { + + private String deviceSerialNumber; + private String deviceMacAddress; + private String deviceLogicalName; + private int id; + private double latitude; + private double longitude; + private String devicePhotoUrl = ""; + + private int batteryIndication = 1; + private int hiroBeepVolume = 1; + private int hiroDisconnectBeep = 1; + private int notificationIndication = 1; + private int notificationDisconnectAlert = 1; + private int hiroDisBeepAlert = 1; + private String disconnectRing = ""; + private String phoneRing = ""; + + + public int isBatteryIndication() { + return batteryIndication; + } + + public void setBatteryIndication(int batteryIndication) { + this.batteryIndication = batteryIndication; + } + + public int isHiroBeepVolume() { + return hiroBeepVolume; + } + + public void setHiroBeepVolume(int hiroBeepVolume) { + this.hiroBeepVolume = hiroBeepVolume; + } + + public int isHiroDisconnectBeep() { + return hiroDisconnectBeep; + } + + public void setHiroDisconnectBeep(int hiroDisconnectBeep) { + this.hiroDisconnectBeep = hiroDisconnectBeep; + } + + public int isNotificationIndication() { + return notificationIndication; + } + + public void setNotificationIndication(int notificationIndication) { + this.notificationIndication = notificationIndication; + } + + public int isNotificationDisconnectAlert() { + return notificationDisconnectAlert; + } + + public void setNotificationDisconnectAlert(int notificationDisconnectAlert) { + this.notificationDisconnectAlert = notificationDisconnectAlert; + } + + public int isHiroDisBeepAlert() { + return hiroDisBeepAlert; + } + + public void setHiroDisBeepAlert(int hiroDisBeepAlert) { + this.hiroDisBeepAlert = hiroDisBeepAlert; + } + + public String getDisconnectRing() { + return disconnectRing; + } + + public void setDisconnectRing(String disconnectRing) { + this.disconnectRing = disconnectRing; + } + + public String getPhoneRing() { + return phoneRing; + } + + public void setPhoneRing(String phoneRing) { + this.phoneRing = phoneRing; + } + + public double getLatitude() { + return latitude; + } + + public void setLatitude(double latitude) { + this.latitude = latitude; + } + + public double getLongitude() { + return longitude; + } + + public void setLongitude(double longitude) { + this.longitude = longitude; + } + + public String getDevicePhotoUrl() { + return devicePhotoUrl; + } + + public void setDevicePhotoUrl(String devicePhotoUrl) { + this.devicePhotoUrl = devicePhotoUrl; + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getDeviceSerialNumber() { + return deviceSerialNumber; + } + + public void setDeviceSerialNumber(String deviceSerialNumber) { + this.deviceSerialNumber = deviceSerialNumber; + } + + public String getDeviceMacAddress() { + return deviceMacAddress; + } + + public void setDeviceMacAddress(String deviceMacAddress) { + this.deviceMacAddress = deviceMacAddress; + } + + public String getDeviceLogicalName() { + return deviceLogicalName; + } + + public void setDeviceLogicalName(String deviceLogicalName) { + this.deviceLogicalName = deviceLogicalName; + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/OperationModel.java.svn-base b/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/OperationModel.java.svn-base new file mode 100644 index 0000000..635ba44 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/model/.svn/text-base/OperationModel.java.svn-base @@ -0,0 +1,99 @@ +package com.hiroapp.model; + +public class OperationModel { + + private int id; + private int operationRefId; + private int charRefId; + private String operation; + private String value; + private String expectedValue; + private String charUUID; + private String serviceUUID; + private String operationName; + private String charName; + private String charReturnType; + + + private String failValue; + + + public String getFailValue() { + return failValue; + } + + public void setFailValue(String failValue) { + this.failValue = failValue; + } + + public String getCharName() { + return charName; + } + + public String getCharReturnType() { + return charReturnType; + } + + public void setCharReturnType(String charReturnType) { + this.charReturnType = charReturnType; + } + + public void setCharName(String charName) { + this.charName = charName; + } + public String getOperationName() { + return operationName; + } + public void setOperationName(String operationName) { + this.operationName = operationName; + } + public int getId() { + return id; + } + public void setId(int id) { + this.id = id; + } + public int getOperationRefId() { + return operationRefId; + } + public void setOperationRefId(int operationRefId) { + this.operationRefId = operationRefId; + } + public int getCharRefId() { + return charRefId; + } + public void setCharRefId(int charRefId) { + this.charRefId = charRefId; + } + public String getOperation() { + return operation; + } + public void setOperation(String operation) { + this.operation = operation; + } + public String getValue() { + return value; + } + public void setValue(String value) { + this.value = value; + } + public String getExpectedValue() { + return expectedValue; + } + public void setExpectedValue(String expectedValue) { + this.expectedValue = expectedValue; + } + public String getCharUUID() { + return charUUID; + } + public void setCharUUID(String charUUID) { + this.charUUID = charUUID; + } + public String getServiceUUID() { + return serviceUUID; + } + public void setServiceUUID(String serviceUUID) { + this.serviceUUID = serviceUUID; + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/all-wcprops b/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/all-wcprops new file mode 100644 index 0000000..b0a549e --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/all-wcprops @@ -0,0 +1,11 @@ +K 25 +svn:wc:ra_dav:version-url +V 74 +/svn/HeroApp_Android/!svn/ver/31/trunk/HeroApp/src/com/hiroapp/scanservice +END +ScanBGService.java +K 25 +svn:wc:ra_dav:version-url +V 93 +/svn/HeroApp_Android/!svn/ver/44/trunk/HeroApp/src/com/hiroapp/scanservice/ScanBGService.java +END diff --git a/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/entries b/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/entries new file mode 100644 index 0000000..2325094 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +43 +https://xp-dev.com/svn/HeroApp_Android/trunk/HeroApp/src/com/hiroapp/scanservice +https://xp-dev.com/svn/HeroApp_Android + + + +2015-01-31T08:33:48.671505Z +31 +Himen007 + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +320755c0-7aea-4ecc-98b6-d2bbedadc4a1 + +ScanBGService.java +file +44 + + + +2015-02-16T06:17:28.000000Z +19ee5f8a106a42ac9db747b9ac2c9a3e +2015-02-16T06:57:01.372932Z +44 +Himen007 +has-props + + + + + + + + + + + + + + + + + + + + +4294 + diff --git a/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/prop-base/ScanBGService.java.svn-base b/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/prop-base/ScanBGService.java.svn-base new file mode 100644 index 0000000..138f983 --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/prop-base/ScanBGService.java.svn-base @@ -0,0 +1,5 @@ +K 13 +svn:mime-type +V 10 +text/plain +END diff --git a/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/text-base/ScanBGService.java.svn-base b/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/text-base/ScanBGService.java.svn-base new file mode 100644 index 0000000..961de3c --- /dev/null +++ b/HiroApp/bin/classes/com/hiroapp/scanservice/.svn/text-base/ScanBGService.java.svn-base @@ -0,0 +1,143 @@ +package com.hiroapp.scanservice; + +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Set; +import java.util.Timer; +import java.util.TimerTask; + +import android.app.Service; +import android.content.Context; +import android.content.Intent; +import android.os.IBinder; +import android.util.Log; + +import com.hiroapp.common.BluetoothDeviceActor; +import com.hiroapp.common.ScanDevices; +import com.hiroapp.dbhelper.DBHelper; +import com.hiroapp.main.HeroApp_App; +import com.hiroapp.model.DeviceInfoModel; + +public class ScanBGService extends Service { + + static Context context; + private Timer timer; + private ScheduleTask scheduleTask; + public static Intent intentService = null; + public static LinkedHashMap hash_service_connected_device_list = new LinkedHashMap(); + public static DBHelper dbhelper; + private static HeroApp_App appStorage; + public static LinkedHashMap device_list; + public static LinkedHashMap notConnected_device_list; + public static boolean isScanRunning = false; + + @Override + public IBinder onBind(Intent intent) { + // TODO Auto-generated method stub + return null; + } + + @Override + public int onStartCommand(Intent intent, int flags, int startId) { + +// Log.e("onStartCommand", "called"); + context = this; + appStorage = (HeroApp_App) context.getApplicationContext(); + dbhelper = appStorage.getDbhelper(); + timer = new Timer(); + scheduleTask = new ScheduleTask(); + timer.schedule(scheduleTask, 500, 25000); + + return START_STICKY; + } + + class ScheduleTask extends TimerTask { + + @Override + public void run() { + // TODO Auto-generated method stub + checkBDAConnected(); + } + + } + + private void checkBDAConnected() { + // TODO Auto-generated method stub + if (dbhelper.checkIfDeviceCount()) { + // device Found then verify from service that this device is + // connected or not + + notConnected_device_list = new LinkedHashMap(); + + device_list = dbhelper.getDeviceListFromDB(); + + //Enumeration e = device_list.keys(); + + Set e = device_list.keySet(); + + Iterator e1 = e.iterator(); + + if(hash_service_connected_device_list == null) + hash_service_connected_device_list = new LinkedHashMap(); + + while (e1.hasNext()) { + String mac_add = (String) e1.next(); + if (hash_service_connected_device_list != null + && hash_service_connected_device_list + .size() > 0) { + + if (hash_service_connected_device_list + .containsKey(mac_add)) { + // verify the bda is conneted or not + BluetoothDeviceActor bda = hash_service_connected_device_list + .get(mac_add); + if (bda.isConnected()) { + DeviceInfoModel model = device_list.get(mac_add); + bda.setPhotoUrl(model.getDevicePhotoUrl()); + bda.setDevmodel(model); +// Log.e("ScanBGService", "checkBDA :" + mac_add +// + " Already Connected"); + //device_list.remove(mac_add); // if device connected + // then remove from + // the device list + } else { +// Log.e("ScanBGService", +// "checkBDA :" +// + mac_add +// + " not Connected. connect it from background service"); + // device_list.remove(mac_add); + //hash_service_connected_device_list.remove(mac_add); + DeviceInfoModel model = device_list.get(mac_add); + notConnected_device_list.put(mac_add, model); + } + } + + } else { + + if(hash_service_connected_device_list != null && hash_service_connected_device_list.size() == 0){ + DeviceInfoModel model = device_list.get(mac_add); + notConnected_device_list.put(mac_add, model); + } + +// Log.e("checkBDAConnected", +// "Device is pending for connection"); + } + } + if (notConnected_device_list != null && notConnected_device_list.size() > 0) { + if (!isScanRunning) { + isScanRunning = true; + ScanDevices scanDevices = new ScanDevices(context, + notConnected_device_list); + } else { +// Log.e("ScanBGService", +// "scanning is already running for pending connection"); + } + // device_list.clear(); + } + + } else { +// Log.e("ScanBGService", "No device found in DB"); + } + } + +} diff --git a/HiroApp/bin/classes/com/hiroapp/scanservice/ScanBGService$ScheduleTask.class b/HiroApp/bin/classes/com/hiroapp/scanservice/ScanBGService$ScheduleTask.class index d7465f2..9e9251c 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/scanservice/ScanBGService$ScheduleTask.class and b/HiroApp/bin/classes/com/hiroapp/scanservice/ScanBGService$ScheduleTask.class differ diff --git a/HiroApp/bin/classes/com/hiroapp/scanservice/ScanBGService.class b/HiroApp/bin/classes/com/hiroapp/scanservice/ScanBGService.class index 536334e..f47c96d 100644 Binary files a/HiroApp/bin/classes/com/hiroapp/scanservice/ScanBGService.class and b/HiroApp/bin/classes/com/hiroapp/scanservice/ScanBGService.class differ diff --git a/HiroApp/bin/dexedLibs/android-support-v4-52d7d4015082fa47468609bae9ca7ba1.jar b/HiroApp/bin/dexedLibs/android-support-v4-52d7d4015082fa47468609bae9ca7ba1.jar new file mode 100644 index 0000000..6ac1b90 Binary files /dev/null and b/HiroApp/bin/dexedLibs/android-support-v4-52d7d4015082fa47468609bae9ca7ba1.jar differ diff --git a/HiroApp/bin/dexedLibs/google-play-services-fef661563c9a70be63708de26f2b4194.jar b/HiroApp/bin/dexedLibs/google-play-services-fef661563c9a70be63708de26f2b4194.jar new file mode 100644 index 0000000..2e28407 Binary files /dev/null and b/HiroApp/bin/dexedLibs/google-play-services-fef661563c9a70be63708de26f2b4194.jar differ diff --git a/HiroApp/bin/dexedLibs/google-play-services_lib-835accac4b5fc3add311accdad3c3eb2.jar b/HiroApp/bin/dexedLibs/google-play-services_lib-835accac4b5fc3add311accdad3c3eb2.jar new file mode 100644 index 0000000..8cf6c62 Binary files /dev/null and b/HiroApp/bin/dexedLibs/google-play-services_lib-835accac4b5fc3add311accdad3c3eb2.jar differ diff --git a/HiroApp/bin/res/crunch/drawable-hdpi/stopsound.png b/HiroApp/bin/res/crunch/drawable-hdpi/stopsound.png new file mode 100644 index 0000000..9034797 Binary files /dev/null and b/HiroApp/bin/res/crunch/drawable-hdpi/stopsound.png differ diff --git a/HiroApp/bin/res/crunch/drawable-mdpi/stopsound.png b/HiroApp/bin/res/crunch/drawable-mdpi/stopsound.png new file mode 100644 index 0000000..f6a7e8c Binary files /dev/null and b/HiroApp/bin/res/crunch/drawable-mdpi/stopsound.png differ diff --git a/HiroApp/bin/res/crunch/drawable-xhdpi/stopsound.png b/HiroApp/bin/res/crunch/drawable-xhdpi/stopsound.png new file mode 100644 index 0000000..71b9c8f Binary files /dev/null and b/HiroApp/bin/res/crunch/drawable-xhdpi/stopsound.png differ diff --git a/HiroApp/bin/res/crunch/drawable-xxhdpi/stopsound.png b/HiroApp/bin/res/crunch/drawable-xxhdpi/stopsound.png new file mode 100644 index 0000000..6c9e110 Binary files /dev/null and b/HiroApp/bin/res/crunch/drawable-xxhdpi/stopsound.png differ diff --git a/HiroApp/bin/resources.ap_ b/HiroApp/bin/resources.ap_ new file mode 100644 index 0000000..b6df811 Binary files /dev/null and b/HiroApp/bin/resources.ap_ differ diff --git a/HiroApp/gen/com/google/android/gms/R.java b/HiroApp/gen/com/google/android/gms/R.java index 8d405db..f0c31bf 100644 --- a/HiroApp/gen/com/google/android/gms/R.java +++ b/HiroApp/gen/com/google/android/gms/R.java @@ -11,160 +11,189 @@ public static final class attr { public static final int adSize = 0x7f010000; public static final int adSizes = 0x7f010001; public static final int adUnitId = 0x7f010002; - public static final int appTheme = 0x7f010011; - public static final int buyButtonAppearance = 0x7f010018; - public static final int buyButtonHeight = 0x7f010015; - public static final int buyButtonText = 0x7f010017; - public static final int buyButtonWidth = 0x7f010016; - public static final int cameraBearing = 0x7f010004; - public static final int cameraTargetLat = 0x7f010005; - public static final int cameraTargetLng = 0x7f010006; - public static final int cameraTilt = 0x7f010007; - public static final int cameraZoom = 0x7f010008; - public static final int environment = 0x7f010012; - public static final int fragmentMode = 0x7f010014; - public static final int fragmentStyle = 0x7f010013; - public static final int mapType = 0x7f010003; - public static final int maskedWalletDetailsBackground = 0x7f01001b; - public static final int maskedWalletDetailsButtonBackground = 0x7f01001d; - public static final int maskedWalletDetailsButtonTextAppearance = 0x7f01001c; - public static final int maskedWalletDetailsHeaderTextAppearance = 0x7f01001a; - public static final int maskedWalletDetailsLogoImageType = 0x7f01001f; - public static final int maskedWalletDetailsLogoTextColor = 0x7f01001e; - public static final int maskedWalletDetailsTextAppearance = 0x7f010019; - public static final int uiCompass = 0x7f010009; - public static final int uiRotateGestures = 0x7f01000a; - public static final int uiScrollGestures = 0x7f01000b; - public static final int uiTiltGestures = 0x7f01000c; - public static final int uiZoomControls = 0x7f01000d; - public static final int uiZoomGestures = 0x7f01000e; - public static final int useViewLifecycle = 0x7f01000f; - public static final int zOrderOnTop = 0x7f010010; + public static final int appTheme = 0x7f010016; + public static final int buyButtonAppearance = 0x7f01001d; + public static final int buyButtonHeight = 0x7f01001a; + public static final int buyButtonText = 0x7f01001c; + public static final int buyButtonWidth = 0x7f01001b; + public static final int cameraBearing = 0x7f010007; + public static final int cameraTargetLat = 0x7f010008; + public static final int cameraTargetLng = 0x7f010009; + public static final int cameraTilt = 0x7f01000a; + public static final int cameraZoom = 0x7f01000b; + public static final int circleCrop = 0x7f010005; + public static final int environment = 0x7f010017; + public static final int fragmentMode = 0x7f010019; + public static final int fragmentStyle = 0x7f010018; + public static final int imageAspectRatio = 0x7f010004; + public static final int imageAspectRatioAdjust = 0x7f010003; + public static final int liteMode = 0x7f01000c; + public static final int mapType = 0x7f010006; + public static final int maskedWalletDetailsBackground = 0x7f010020; + public static final int maskedWalletDetailsButtonBackground = 0x7f010022; + public static final int maskedWalletDetailsButtonTextAppearance = 0x7f010021; + public static final int maskedWalletDetailsHeaderTextAppearance = 0x7f01001f; + public static final int maskedWalletDetailsLogoImageType = 0x7f010024; + public static final int maskedWalletDetailsLogoTextColor = 0x7f010023; + public static final int maskedWalletDetailsTextAppearance = 0x7f01001e; + public static final int uiCompass = 0x7f01000d; + public static final int uiMapToolbar = 0x7f010015; + public static final int uiRotateGestures = 0x7f01000e; + public static final int uiScrollGestures = 0x7f01000f; + public static final int uiTiltGestures = 0x7f010010; + public static final int uiZoomControls = 0x7f010011; + public static final int uiZoomGestures = 0x7f010012; + public static final int useViewLifecycle = 0x7f010013; + public static final int windowTransitionStyle = 0x7f010025; + public static final int zOrderOnTop = 0x7f010014; } public static final class color { - public static final int common_action_bar_splitter = 0x7f070009; - public static final int common_signin_btn_dark_text_default = 0x7f070000; - public static final int common_signin_btn_dark_text_disabled = 0x7f070002; - public static final int common_signin_btn_dark_text_focused = 0x7f070003; - public static final int common_signin_btn_dark_text_pressed = 0x7f070001; - public static final int common_signin_btn_default_background = 0x7f070008; - public static final int common_signin_btn_light_text_default = 0x7f070004; - public static final int common_signin_btn_light_text_disabled = 0x7f070006; - public static final int common_signin_btn_light_text_focused = 0x7f070007; - public static final int common_signin_btn_light_text_pressed = 0x7f070005; - public static final int common_signin_btn_text_dark = 0x7f070017; - public static final int common_signin_btn_text_light = 0x7f070018; - public static final int wallet_bright_foreground_disabled_holo_light = 0x7f07000f; - public static final int wallet_bright_foreground_holo_dark = 0x7f07000a; - public static final int wallet_bright_foreground_holo_light = 0x7f070010; - public static final int wallet_dim_foreground_disabled_holo_dark = 0x7f07000c; - public static final int wallet_dim_foreground_holo_dark = 0x7f07000b; - public static final int wallet_dim_foreground_inverse_disabled_holo_dark = 0x7f07000e; - public static final int wallet_dim_foreground_inverse_holo_dark = 0x7f07000d; - public static final int wallet_highlighted_text_holo_dark = 0x7f070014; - public static final int wallet_highlighted_text_holo_light = 0x7f070013; - public static final int wallet_hint_foreground_holo_dark = 0x7f070012; - public static final int wallet_hint_foreground_holo_light = 0x7f070011; - public static final int wallet_holo_blue_light = 0x7f070015; - public static final int wallet_link_text_light = 0x7f070016; - public static final int wallet_primary_text_holo_light = 0x7f070019; - public static final int wallet_secondary_text_holo_dark = 0x7f07001a; + public static final int common_action_bar_splitter = 0x7f080009; + public static final int common_signin_btn_dark_text_default = 0x7f080000; + public static final int common_signin_btn_dark_text_disabled = 0x7f080002; + public static final int common_signin_btn_dark_text_focused = 0x7f080003; + public static final int common_signin_btn_dark_text_pressed = 0x7f080001; + public static final int common_signin_btn_default_background = 0x7f080008; + public static final int common_signin_btn_light_text_default = 0x7f080004; + public static final int common_signin_btn_light_text_disabled = 0x7f080006; + public static final int common_signin_btn_light_text_focused = 0x7f080007; + public static final int common_signin_btn_light_text_pressed = 0x7f080005; + public static final int common_signin_btn_text_dark = 0x7f080018; + public static final int common_signin_btn_text_light = 0x7f080019; + public static final int wallet_bright_foreground_disabled_holo_light = 0x7f08000f; + public static final int wallet_bright_foreground_holo_dark = 0x7f08000a; + public static final int wallet_bright_foreground_holo_light = 0x7f080010; + public static final int wallet_dim_foreground_disabled_holo_dark = 0x7f08000c; + public static final int wallet_dim_foreground_holo_dark = 0x7f08000b; + public static final int wallet_dim_foreground_inverse_disabled_holo_dark = 0x7f08000e; + public static final int wallet_dim_foreground_inverse_holo_dark = 0x7f08000d; + public static final int wallet_highlighted_text_holo_dark = 0x7f080014; + public static final int wallet_highlighted_text_holo_light = 0x7f080013; + public static final int wallet_hint_foreground_holo_dark = 0x7f080012; + public static final int wallet_hint_foreground_holo_light = 0x7f080011; + public static final int wallet_holo_blue_light = 0x7f080015; + public static final int wallet_link_text_light = 0x7f080016; + public static final int wallet_primary_text_holo_light = 0x7f08001a; + public static final int wallet_secondary_text_holo_dark = 0x7f08001b; } public static final class drawable { - public static final int common_full_open_on_phone = 0x7f020015; - public static final int common_ic_googleplayservices = 0x7f020016; - public static final int common_signin_btn_icon_dark = 0x7f020017; - public static final int common_signin_btn_icon_disabled_dark = 0x7f020018; - public static final int common_signin_btn_icon_disabled_focus_dark = 0x7f020019; - public static final int common_signin_btn_icon_disabled_focus_light = 0x7f02001a; - public static final int common_signin_btn_icon_disabled_light = 0x7f02001b; - public static final int common_signin_btn_icon_focus_dark = 0x7f02001c; - public static final int common_signin_btn_icon_focus_light = 0x7f02001d; - public static final int common_signin_btn_icon_light = 0x7f02001e; - public static final int common_signin_btn_icon_normal_dark = 0x7f02001f; - public static final int common_signin_btn_icon_normal_light = 0x7f020020; - public static final int common_signin_btn_icon_pressed_dark = 0x7f020021; - public static final int common_signin_btn_icon_pressed_light = 0x7f020022; - public static final int common_signin_btn_text_dark = 0x7f020023; - public static final int common_signin_btn_text_disabled_dark = 0x7f020024; - public static final int common_signin_btn_text_disabled_focus_dark = 0x7f020025; - public static final int common_signin_btn_text_disabled_focus_light = 0x7f020026; - public static final int common_signin_btn_text_disabled_light = 0x7f020027; - public static final int common_signin_btn_text_focus_dark = 0x7f020028; - public static final int common_signin_btn_text_focus_light = 0x7f020029; - public static final int common_signin_btn_text_light = 0x7f02002a; - public static final int common_signin_btn_text_normal_dark = 0x7f02002b; - public static final int common_signin_btn_text_normal_light = 0x7f02002c; - public static final int common_signin_btn_text_pressed_dark = 0x7f02002d; - public static final int common_signin_btn_text_pressed_light = 0x7f02002e; - public static final int ic_plusone_medium_off_client = 0x7f020035; - public static final int ic_plusone_small_off_client = 0x7f020036; - public static final int ic_plusone_standard_off_client = 0x7f020037; - public static final int ic_plusone_tall_off_client = 0x7f020038; - public static final int powered_by_google_dark = 0x7f020042; - public static final int powered_by_google_light = 0x7f020043; + public static final int cast_ic_notification_0 = 0x7f020012; + public static final int cast_ic_notification_1 = 0x7f020013; + public static final int cast_ic_notification_2 = 0x7f020014; + public static final int cast_ic_notification_connecting = 0x7f020015; + public static final int cast_ic_notification_on = 0x7f020016; + public static final int common_full_open_on_phone = 0x7f02001a; + public static final int common_ic_googleplayservices = 0x7f02001b; + public static final int common_signin_btn_icon_dark = 0x7f02001c; + public static final int common_signin_btn_icon_disabled_dark = 0x7f02001d; + public static final int common_signin_btn_icon_disabled_focus_dark = 0x7f02001e; + public static final int common_signin_btn_icon_disabled_focus_light = 0x7f02001f; + public static final int common_signin_btn_icon_disabled_light = 0x7f020020; + public static final int common_signin_btn_icon_focus_dark = 0x7f020021; + public static final int common_signin_btn_icon_focus_light = 0x7f020022; + public static final int common_signin_btn_icon_light = 0x7f020023; + public static final int common_signin_btn_icon_normal_dark = 0x7f020024; + public static final int common_signin_btn_icon_normal_light = 0x7f020025; + public static final int common_signin_btn_icon_pressed_dark = 0x7f020026; + public static final int common_signin_btn_icon_pressed_light = 0x7f020027; + public static final int common_signin_btn_text_dark = 0x7f020028; + public static final int common_signin_btn_text_disabled_dark = 0x7f020029; + public static final int common_signin_btn_text_disabled_focus_dark = 0x7f02002a; + public static final int common_signin_btn_text_disabled_focus_light = 0x7f02002b; + public static final int common_signin_btn_text_disabled_light = 0x7f02002c; + public static final int common_signin_btn_text_focus_dark = 0x7f02002d; + public static final int common_signin_btn_text_focus_light = 0x7f02002e; + public static final int common_signin_btn_text_light = 0x7f02002f; + public static final int common_signin_btn_text_normal_dark = 0x7f020030; + public static final int common_signin_btn_text_normal_light = 0x7f020031; + public static final int common_signin_btn_text_pressed_dark = 0x7f020032; + public static final int common_signin_btn_text_pressed_light = 0x7f020033; + public static final int ic_plusone_medium_off_client = 0x7f02003a; + public static final int ic_plusone_small_off_client = 0x7f02003b; + public static final int ic_plusone_standard_off_client = 0x7f02003c; + public static final int ic_plusone_tall_off_client = 0x7f02003d; + public static final int powered_by_google_dark = 0x7f020047; + public static final int powered_by_google_light = 0x7f020048; } public static final class id { - public static final int book_now = 0x7f080010; - public static final int buyButton = 0x7f08000a; - public static final int buy_now = 0x7f08000f; - public static final int buy_with_google = 0x7f08000e; - public static final int classic = 0x7f080011; - public static final int grayscale = 0x7f080012; - public static final int holo_dark = 0x7f080005; - public static final int holo_light = 0x7f080006; - public static final int hybrid = 0x7f080004; - public static final int match_parent = 0x7f08000c; - public static final int monochrome = 0x7f080013; - public static final int none = 0x7f080000; - public static final int normal = 0x7f080001; - public static final int production = 0x7f080007; - public static final int sandbox = 0x7f080008; - public static final int satellite = 0x7f080002; - public static final int selectionDetails = 0x7f08000b; - public static final int strict_sandbox = 0x7f080009; - public static final int terrain = 0x7f080003; - public static final int wrap_content = 0x7f08000d; + public static final int adjust_height = 0x7f070001; + public static final int adjust_width = 0x7f070002; + public static final int book_now = 0x7f070012; + public static final int buyButton = 0x7f07000e; + public static final int buy_now = 0x7f070013; + public static final int buy_with_google = 0x7f070014; + public static final int cast_notification_id = 0x7f070000; + public static final int classic = 0x7f070016; + public static final int donate_with_google = 0x7f070015; + public static final int grayscale = 0x7f070017; + public static final int holo_dark = 0x7f070008; + public static final int holo_light = 0x7f070009; + public static final int hybrid = 0x7f070004; + public static final int match_parent = 0x7f070010; + public static final int monochrome = 0x7f070018; + public static final int none = 0x7f070003; + public static final int normal = 0x7f070005; + public static final int production = 0x7f07000a; + public static final int sandbox = 0x7f07000b; + public static final int satellite = 0x7f070006; + public static final int selectionDetails = 0x7f07000f; + public static final int slide = 0x7f070019; + public static final int strict_sandbox = 0x7f07000c; + public static final int terrain = 0x7f070007; + public static final int test = 0x7f07000d; + public static final int wrap_content = 0x7f070011; } public static final class integer { public static final int google_play_services_version = 0x7f090000; } + public static final class raw { + public static final int gtm_analytics = 0x7f040003; + } public static final class string { public static final int accept = 0x7f060002; - public static final int common_android_wear_notification_needs_update_text = 0x7f060009; - public static final int common_android_wear_update_text = 0x7f060016; - public static final int common_android_wear_update_title = 0x7f060014; - public static final int common_google_play_services_enable_button = 0x7f060012; - public static final int common_google_play_services_enable_text = 0x7f060011; - public static final int common_google_play_services_enable_title = 0x7f060010; - public static final int common_google_play_services_error_notification_requested_by_msg = 0x7f06000b; - public static final int common_google_play_services_install_button = 0x7f06000f; - public static final int common_google_play_services_install_text_phone = 0x7f06000d; - public static final int common_google_play_services_install_text_tablet = 0x7f06000e; - public static final int common_google_play_services_install_title = 0x7f06000c; - public static final int common_google_play_services_invalid_account_text = 0x7f06001a; - public static final int common_google_play_services_invalid_account_title = 0x7f060019; - public static final int common_google_play_services_needs_enabling_title = 0x7f06000a; - public static final int common_google_play_services_network_error_text = 0x7f060018; - public static final int common_google_play_services_network_error_title = 0x7f060017; - public static final int common_google_play_services_notification_needs_installation_title = 0x7f060007; - public static final int common_google_play_services_notification_needs_update_title = 0x7f060008; - public static final int common_google_play_services_notification_ticker = 0x7f060006; - public static final int common_google_play_services_unknown_issue = 0x7f06001b; - public static final int common_google_play_services_unsupported_text = 0x7f06001d; - public static final int common_google_play_services_unsupported_title = 0x7f06001c; - public static final int common_google_play_services_update_button = 0x7f06001e; - public static final int common_google_play_services_update_text = 0x7f060015; - public static final int common_google_play_services_update_title = 0x7f060013; - public static final int common_open_on_phone = 0x7f060021; - public static final int common_signin_button_text = 0x7f06001f; - public static final int common_signin_button_text_long = 0x7f060020; + public static final int auth_google_play_services_client_facebook_display_name = 0x7f060007; + public static final int auth_google_play_services_client_google_display_name = 0x7f060006; + public static final int cast_notification_connected_message = 0x7f060009; + public static final int cast_notification_connecting_message = 0x7f060008; + public static final int cast_notification_disconnect = 0x7f06000a; + public static final int common_android_wear_notification_needs_update_text = 0x7f06000d; + public static final int common_android_wear_update_text = 0x7f06001a; + public static final int common_android_wear_update_title = 0x7f060018; + public static final int common_google_play_services_api_unavailable_text = 0x7f060028; + public static final int common_google_play_services_enable_button = 0x7f060016; + public static final int common_google_play_services_enable_text = 0x7f060015; + public static final int common_google_play_services_enable_title = 0x7f060014; + public static final int common_google_play_services_error_notification_requested_by_msg = 0x7f06000f; + public static final int common_google_play_services_install_button = 0x7f060013; + public static final int common_google_play_services_install_text_phone = 0x7f060011; + public static final int common_google_play_services_install_text_tablet = 0x7f060012; + public static final int common_google_play_services_install_title = 0x7f060010; + public static final int common_google_play_services_invalid_account_text = 0x7f060020; + public static final int common_google_play_services_invalid_account_title = 0x7f06001f; + public static final int common_google_play_services_needs_enabling_title = 0x7f06000e; + public static final int common_google_play_services_network_error_text = 0x7f06001e; + public static final int common_google_play_services_network_error_title = 0x7f06001d; + public static final int common_google_play_services_notification_needs_update_title = 0x7f06000c; + public static final int common_google_play_services_notification_ticker = 0x7f06000b; + public static final int common_google_play_services_sign_in_failed_text = 0x7f06002a; + public static final int common_google_play_services_sign_in_failed_title = 0x7f060029; + public static final int common_google_play_services_unknown_issue = 0x7f060021; + public static final int common_google_play_services_unsupported_text = 0x7f060023; + public static final int common_google_play_services_unsupported_title = 0x7f060022; + public static final int common_google_play_services_update_button = 0x7f060024; + public static final int common_google_play_services_update_text = 0x7f060019; + public static final int common_google_play_services_update_title = 0x7f060017; + public static final int common_google_play_services_updating_text = 0x7f06001c; + public static final int common_google_play_services_updating_title = 0x7f06001b; + public static final int common_open_on_phone = 0x7f060027; + public static final int common_signin_button_text = 0x7f060025; + public static final int common_signin_button_text_long = 0x7f060026; public static final int create_calendar_message = 0x7f060005; public static final int create_calendar_title = 0x7f060004; public static final int decline = 0x7f060003; public static final int store_picture_message = 0x7f060001; public static final int store_picture_title = 0x7f060000; - public static final int wallet_buy_button_place_holder = 0x7f060022; + public static final int wallet_buy_button_place_holder = 0x7f06002b; } public static final class style { public static final int Theme_IAPTheme = 0x7f050000; @@ -178,27 +207,35 @@ public static final class styleable { public static final int AdsAttrs_adSize = 0; public static final int AdsAttrs_adSizes = 1; public static final int AdsAttrs_adUnitId = 2; - public static final int[] MapAttrs = { 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010 }; + public static final int[] CustomWalletTheme = { 0x7f010025 }; + public static final int CustomWalletTheme_windowTransitionStyle = 0; + public static final int[] LoadingImageView = { 0x7f010003, 0x7f010004, 0x7f010005 }; + public static final int LoadingImageView_circleCrop = 2; + public static final int LoadingImageView_imageAspectRatio = 1; + public static final int LoadingImageView_imageAspectRatioAdjust = 0; + public static final int[] MapAttrs = { 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015 }; public static final int MapAttrs_cameraBearing = 1; public static final int MapAttrs_cameraTargetLat = 2; public static final int MapAttrs_cameraTargetLng = 3; public static final int MapAttrs_cameraTilt = 4; public static final int MapAttrs_cameraZoom = 5; + public static final int MapAttrs_liteMode = 6; public static final int MapAttrs_mapType = 0; - public static final int MapAttrs_uiCompass = 6; - public static final int MapAttrs_uiRotateGestures = 7; - public static final int MapAttrs_uiScrollGestures = 8; - public static final int MapAttrs_uiTiltGestures = 9; - public static final int MapAttrs_uiZoomControls = 10; - public static final int MapAttrs_uiZoomGestures = 11; - public static final int MapAttrs_useViewLifecycle = 12; - public static final int MapAttrs_zOrderOnTop = 13; - public static final int[] WalletFragmentOptions = { 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014 }; + public static final int MapAttrs_uiCompass = 7; + public static final int MapAttrs_uiMapToolbar = 15; + public static final int MapAttrs_uiRotateGestures = 8; + public static final int MapAttrs_uiScrollGestures = 9; + public static final int MapAttrs_uiTiltGestures = 10; + public static final int MapAttrs_uiZoomControls = 11; + public static final int MapAttrs_uiZoomGestures = 12; + public static final int MapAttrs_useViewLifecycle = 13; + public static final int MapAttrs_zOrderOnTop = 14; + public static final int[] WalletFragmentOptions = { 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019 }; public static final int WalletFragmentOptions_appTheme = 0; public static final int WalletFragmentOptions_environment = 1; public static final int WalletFragmentOptions_fragmentMode = 3; public static final int WalletFragmentOptions_fragmentStyle = 2; - public static final int[] WalletFragmentStyle = { 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f01001e, 0x7f01001f }; + public static final int[] WalletFragmentStyle = { 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f01001e, 0x7f01001f, 0x7f010020, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024 }; public static final int WalletFragmentStyle_buyButtonAppearance = 3; public static final int WalletFragmentStyle_buyButtonHeight = 0; public static final int WalletFragmentStyle_buyButtonText = 2; diff --git a/HiroApp/gen/com/hiroapp/main/R.java b/HiroApp/gen/com/hiroapp/main/R.java index eadb3e9..1586806 100644 --- a/HiroApp/gen/com/hiroapp/main/R.java +++ b/HiroApp/gen/com/hiroapp/main/R.java @@ -58,8 +58,8 @@ theme attribute (in the form holo_light1 */ - public static final int appTheme=0x7f010011; - /** Appearance of the buy button. Must be one of "classic", "grayscale" and "monochrome" + public static final int appTheme=0x7f010016; + /** The appearance of the buy button

Must be one of the following constant values.

@@ -71,7 +71,7 @@ theme attribute (in the form
monochrome3
*/ - public static final int buyButtonAppearance=0x7f010018; + public static final int buyButtonAppearance=0x7f01001d; /** Height of the buy button. This includes an 8dp padding (4dp on each side) used for pressed and focused states of the button. The value can be a specific height, e.g. "48dp", or special values "match_parent" and "wrap_content". @@ -93,8 +93,8 @@ theme attribute (in the form wrap_content-2 */ - public static final int buyButtonHeight=0x7f010015; - /** Text on the buy button. Must be one of "buy_with_google", "buy_now" and "book_now" + public static final int buyButtonHeight=0x7f01001a; + /** The text on the buy button

Must be one of the following constant values.

@@ -104,9 +104,10 @@ theme attribute (in the form +
buy_with_google1
buy_now2
book_now3
donate_with_google4
*/ - public static final int buyButtonText=0x7f010017; + public static final int buyButtonText=0x7f01001c; /** Width of the buy button. This includes an 8dp padding (4dp on each side) used for pressed and focused states of the button. The value can be a specific width, e.g. "300dp", or special values "match_parent" and "wrap_content". @@ -128,7 +129,7 @@ theme attribute (in the form wrap_content-2 */ - public static final int buyButtonWidth=0x7f010016; + public static final int buyButtonWidth=0x7f01001b; /**

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -136,7 +137,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int cameraBearing=0x7f010004; + public static final int cameraBearing=0x7f010007; /**

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -144,7 +145,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int cameraTargetLat=0x7f010005; + public static final int cameraTargetLat=0x7f010008; /**

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -152,7 +153,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int cameraTargetLng=0x7f010006; + public static final int cameraTargetLng=0x7f010009; /**

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -160,7 +161,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int cameraTilt=0x7f010007; + public static final int cameraTilt=0x7f01000a; /**

Must be a floating point value, such as "1.2".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -168,7 +169,18 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int cameraZoom=0x7f010008; + public static final int cameraZoom=0x7f01000b; + /** + Whether or not this view should have a circular clip applied + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static final int circleCrop=0x7f010005; /** Google Wallet environment to use

Must be one of the following constant values.

@@ -177,11 +189,12 @@ theme attribute (in the form +
ConstantValueDescription
production1
test3
sandbox0
strict_sandbox2
*/ - public static final int environment=0x7f010012; + public static final int environment=0x7f010017; /** Fragment mode

Must be one of the following constant values.

@@ -193,12 +206,47 @@ theme attribute (in the form
selectionDetails2
*/ - public static final int fragmentMode=0x7f010014; + public static final int fragmentMode=0x7f010019; /** A style resource specifing attributes to customize the look and feel of WalletFragment

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name". */ - public static final int fragmentStyle=0x7f010013; + public static final int fragmentStyle=0x7f010018; + /** + The fixed aspect ratio to use in aspect ratio adjustments. + +

Must be a floating point value, such as "1.2". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static final int imageAspectRatio=0x7f010004; + /** + What kind of aspect ratio adjustment to do. It must be one of "none", "adjust_width", + or "adjust_height". + +

Must be one of the following constant values.

+ ++++ + + + +
ConstantValueDescription
none0
adjust_width1
adjust_height2
+ */ + public static final int imageAspectRatioAdjust=0x7f010003; + /**

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static final int liteMode=0x7f01000c; /**

Must be one of the following constant values.

@@ -212,31 +260,31 @@ theme attribute (in the form
hybrid4
*/ - public static final int mapType=0x7f010003; + public static final int mapType=0x7f010006; /** Masked wallet details background

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". */ - public static final int maskedWalletDetailsBackground=0x7f01001b; + public static final int maskedWalletDetailsBackground=0x7f010020; /** "Change" button background in masked wallet details view

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". */ - public static final int maskedWalletDetailsButtonBackground=0x7f01001d; + public static final int maskedWalletDetailsButtonBackground=0x7f010022; /** TextAppearance for the "Change" button in masked wallet details view

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name". */ - public static final int maskedWalletDetailsButtonTextAppearance=0x7f01001c; + public static final int maskedWalletDetailsButtonTextAppearance=0x7f010021; /** TextAppearance for headers describing masked wallet details

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name". */ - public static final int maskedWalletDetailsHeaderTextAppearance=0x7f01001a; + public static final int maskedWalletDetailsHeaderTextAppearance=0x7f01001f; /** Type of the wallet logo image in masked wallet details view

Must be one of the following constant values.

@@ -248,7 +296,7 @@ theme attribute (in the form
monochrome2
*/ - public static final int maskedWalletDetailsLogoImageType=0x7f01001f; + public static final int maskedWalletDetailsLogoImageType=0x7f010024; /** Color of the Google Wallet logo text in masked wallet details view

Must be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". @@ -258,12 +306,20 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int maskedWalletDetailsLogoTextColor=0x7f01001e; + public static final int maskedWalletDetailsLogoTextColor=0x7f010023; /** TextAppearance for masked wallet details

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name". */ - public static final int maskedWalletDetailsTextAppearance=0x7f010019; + public static final int maskedWalletDetailsTextAppearance=0x7f01001e; + /**

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + */ + public static final int metaButtonBarButtonStyle=0x7f010027; + /**

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + */ + public static final int metaButtonBarStyle=0x7f010026; /**

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -271,7 +327,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int uiCompass=0x7f010009; + public static final int uiCompass=0x7f01000d; /**

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -279,7 +335,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int uiRotateGestures=0x7f01000a; + public static final int uiMapToolbar=0x7f010015; /**

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -287,7 +343,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int uiScrollGestures=0x7f01000b; + public static final int uiRotateGestures=0x7f01000e; /**

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -295,7 +351,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int uiTiltGestures=0x7f01000c; + public static final int uiScrollGestures=0x7f01000f; /**

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -303,7 +359,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int uiZoomControls=0x7f01000d; + public static final int uiTiltGestures=0x7f010010; /**

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -311,7 +367,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int uiZoomGestures=0x7f01000e; + public static final int uiZoomControls=0x7f010011; /**

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -319,7 +375,7 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int useViewLifecycle=0x7f01000f; + public static final int uiZoomGestures=0x7f010012; /**

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or @@ -327,43 +383,64 @@ theme attribute (in the form "?[package:][type:]name") containing a value of this type. */ - public static final int zOrderOnTop=0x7f010010; + public static final int useViewLifecycle=0x7f010013; + /** Defines the set of transition to be used between activities +

Must be one of the following constant values.

+ ++++ + + +
ConstantValueDescription
slide1
none2
+ */ + public static final int windowTransitionStyle=0x7f010025; + /**

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static final int zOrderOnTop=0x7f010014; } public static final class color { - public static final int common_action_bar_splitter=0x7f070009; + public static final int black_overlay=0x7f080017; + public static final int common_action_bar_splitter=0x7f080009; /** Sign-in Button Colors */ - public static final int common_signin_btn_dark_text_default=0x7f070000; - public static final int common_signin_btn_dark_text_disabled=0x7f070002; - public static final int common_signin_btn_dark_text_focused=0x7f070003; - public static final int common_signin_btn_dark_text_pressed=0x7f070001; - public static final int common_signin_btn_default_background=0x7f070008; - public static final int common_signin_btn_light_text_default=0x7f070004; - public static final int common_signin_btn_light_text_disabled=0x7f070006; - public static final int common_signin_btn_light_text_focused=0x7f070007; - public static final int common_signin_btn_light_text_pressed=0x7f070005; - public static final int common_signin_btn_text_dark=0x7f070017; - public static final int common_signin_btn_text_light=0x7f070018; - public static final int wallet_bright_foreground_disabled_holo_light=0x7f07000f; + public static final int common_signin_btn_dark_text_default=0x7f080000; + public static final int common_signin_btn_dark_text_disabled=0x7f080002; + public static final int common_signin_btn_dark_text_focused=0x7f080003; + public static final int common_signin_btn_dark_text_pressed=0x7f080001; + public static final int common_signin_btn_default_background=0x7f080008; + public static final int common_signin_btn_light_text_default=0x7f080004; + public static final int common_signin_btn_light_text_disabled=0x7f080006; + public static final int common_signin_btn_light_text_focused=0x7f080007; + public static final int common_signin_btn_light_text_pressed=0x7f080005; + public static final int common_signin_btn_text_dark=0x7f080018; + public static final int common_signin_btn_text_light=0x7f080019; + public static final int wallet_bright_foreground_disabled_holo_light=0x7f08000f; /** Wallet colors to support consistent Wallet fragment holo dark UI in client application regardless of the theme and device type */ - public static final int wallet_bright_foreground_holo_dark=0x7f07000a; - public static final int wallet_bright_foreground_holo_light=0x7f070010; - public static final int wallet_dim_foreground_disabled_holo_dark=0x7f07000c; - public static final int wallet_dim_foreground_holo_dark=0x7f07000b; - public static final int wallet_dim_foreground_inverse_disabled_holo_dark=0x7f07000e; - public static final int wallet_dim_foreground_inverse_holo_dark=0x7f07000d; - public static final int wallet_highlighted_text_holo_dark=0x7f070014; - public static final int wallet_highlighted_text_holo_light=0x7f070013; - public static final int wallet_hint_foreground_holo_dark=0x7f070012; - public static final int wallet_hint_foreground_holo_light=0x7f070011; - public static final int wallet_holo_blue_light=0x7f070015; - public static final int wallet_link_text_light=0x7f070016; - public static final int wallet_primary_text_holo_light=0x7f070019; - public static final int wallet_secondary_text_holo_dark=0x7f07001a; + public static final int wallet_bright_foreground_holo_dark=0x7f08000a; + public static final int wallet_bright_foreground_holo_light=0x7f080010; + public static final int wallet_dim_foreground_disabled_holo_dark=0x7f08000c; + public static final int wallet_dim_foreground_holo_dark=0x7f08000b; + public static final int wallet_dim_foreground_inverse_disabled_holo_dark=0x7f08000e; + public static final int wallet_dim_foreground_inverse_holo_dark=0x7f08000d; + public static final int wallet_highlighted_text_holo_dark=0x7f080014; + public static final int wallet_highlighted_text_holo_light=0x7f080013; + public static final int wallet_hint_foreground_holo_dark=0x7f080012; + public static final int wallet_hint_foreground_holo_light=0x7f080011; + public static final int wallet_holo_blue_light=0x7f080015; + public static final int wallet_link_text_light=0x7f080016; + public static final int wallet_primary_text_holo_light=0x7f08001a; + public static final int wallet_secondary_text_holo_dark=0x7f08001b; } public static final class drawable { public static final int add_a=0x7f020000; @@ -384,192 +461,206 @@ public static final class drawable { public static final int buzzer_a2=0x7f02000f; public static final int buzzer_i=0x7f020010; public static final int buzzer_n=0x7f020011; - public static final int checkbox_selector=0x7f020012; - public static final int checkmark_a=0x7f020013; - public static final int checkmark_n=0x7f020014; - public static final int common_full_open_on_phone=0x7f020015; - public static final int common_ic_googleplayservices=0x7f020016; - public static final int common_signin_btn_icon_dark=0x7f020017; - public static final int common_signin_btn_icon_disabled_dark=0x7f020018; - public static final int common_signin_btn_icon_disabled_focus_dark=0x7f020019; - public static final int common_signin_btn_icon_disabled_focus_light=0x7f02001a; - public static final int common_signin_btn_icon_disabled_light=0x7f02001b; - public static final int common_signin_btn_icon_focus_dark=0x7f02001c; - public static final int common_signin_btn_icon_focus_light=0x7f02001d; - public static final int common_signin_btn_icon_light=0x7f02001e; - public static final int common_signin_btn_icon_normal_dark=0x7f02001f; - public static final int common_signin_btn_icon_normal_light=0x7f020020; - public static final int common_signin_btn_icon_pressed_dark=0x7f020021; - public static final int common_signin_btn_icon_pressed_light=0x7f020022; - public static final int common_signin_btn_text_dark=0x7f020023; - public static final int common_signin_btn_text_disabled_dark=0x7f020024; - public static final int common_signin_btn_text_disabled_focus_dark=0x7f020025; - public static final int common_signin_btn_text_disabled_focus_light=0x7f020026; - public static final int common_signin_btn_text_disabled_light=0x7f020027; - public static final int common_signin_btn_text_focus_dark=0x7f020028; - public static final int common_signin_btn_text_focus_light=0x7f020029; - public static final int common_signin_btn_text_light=0x7f02002a; - public static final int common_signin_btn_text_normal_dark=0x7f02002b; - public static final int common_signin_btn_text_normal_light=0x7f02002c; - public static final int common_signin_btn_text_pressed_dark=0x7f02002d; - public static final int common_signin_btn_text_pressed_light=0x7f02002e; - public static final int enable_selector=0x7f02002f; - public static final int forwardarrow_a=0x7f020030; - public static final int forwardarrow_n=0x7f020031; - public static final int frame=0x7f020032; - public static final int gps_button_selector=0x7f020033; - public static final int ic_launcher=0x7f020034; - public static final int ic_plusone_medium_off_client=0x7f020035; - public static final int ic_plusone_small_off_client=0x7f020036; - public static final int ic_plusone_standard_off_client=0x7f020037; - public static final int ic_plusone_tall_off_client=0x7f020038; - public static final int infobutton_a=0x7f020039; - public static final int infobutton_n=0x7f02003a; - public static final int location_a=0x7f02003b; - public static final int location_i=0x7f02003c; - public static final int location_n=0x7f02003d; - public static final int mapround=0x7f02003e; - public static final int mild_high_selector=0x7f02003f; - public static final int notification_icon=0x7f020040; - public static final int oval=0x7f020041; - public static final int powered_by_google_dark=0x7f020042; - public static final int powered_by_google_light=0x7f020043; - public static final int removewifi=0x7f020044; - public static final int settings_a=0x7f020045; - public static final int settings_button_selector=0x7f020046; - public static final int settings_i=0x7f020047; - public static final int settings_n=0x7f020048; - public static final int shape_rounded=0x7f020049; - public static final int signal_i=0x7f02004a; - public static final int signal_n0=0x7f02004b; - public static final int signal_n1=0x7f02004c; - public static final int signal_n2=0x7f02004d; - public static final int signal_n3=0x7f02004e; - public static final int splashscreen=0x7f02004f; - public static final int square=0x7f020050; - public static final int sw_disable=0x7f020051; - public static final int sw_enable=0x7f020052; - public static final int sw_high=0x7f020053; - public static final int sw_mild=0x7f020054; - public static final int volume_button_selector=0x7f020055; - public static final int wifisafeicon=0x7f020056; + public static final int cast_ic_notification_0=0x7f020012; + public static final int cast_ic_notification_1=0x7f020013; + public static final int cast_ic_notification_2=0x7f020014; + public static final int cast_ic_notification_connecting=0x7f020015; + public static final int cast_ic_notification_on=0x7f020016; + public static final int checkbox_selector=0x7f020017; + public static final int checkmark_a=0x7f020018; + public static final int checkmark_n=0x7f020019; + public static final int common_full_open_on_phone=0x7f02001a; + public static final int common_ic_googleplayservices=0x7f02001b; + public static final int common_signin_btn_icon_dark=0x7f02001c; + public static final int common_signin_btn_icon_disabled_dark=0x7f02001d; + public static final int common_signin_btn_icon_disabled_focus_dark=0x7f02001e; + public static final int common_signin_btn_icon_disabled_focus_light=0x7f02001f; + public static final int common_signin_btn_icon_disabled_light=0x7f020020; + public static final int common_signin_btn_icon_focus_dark=0x7f020021; + public static final int common_signin_btn_icon_focus_light=0x7f020022; + public static final int common_signin_btn_icon_light=0x7f020023; + public static final int common_signin_btn_icon_normal_dark=0x7f020024; + public static final int common_signin_btn_icon_normal_light=0x7f020025; + public static final int common_signin_btn_icon_pressed_dark=0x7f020026; + public static final int common_signin_btn_icon_pressed_light=0x7f020027; + public static final int common_signin_btn_text_dark=0x7f020028; + public static final int common_signin_btn_text_disabled_dark=0x7f020029; + public static final int common_signin_btn_text_disabled_focus_dark=0x7f02002a; + public static final int common_signin_btn_text_disabled_focus_light=0x7f02002b; + public static final int common_signin_btn_text_disabled_light=0x7f02002c; + public static final int common_signin_btn_text_focus_dark=0x7f02002d; + public static final int common_signin_btn_text_focus_light=0x7f02002e; + public static final int common_signin_btn_text_light=0x7f02002f; + public static final int common_signin_btn_text_normal_dark=0x7f020030; + public static final int common_signin_btn_text_normal_light=0x7f020031; + public static final int common_signin_btn_text_pressed_dark=0x7f020032; + public static final int common_signin_btn_text_pressed_light=0x7f020033; + public static final int enable_selector=0x7f020034; + public static final int forwardarrow_a=0x7f020035; + public static final int forwardarrow_n=0x7f020036; + public static final int frame=0x7f020037; + public static final int gps_button_selector=0x7f020038; + public static final int ic_launcher=0x7f020039; + public static final int ic_plusone_medium_off_client=0x7f02003a; + public static final int ic_plusone_small_off_client=0x7f02003b; + public static final int ic_plusone_standard_off_client=0x7f02003c; + public static final int ic_plusone_tall_off_client=0x7f02003d; + public static final int infobutton_a=0x7f02003e; + public static final int infobutton_n=0x7f02003f; + public static final int location_a=0x7f020040; + public static final int location_i=0x7f020041; + public static final int location_n=0x7f020042; + public static final int mapround=0x7f020043; + public static final int mild_high_selector=0x7f020044; + public static final int notification_icon=0x7f020045; + public static final int oval=0x7f020046; + public static final int powered_by_google_dark=0x7f020047; + public static final int powered_by_google_light=0x7f020048; + public static final int removewifi=0x7f020049; + public static final int settings_a=0x7f02004a; + public static final int settings_button_selector=0x7f02004b; + public static final int settings_i=0x7f02004c; + public static final int settings_n=0x7f02004d; + public static final int shape_rounded=0x7f02004e; + public static final int signal_i=0x7f02004f; + public static final int signal_n0=0x7f020050; + public static final int signal_n1=0x7f020051; + public static final int signal_n2=0x7f020052; + public static final int signal_n3=0x7f020053; + public static final int splashscreen=0x7f020054; + public static final int square=0x7f020055; + public static final int stopsound=0x7f020056; + public static final int sw_disable=0x7f020057; + public static final int sw_enable=0x7f020058; + public static final int sw_high=0x7f020059; + public static final int sw_mild=0x7f02005a; + public static final int volume_button_selector=0x7f02005b; + public static final int wifisafeicon=0x7f02005c; } public static final class id { - public static final int Settings_img_info=0x7f08005a; - public static final int Settings_relbottom=0x7f08005b; - public static final int Settings_reltop=0x7f080059; - public static final int Settings_title=0x7f080036; - public static final int Settings_txt_bottom=0x7f08005c; - public static final int Settings_txt_defaultring=0x7f080061; - public static final int Settings_txt_defaultring_for_phone=0x7f080064; - public static final int blah1=0x7f080029; - public static final int blah2=0x7f08002a; - public static final int book_now=0x7f080010; - public static final int btnsenddata=0x7f08001a; - public static final int buyButton=0x7f08000a; - public static final int buy_now=0x7f08000f; - public static final int buy_with_google=0x7f08000e; - public static final int classic=0x7f080011; - public static final int delete=0x7f080065; - public static final int device_address=0x7f080048; - public static final int device_name=0x7f080047; - public static final int device_transmissionpower=0x7f08004a; - public static final int device_uuid=0x7f080049; - public static final int devicelist_default_imageMain=0x7f080021; - public static final int devicelist_default_img_battery=0x7f080023; - public static final int devicelist_default_img_location=0x7f080028; - public static final int devicelist_default_img_rssi=0x7f080027; - public static final int devicelist_default_img_settings=0x7f080024; - public static final int devicelist_default_img_sound=0x7f080026; - public static final int devicelist_default_rel_imageMain=0x7f080020; - public static final int devicelist_default_relmain=0x7f08001f; - public static final int devicelist_default_txt_Name=0x7f080022; - public static final int devicelist_default_view=0x7f080025; - public static final int dlg_logical_name_btn_OK=0x7f08002c; - public static final int dlg_logical_name_edt_lname=0x7f08002b; - public static final int edtmessage=0x7f080017; - public static final int edtname=0x7f080015; - public static final int grayscale=0x7f080012; - public static final int holo_dark=0x7f080005; - public static final int holo_light=0x7f080006; - public static final int hybrid=0x7f080004; - public static final int imageView1=0x7f080037; - public static final int imgaddnewdevice=0x7f08004d; - public static final int imgaddwifizone=0x7f08004c; - public static final int imgback=0x7f080066; - public static final int inflate_device_imageMain=0x7f08002e; - public static final int inflate_device_img_battery=0x7f080030; - public static final int inflate_device_img_location=0x7f080033; - public static final int inflate_device_img_rssi=0x7f080032; - public static final int inflate_device_img_settings=0x7f080035; - public static final int inflate_device_img_sound=0x7f080031; - public static final int inflate_device_rel_imageMain=0x7f08002d; - public static final int inflate_device_txt_Name=0x7f08002f; - public static final int inflate_device_view=0x7f080034; - public static final int iv_icon=0x7f08001b; - public static final int listView1=0x7f08004f; - public static final int lstscanning=0x7f080058; - public static final int mainscreen_title=0x7f08004e; - public static final int mao_reltop=0x7f080050; - public static final int map=0x7f080052; - public static final int map_title=0x7f080051; - public static final int match_parent=0x7f08000c; - public static final int monochrome=0x7f080013; - public static final int none=0x7f080000; - public static final int normal=0x7f080001; - public static final int production=0x7f080007; - public static final int progressbar=0x7f080056; - public static final int rel_header1=0x7f08004b; - public static final int sandbox=0x7f080008; - public static final int satellite=0x7f080002; - public static final int scrollView1=0x7f080038; - public static final int selectionDetails=0x7f08000b; - public static final int settings_chk_heroalert=0x7f080062; - public static final int settings_chk_phonesound=0x7f080060; - public static final int settings_chk_pushnotification=0x7f08005f; - public static final int settings_sw_battery=0x7f08005e; - public static final int settings_sw_beepvolume=0x7f08005d; - public static final int settings_sw_heroalert=0x7f080063; - public static final int spntransmissionpower=0x7f080019; - public static final int strict_sandbox=0x7f080009; - public static final int terrain=0x7f080003; - public static final int textView1=0x7f080039; - public static final int textView10=0x7f080042; - public static final int textView11=0x7f080043; - public static final int textView12=0x7f080044; - public static final int textView13=0x7f080045; - public static final int textView14=0x7f080046; - public static final int textView2=0x7f08003a; - public static final int textView3=0x7f08003b; - public static final int textView4=0x7f08003c; - public static final int textView5=0x7f08003d; - public static final int textView6=0x7f08003e; - public static final int textView7=0x7f08003f; - public static final int textView8=0x7f080040; - public static final int textView9=0x7f080041; - public static final int titlelinear=0x7f080055; - public static final int titlerelative=0x7f080053; - public static final int tv_name=0x7f08001c; - public static final int txtmsg=0x7f080016; - public static final int txtname=0x7f080014; - public static final int txtpowersetting=0x7f080018; - public static final int txtscan=0x7f080057; - public static final int txttitle=0x7f080054; - public static final int wifisafezoineinformation_title=0x7f080067; - public static final int wifisafezoneinfoscreen_lnr_info=0x7f080068; - public static final int wifisafezoneinfoscreen_txt_header=0x7f080069; - public static final int wifisafezoneinfoscreen_txt_infodetails=0x7f08006a; - public static final int wifisafezones_img_addwifi=0x7f08001d; - public static final int wifisafezones_img_greyline=0x7f080070; - public static final int wifisafezones_img_wifistregnth=0x7f08006f; - public static final int wifisafezones_imgwifiinfo=0x7f08006b; - public static final int wifisafezones_lnr_wifi=0x7f08006d; - public static final int wifisafezones_lst_listwifi=0x7f080072; - public static final int wifisafezones_selected_wifi=0x7f080071; - public static final int wifisafezones_title=0x7f08006c; - public static final int wifisafezones_txt_currentwifi=0x7f08001e; - public static final int wifisafezones_txt_header=0x7f08006e; - public static final int wrap_content=0x7f08000d; + public static final int Settings_img_info=0x7f070060; + public static final int Settings_relbottom=0x7f070061; + public static final int Settings_reltop=0x7f07005f; + public static final int Settings_title=0x7f07003c; + public static final int Settings_txt_bottom=0x7f070062; + public static final int Settings_txt_defaultring=0x7f070067; + public static final int Settings_txt_defaultring_for_phone=0x7f07006a; + public static final int adjust_height=0x7f070001; + public static final int adjust_width=0x7f070002; + public static final int blah1=0x7f07002f; + public static final int blah2=0x7f070030; + public static final int book_now=0x7f070012; + public static final int btnsenddata=0x7f070020; + public static final int buyButton=0x7f07000e; + public static final int buy_now=0x7f070013; + public static final int buy_with_google=0x7f070014; + public static final int cast_notification_id=0x7f070000; + public static final int classic=0x7f070016; + public static final int delete=0x7f07006b; + public static final int device_address=0x7f07004e; + public static final int device_name=0x7f07004d; + public static final int device_transmissionpower=0x7f070050; + public static final int device_uuid=0x7f07004f; + public static final int devicelist_default_imageMain=0x7f070027; + public static final int devicelist_default_img_battery=0x7f070029; + public static final int devicelist_default_img_location=0x7f07002e; + public static final int devicelist_default_img_rssi=0x7f07002d; + public static final int devicelist_default_img_settings=0x7f07002a; + public static final int devicelist_default_img_sound=0x7f07002c; + public static final int devicelist_default_rel_imageMain=0x7f070026; + public static final int devicelist_default_relmain=0x7f070025; + public static final int devicelist_default_txt_Name=0x7f070028; + public static final int devicelist_default_view=0x7f07002b; + public static final int dlg_logical_name_btn_OK=0x7f070032; + public static final int dlg_logical_name_edt_lname=0x7f070031; + public static final int donate_with_google=0x7f070015; + public static final int dummy_button=0x7f07006d; + public static final int edtmessage=0x7f07001d; + public static final int edtname=0x7f07001b; + public static final int fullscreen_content_controls=0x7f07006c; + public static final int grayscale=0x7f070017; + public static final int holo_dark=0x7f070008; + public static final int holo_light=0x7f070009; + public static final int hybrid=0x7f070004; + public static final int imageView1=0x7f07003d; + public static final int imgaddnewdevice=0x7f070053; + public static final int imgaddwifizone=0x7f070052; + public static final int imgback=0x7f07006e; + public static final int inflate_device_imageMain=0x7f070034; + public static final int inflate_device_img_battery=0x7f070036; + public static final int inflate_device_img_location=0x7f070039; + public static final int inflate_device_img_rssi=0x7f070038; + public static final int inflate_device_img_settings=0x7f07003b; + public static final int inflate_device_img_sound=0x7f070037; + public static final int inflate_device_rel_imageMain=0x7f070033; + public static final int inflate_device_txt_Name=0x7f070035; + public static final int inflate_device_view=0x7f07003a; + public static final int iv_icon=0x7f070021; + public static final int listView1=0x7f070055; + public static final int lstscanning=0x7f07005e; + public static final int mainscreen_title=0x7f070054; + public static final int mao_reltop=0x7f070056; + public static final int map=0x7f070058; + public static final int map_title=0x7f070057; + public static final int match_parent=0x7f070010; + public static final int monochrome=0x7f070018; + public static final int none=0x7f070003; + public static final int normal=0x7f070005; + public static final int production=0x7f07000a; + public static final int progressbar=0x7f07005c; + public static final int rel_header1=0x7f070051; + public static final int sandbox=0x7f07000b; + public static final int satellite=0x7f070006; + public static final int scrollView1=0x7f07003e; + public static final int selectionDetails=0x7f07000f; + public static final int settings_chk_heroalert=0x7f070068; + public static final int settings_chk_phonesound=0x7f070066; + public static final int settings_chk_pushnotification=0x7f070065; + public static final int settings_sw_battery=0x7f070064; + public static final int settings_sw_beepvolume=0x7f070063; + public static final int settings_sw_heroalert=0x7f070069; + public static final int slide=0x7f070019; + public static final int spntransmissionpower=0x7f07001f; + public static final int strict_sandbox=0x7f07000c; + public static final int terrain=0x7f070007; + public static final int test=0x7f07000d; + public static final int textView1=0x7f07003f; + public static final int textView10=0x7f070048; + public static final int textView11=0x7f070049; + public static final int textView12=0x7f07004a; + public static final int textView13=0x7f07004b; + public static final int textView14=0x7f07004c; + public static final int textView2=0x7f070040; + public static final int textView3=0x7f070041; + public static final int textView4=0x7f070042; + public static final int textView5=0x7f070043; + public static final int textView6=0x7f070044; + public static final int textView7=0x7f070045; + public static final int textView8=0x7f070046; + public static final int textView9=0x7f070047; + public static final int titlelinear=0x7f07005b; + public static final int titlerelative=0x7f070059; + public static final int tv_name=0x7f070022; + public static final int txtmsg=0x7f07001c; + public static final int txtname=0x7f07001a; + public static final int txtpowersetting=0x7f07001e; + public static final int txtscan=0x7f07005d; + public static final int txttitle=0x7f07005a; + public static final int wifisafezoineinformation_title=0x7f07006f; + public static final int wifisafezoneinfoscreen_lnr_info=0x7f070070; + public static final int wifisafezoneinfoscreen_txt_header=0x7f070071; + public static final int wifisafezoneinfoscreen_txt_infodetails=0x7f070072; + public static final int wifisafezones_img_addwifi=0x7f070023; + public static final int wifisafezones_img_greyline=0x7f070078; + public static final int wifisafezones_img_wifistregnth=0x7f070077; + public static final int wifisafezones_imgwifiinfo=0x7f070073; + public static final int wifisafezones_lnr_wifi=0x7f070075; + public static final int wifisafezones_lst_listwifi=0x7f07007a; + public static final int wifisafezones_selected_wifi=0x7f070079; + public static final int wifisafezones_title=0x7f070074; + public static final int wifisafezones_txt_currentwifi=0x7f070024; + public static final int wifisafezones_txt_header=0x7f070076; + public static final int wrap_content=0x7f070011; } public static final class integer { public static final int google_play_services_version=0x7f090000; @@ -585,154 +676,186 @@ public static final class layout { public static final int listitem_device=0x7f030007; public static final int mainscreen=0x7f030008; public static final int map=0x7f030009; - public static final int scanscreen=0x7f03000a; - public static final int settings=0x7f03000b; - public static final int splashscreenlayout=0x7f03000c; - public static final int wifisafezoneinfoscreen=0x7f03000d; - public static final int wifisafezones=0x7f03000e; + public static final int mapround=0x7f03000a; + public static final int scanscreen=0x7f03000b; + public static final int settings=0x7f03000c; + public static final int splashscreenlayout=0x7f03000d; + public static final int stopsound=0x7f03000e; + public static final int wifisafezoneinfoscreen=0x7f03000f; + public static final int wifisafezones=0x7f030010; } public static final class raw { public static final int connect=0x7f040000; public static final int disconnect=0x7f040001; public static final int error=0x7f040002; + public static final int gtm_analytics=0x7f040003; } public static final class string { - public static final int Crop_error=0x7f06002e; + public static final int Crop_error=0x7f060037; /** Database Strings */ - public static final int DB_NAME=0x7f060024; - public static final int DB_PATH=0x7f060025; - public static final int FolderPath=0x7f06002d; + public static final int DB_NAME=0x7f06002d; + public static final int DB_PATH=0x7f06002e; + public static final int FolderPath=0x7f060036; public static final int accept=0x7f060002; - public static final int app_name=0x7f060023; + public static final int app_name=0x7f06002c; + /** Brand name for Facebook [DO NOT TRANSLATE] + */ + public static final int auth_google_play_services_client_facebook_display_name=0x7f060007; + /** Brand name for Google [DO NOT TRANSLATE] + */ + public static final int auth_google_play_services_client_google_display_name=0x7f060006; + /** Message of the notification to indicate an active cast display connection. [CHAR LIMIT=80] NOTE: Same text as msgid="794424023757290105" + */ + public static final int cast_notification_connected_message=0x7f060009; + /** Message of the notification to indicate the process of connecting to a cast display. [CHAR LIMIT=80] NOTE: Same text as msgid="5435169294190995247" + */ + public static final int cast_notification_connecting_message=0x7f060008; + /** Label of a button to disconnect an active cast display connection. [CHAR LIMIT=25] NOTE: Same text as msgid="9024230238785261495" + */ + public static final int cast_notification_disconnect=0x7f06000a; /** Text for notification shown when the Android Wear apps needs to be updated. Only shown on the wearable. [CHAR LIMIT=NONE] */ - public static final int common_android_wear_notification_needs_update_text=0x7f060009; + public static final int common_android_wear_notification_needs_update_text=0x7f06000d; /** Message in confirmation dialog informing user that they need to update the Android Wear app [CHAR LIMIT=NONE] */ - public static final int common_android_wear_update_text=0x7f060016; + public static final int common_android_wear_update_text=0x7f06001a; /** Title of confirmation dialog informing user that they need to update the Android Wear app (from Play Store) [CHAR LIMIT=40] */ - public static final int common_android_wear_update_title=0x7f060014; + public static final int common_android_wear_update_title=0x7f060018; + /** Message in confirmation dialog informing the user that one of the APIs they attepmt to access is not available. [CHAR LIMIT=NONE] + */ + public static final int common_google_play_services_api_unavailable_text=0x7f060028; /** Button in confirmation dialog to enable Google Play services. Clicking it will direct user to application settings of Google Play services where they can enable it [CHAR LIMIT=40] */ - public static final int common_google_play_services_enable_button=0x7f060012; + public static final int common_google_play_services_enable_button=0x7f060016; /** Message in confirmation dialog informing user they need to enable Google Play services in application settings [CHAR LIMIT=NONE] */ - public static final int common_google_play_services_enable_text=0x7f060011; + public static final int common_google_play_services_enable_text=0x7f060015; /** Title of confirmation dialog informing user they need to enable Google Play services in application settings [CHAR LIMIT=40] */ - public static final int common_google_play_services_enable_title=0x7f060010; + public static final int common_google_play_services_enable_title=0x7f060014; /** Requested by string saying which app requested the notification. [CHAR LIMIT=42] */ - public static final int common_google_play_services_error_notification_requested_by_msg=0x7f06000b; + public static final int common_google_play_services_error_notification_requested_by_msg=0x7f06000f; /** Button in confirmation dialog for installing Google Play services [CHAR LIMIT=40] */ - public static final int common_google_play_services_install_button=0x7f06000f; + public static final int common_google_play_services_install_button=0x7f060013; /** (For phones) Message in confirmation dialog informing user that they need to install Google Play services (from Play Store) [CHAR LIMIT=NONE] */ - public static final int common_google_play_services_install_text_phone=0x7f06000d; + public static final int common_google_play_services_install_text_phone=0x7f060011; /** (For tablets) Message in confirmation dialog informing user that they need to install Google Play services (from Play Store) [CHAR LIMIT=NONE] */ - public static final int common_google_play_services_install_text_tablet=0x7f06000e; + public static final int common_google_play_services_install_text_tablet=0x7f060012; /** Title of confirmation dialog informing user that they need to install Google Play services (from Play Store) [CHAR LIMIT=40] */ - public static final int common_google_play_services_install_title=0x7f06000c; + public static final int common_google_play_services_install_title=0x7f060010; /** Message in confirmation dialog informing the user that they provided an invalid account. [CHAR LIMIT=NONE] */ - public static final int common_google_play_services_invalid_account_text=0x7f06001a; + public static final int common_google_play_services_invalid_account_text=0x7f060020; /** Title of confirmation dialog informing the user that they provided an invalid account. [CHAR LIMIT=40] */ - public static final int common_google_play_services_invalid_account_title=0x7f060019; + public static final int common_google_play_services_invalid_account_title=0x7f06001f; /** Title for notification shown when GooglePlayServices needs to be enabled for an application to work. [CHAR LIMIT=70] */ - public static final int common_google_play_services_needs_enabling_title=0x7f06000a; + public static final int common_google_play_services_needs_enabling_title=0x7f06000e; /** Message in confirmation dialog informing the user that a network error occurred. [CHAR LIMIT=NONE] */ - public static final int common_google_play_services_network_error_text=0x7f060018; + public static final int common_google_play_services_network_error_text=0x7f06001e; /** Title of confirmation dialog informing the user that a network error occurred. [CHAR LIMIT=40] */ - public static final int common_google_play_services_network_error_title=0x7f060017; - /** Title for notification shown when GooglePlayServices needs to be installed - for an application to work. [CHAR LIMIT=70] - */ - public static final int common_google_play_services_notification_needs_installation_title=0x7f060007; + public static final int common_google_play_services_network_error_title=0x7f06001d; /** Title for notification shown when GooglePlayServices needs to be updated for an application to work. [CHAR LIMIT=70] */ - public static final int common_google_play_services_notification_needs_update_title=0x7f060008; + public static final int common_google_play_services_notification_needs_update_title=0x7f06000c; /** Title for notification shown when GooglePlayServices is unavailable [CHAR LIMIT=42] */ - public static final int common_google_play_services_notification_ticker=0x7f060006; + public static final int common_google_play_services_notification_ticker=0x7f06000b; + /** Message in confirmation dialog informing the user that the account could not be signed in. [CHAR LIMIT=NONE] + */ + public static final int common_google_play_services_sign_in_failed_text=0x7f06002a; + /** Title of confirmation dialog informing the user that the account could not be signed in. [CHAR LIMIT=40] + */ + public static final int common_google_play_services_sign_in_failed_title=0x7f060029; /** Message in confirmation dialog informing user there is an unknown issue in Google Play services [CHAR LIMIT=NONE] */ - public static final int common_google_play_services_unknown_issue=0x7f06001b; + public static final int common_google_play_services_unknown_issue=0x7f060021; /** Message in confirmation dialog informing user that Google Play services is not supported on their device [CHAR LIMIT=NONE] */ - public static final int common_google_play_services_unsupported_text=0x7f06001d; + public static final int common_google_play_services_unsupported_text=0x7f060023; /** Title of confirmation dialog informing user that Google Play services is not supported on their device [CHAR LIMIT=40] */ - public static final int common_google_play_services_unsupported_title=0x7f06001c; + public static final int common_google_play_services_unsupported_title=0x7f060022; /** Button in confirmation dialog for updating Google Play services [CHAR LIMIT=40] */ - public static final int common_google_play_services_update_button=0x7f06001e; + public static final int common_google_play_services_update_button=0x7f060024; /** Message in confirmation dialog informing user that they need to update Google Play services (from Play Store) [CHAR LIMIT=NONE] */ - public static final int common_google_play_services_update_text=0x7f060015; + public static final int common_google_play_services_update_text=0x7f060019; /** Title of confirmation dialog informing user that they need to update Google Play services (from Play Store) [CHAR LIMIT=40] */ - public static final int common_google_play_services_update_title=0x7f060013; + public static final int common_google_play_services_update_title=0x7f060017; + /** Message in confirmation dialog informing user that Google Play services is currently + updating [CHAR LIMIT=NONE] + */ + public static final int common_google_play_services_updating_text=0x7f06001c; + /** Title of confirmation dialog informing user that Google Play services is currently + updating [CHAR LIMIT=40] + */ + public static final int common_google_play_services_updating_title=0x7f06001b; /** Label for an action to open a notifications content on the phone [CHAR LIMIT=25] */ - public static final int common_open_on_phone=0x7f060021; + public static final int common_open_on_phone=0x7f060027; /** Sign-in button text [CHAR LIMIT=15] */ - public static final int common_signin_button_text=0x7f06001f; + public static final int common_signin_button_text=0x7f060025; /** Long form sign-in button text [CHAR LIMIT=30] */ - public static final int common_signin_button_text_long=0x7f060020; + public static final int common_signin_button_text_long=0x7f060026; public static final int create_calendar_message=0x7f060005; public static final int create_calendar_title=0x7f060004; public static final int decline=0x7f060003; + public static final int dummy_button=0x7f06003b; /** MainActivity Screen */ - public static final int scanner=0x7f06002b; + public static final int scanner=0x7f060034; /** Splash Screen Display */ - public static final int splashContentDescription=0x7f060026; + public static final int splashContentDescription=0x7f06002f; public static final int store_picture_message=0x7f060001; public static final int store_picture_title=0x7f060000; - public static final int stradd_device=0x7f060027; + public static final int stradd_device=0x7f060030; /** WifiSafe Zone */ - public static final int strcurrentwifi=0x7f060031; - public static final int strlogicalName=0x7f060029; + public static final int strcurrentwifi=0x7f06003a; + public static final int strlogicalName=0x7f060032; /** Scan Activity */ - public static final int strlogicalNamemsg=0x7f060028; - public static final int strok=0x7f06002a; - public static final int strstop=0x7f06002c; - public static final int strwifidetails=0x7f060030; + public static final int strlogicalNamemsg=0x7f060031; + public static final int strok=0x7f060033; + public static final int strstop=0x7f060035; + public static final int strwifidetails=0x7f060039; /** WifiSafe Zone screen */ - public static final int strwifiheader=0x7f06002f; + public static final int strwifiheader=0x7f060038; /** Text on a placeholder buy button when Google Play services is not available or up-to-date */ - public static final int wallet_buy_button_place_holder=0x7f060022; + public static final int wallet_buy_button_place_holder=0x7f06002b; } public static final class style { /** @@ -761,6 +884,10 @@ public static final class style { All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f050006; + public static final int ButtonBar=0x7f050008; + public static final int ButtonBarButton=0x7f050009; + public static final int FullscreenActionBarStyle=0x7f05000a; + public static final int FullscreenTheme=0x7f050007; public static final int Theme_IAPTheme=0x7f050000; public static final int WalletFragmentDefaultButtonTextAppearance=0x7f050003; public static final int WalletFragmentDefaultDetailsHeaderTextAppearance=0x7f050002; @@ -848,6 +975,158 @@ theme attribute (in the form @attr name com.hiroapp.main:adUnitId */ public static final int AdsAttrs_adUnitId = 2; + /** + Declare custom theme attributes that allow changing which styles are + used for button bars depending on the API level. + ?android:attr/buttonBarStyle is new as of API 11 so this is + necessary to support previous API levels. + +

Includes the following attributes:

+ + + + + + +
AttributeDescription
{@link #ButtonBarContainerTheme_metaButtonBarButtonStyle com.hiroapp.main:metaButtonBarButtonStyle}
{@link #ButtonBarContainerTheme_metaButtonBarStyle com.hiroapp.main:metaButtonBarStyle}
+ @see #ButtonBarContainerTheme_metaButtonBarButtonStyle + @see #ButtonBarContainerTheme_metaButtonBarStyle + */ + public static final int[] ButtonBarContainerTheme = { + 0x7f010026, 0x7f010027 + }; + /** +

This symbol is the offset where the {@link com.hiroapp.main.R.attr#metaButtonBarButtonStyle} + attribute's value can be found in the {@link #ButtonBarContainerTheme} array. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + @attr name com.hiroapp.main:metaButtonBarButtonStyle + */ + public static final int ButtonBarContainerTheme_metaButtonBarButtonStyle = 1; + /** +

This symbol is the offset where the {@link com.hiroapp.main.R.attr#metaButtonBarStyle} + attribute's value can be found in the {@link #ButtonBarContainerTheme} array. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + @attr name com.hiroapp.main:metaButtonBarStyle + */ + public static final int ButtonBarContainerTheme_metaButtonBarStyle = 0; + /** Attributes that can be specified to define a custom theme +

Includes the following attributes:

+ + + + + +
AttributeDescription
{@link #CustomWalletTheme_windowTransitionStyle com.hiroapp.main:windowTransitionStyle} Defines the set of transition to be used between activities
+ @see #CustomWalletTheme_windowTransitionStyle + */ + public static final int[] CustomWalletTheme = { + 0x7f010025 + }; + /** +

+ @attr description + Defines the set of transition to be used between activities + + +

Must be one of the following constant values.

+ ++++ + + +
ConstantValueDescription
slide1
none2
+

This is a private symbol. + @attr name com.hiroapp.main:windowTransitionStyle + */ + public static final int CustomWalletTheme_windowTransitionStyle = 0; + /** Attributes for LoadingImageView +

Includes the following attributes:

+ + + + + + + +
AttributeDescription
{@link #LoadingImageView_circleCrop com.hiroapp.main:circleCrop} + Whether or not this view should have a circular clip applied +
{@link #LoadingImageView_imageAspectRatio com.hiroapp.main:imageAspectRatio} + The fixed aspect ratio to use in aspect ratio adjustments.
{@link #LoadingImageView_imageAspectRatioAdjust com.hiroapp.main:imageAspectRatioAdjust} + What kind of aspect ratio adjustment to do.
+ @see #LoadingImageView_circleCrop + @see #LoadingImageView_imageAspectRatio + @see #LoadingImageView_imageAspectRatioAdjust + */ + public static final int[] LoadingImageView = { + 0x7f010003, 0x7f010004, 0x7f010005 + }; + /** +

+ @attr description + + Whether or not this view should have a circular clip applied + + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.hiroapp.main:circleCrop + */ + public static final int LoadingImageView_circleCrop = 2; + /** +

+ @attr description + + The fixed aspect ratio to use in aspect ratio adjustments. + + + +

Must be a floating point value, such as "1.2". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.hiroapp.main:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio = 1; + /** +

+ @attr description + + What kind of aspect ratio adjustment to do. It must be one of "none", "adjust_width", + or "adjust_height". + + + +

Must be one of the following constant values.

+ ++++ + + + +
ConstantValueDescription
none0
adjust_width1
adjust_height2
+

This is a private symbol. + @attr name com.hiroapp.main:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust = 0; /** Attributes that can be used with a MapAttrs.

Includes the following attributes:

@@ -859,8 +1138,10 @@ theme attribute (in the form + + @@ -874,8 +1155,10 @@ theme attribute (in the form @see #MapAttrs_cameraTargetLng @see #MapAttrs_cameraTilt @see #MapAttrs_cameraZoom + @see #MapAttrs_liteMode @see #MapAttrs_mapType @see #MapAttrs_uiCompass + @see #MapAttrs_uiMapToolbar @see #MapAttrs_uiRotateGestures @see #MapAttrs_uiScrollGestures @see #MapAttrs_uiTiltGestures @@ -885,10 +1168,10 @@ theme attribute (in the form @see #MapAttrs_zOrderOnTop */ public static final int[] MapAttrs = { - 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, - 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, - 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, - 0x7f01000f, 0x7f010010 + 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, + 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, + 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, + 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015 }; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#cameraBearing} @@ -960,6 +1243,20 @@ theme attribute (in the form @attr name com.hiroapp.main:cameraZoom */ public static final int MapAttrs_cameraZoom = 5; + /** +

This symbol is the offset where the {@link com.hiroapp.main.R.attr#liteMode} + attribute's value can be found in the {@link #MapAttrs} array. + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + @attr name com.hiroapp.main:liteMode + */ + public static final int MapAttrs_liteMode = 6; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#mapType} attribute's value can be found in the {@link #MapAttrs} array. @@ -993,7 +1290,21 @@ theme attribute (in the form containing a value of this type. @attr name com.hiroapp.main:uiCompass */ - public static final int MapAttrs_uiCompass = 6; + public static final int MapAttrs_uiCompass = 7; + /** +

This symbol is the offset where the {@link com.hiroapp.main.R.attr#uiMapToolbar} + attribute's value can be found in the {@link #MapAttrs} array. + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + @attr name com.hiroapp.main:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar = 15; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#uiRotateGestures} attribute's value can be found in the {@link #MapAttrs} array. @@ -1007,7 +1318,7 @@ theme attribute (in the form containing a value of this type. @attr name com.hiroapp.main:uiRotateGestures */ - public static final int MapAttrs_uiRotateGestures = 7; + public static final int MapAttrs_uiRotateGestures = 8; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#uiScrollGestures} attribute's value can be found in the {@link #MapAttrs} array. @@ -1021,7 +1332,7 @@ theme attribute (in the form containing a value of this type. @attr name com.hiroapp.main:uiScrollGestures */ - public static final int MapAttrs_uiScrollGestures = 8; + public static final int MapAttrs_uiScrollGestures = 9; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#uiTiltGestures} attribute's value can be found in the {@link #MapAttrs} array. @@ -1035,7 +1346,7 @@ theme attribute (in the form containing a value of this type. @attr name com.hiroapp.main:uiTiltGestures */ - public static final int MapAttrs_uiTiltGestures = 9; + public static final int MapAttrs_uiTiltGestures = 10; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#uiZoomControls} attribute's value can be found in the {@link #MapAttrs} array. @@ -1049,7 +1360,7 @@ theme attribute (in the form containing a value of this type. @attr name com.hiroapp.main:uiZoomControls */ - public static final int MapAttrs_uiZoomControls = 10; + public static final int MapAttrs_uiZoomControls = 11; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#uiZoomGestures} attribute's value can be found in the {@link #MapAttrs} array. @@ -1063,7 +1374,7 @@ theme attribute (in the form containing a value of this type. @attr name com.hiroapp.main:uiZoomGestures */ - public static final int MapAttrs_uiZoomGestures = 11; + public static final int MapAttrs_uiZoomGestures = 12; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#useViewLifecycle} attribute's value can be found in the {@link #MapAttrs} array. @@ -1077,7 +1388,7 @@ theme attribute (in the form containing a value of this type. @attr name com.hiroapp.main:useViewLifecycle */ - public static final int MapAttrs_useViewLifecycle = 12; + public static final int MapAttrs_useViewLifecycle = 13; /**

This symbol is the offset where the {@link com.hiroapp.main.R.attr#zOrderOnTop} attribute's value can be found in the {@link #MapAttrs} array. @@ -1091,7 +1402,7 @@ theme attribute (in the form containing a value of this type. @attr name com.hiroapp.main:zOrderOnTop */ - public static final int MapAttrs_zOrderOnTop = 13; + public static final int MapAttrs_zOrderOnTop = 14; /** Attributes for the WalletFragment <fragment> tag

Includes the following attributes:

{@link #MapAttrs_cameraTargetLng com.hiroapp.main:cameraTargetLng}
{@link #MapAttrs_cameraTilt com.hiroapp.main:cameraTilt}
{@link #MapAttrs_cameraZoom com.hiroapp.main:cameraZoom}
{@link #MapAttrs_liteMode com.hiroapp.main:liteMode}
{@link #MapAttrs_mapType com.hiroapp.main:mapType}
{@link #MapAttrs_uiCompass com.hiroapp.main:uiCompass}
{@link #MapAttrs_uiMapToolbar com.hiroapp.main:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures com.hiroapp.main:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures com.hiroapp.main:uiScrollGestures}
{@link #MapAttrs_uiTiltGestures com.hiroapp.main:uiTiltGestures}
@@ -1109,7 +1420,7 @@ theme attribute (in the form @see #WalletFragmentOptions_fragmentStyle */ public static final int[] WalletFragmentOptions = { - 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014 + 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019 }; /**

@@ -1143,6 +1454,7 @@ theme attribute (in the form

+
ConstantValueDescription
production1
test3
sandbox0
strict_sandbox2
@@ -1188,9 +1500,9 @@ theme attribute (in the form AttributeDescription - {@link #WalletFragmentStyle_buyButtonAppearance com.hiroapp.main:buyButtonAppearance} Appearance of the buy button. + {@link #WalletFragmentStyle_buyButtonAppearance com.hiroapp.main:buyButtonAppearance} The appearance of the buy button {@link #WalletFragmentStyle_buyButtonHeight com.hiroapp.main:buyButtonHeight} Height of the buy button. - {@link #WalletFragmentStyle_buyButtonText com.hiroapp.main:buyButtonText} Text on the buy button. + {@link #WalletFragmentStyle_buyButtonText com.hiroapp.main:buyButtonText} The text on the buy button {@link #WalletFragmentStyle_buyButtonWidth com.hiroapp.main:buyButtonWidth} Width of the buy button. {@link #WalletFragmentStyle_maskedWalletDetailsBackground com.hiroapp.main:maskedWalletDetailsBackground} Masked wallet details background {@link #WalletFragmentStyle_maskedWalletDetailsButtonBackground com.hiroapp.main:maskedWalletDetailsButtonBackground} "Change" button background in masked wallet details view @@ -1213,14 +1525,14 @@ theme attribute (in the form @see #WalletFragmentStyle_maskedWalletDetailsTextAppearance */ public static final int[] WalletFragmentStyle = { - 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, - 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, - 0x7f01001d, 0x7f01001e, 0x7f01001f + 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, + 0x7f01001e, 0x7f01001f, 0x7f010020, 0x7f010021, + 0x7f010022, 0x7f010023, 0x7f010024 }; /**

@attr description - Appearance of the buy button. Must be one of "classic", "grayscale" and "monochrome" + The appearance of the buy button

Must be one of the following constant values.

@@ -1269,7 +1581,7 @@ theme attribute (in the form /**

@attr description - Text on the buy button. Must be one of "buy_with_google", "buy_now" and "book_now" + The text on the buy button

Must be one of the following constant values.

@@ -1281,6 +1593,7 @@ theme attribute (in the form buy_with_google1 buy_now2 book_now3 +donate_with_google4

This is a private symbol. @attr name com.hiroapp.main:buyButtonText diff --git a/HiroApp/project.properties b/HiroApp/project.properties index e6f7425..86026c5 100644 --- a/HiroApp/project.properties +++ b/HiroApp/project.properties @@ -11,5 +11,5 @@ #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. -target=android-18 -android.library.reference.1=../google-play-services_lib +target=android-19 +android.library.reference.1=../../GooglePlayServicesLib/google-play-services_lib diff --git a/HiroApp/res/drawable-hdpi/stopsound.png b/HiroApp/res/drawable-hdpi/stopsound.png new file mode 100644 index 0000000..bde5688 Binary files /dev/null and b/HiroApp/res/drawable-hdpi/stopsound.png differ diff --git a/HiroApp/res/drawable-mdpi/stopsound.png b/HiroApp/res/drawable-mdpi/stopsound.png new file mode 100644 index 0000000..f0ac19d Binary files /dev/null and b/HiroApp/res/drawable-mdpi/stopsound.png differ diff --git a/HiroApp/res/drawable-xhdpi/stopsound.png b/HiroApp/res/drawable-xhdpi/stopsound.png new file mode 100644 index 0000000..adc4fa6 Binary files /dev/null and b/HiroApp/res/drawable-xhdpi/stopsound.png differ diff --git a/HiroApp/res/drawable-xxhdpi/stopsound.png b/HiroApp/res/drawable-xxhdpi/stopsound.png new file mode 100644 index 0000000..0d1226d Binary files /dev/null and b/HiroApp/res/drawable-xxhdpi/stopsound.png differ diff --git a/HiroApp/res/layout/dlg_logical_name_layout.xml b/HiroApp/res/layout/dlg_logical_name_layout.xml index 1ebb2e7..90d5f6a 100644 --- a/HiroApp/res/layout/dlg_logical_name_layout.xml +++ b/HiroApp/res/layout/dlg_logical_name_layout.xml @@ -28,11 +28,15 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="5dip" - android:clickable="false" + android:focusable="true" + android:clickable="true" + android:focusableInTouchMode="true" android:singleLine="true" android:text="" android:textSize="14sp" - android:textStyle="normal" /> + android:textStyle="normal" + android:maxLength="17" + android:inputType="textCapSentences"/>