├── .gitignore ├── .idea ├── .name ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── gradle.xml ├── misc.xml ├── modules.xml ├── runConfigurations.xml └── vcs.xml ├── .name ├── FreeIOT.iml ├── LICENSE ├── README.md ├── app ├── .gitignore ├── app.iml ├── build.gradle ├── libs │ ├── armeabi │ │ └── libbspatch.so │ ├── pando-android-sdk-v0.1.0.jar │ ├── umeng-analytics-v5.4.2.jar │ └── umeng-update-v2.6.0.1.jar ├── pandocloud.keystore ├── proguard-rules.pro └── src │ ├── androidTest │ ├── androidTest.iml │ └── java │ │ └── com │ │ └── pandocloud │ │ └── freeiot │ │ └── ApplicationTest.java │ └── main │ ├── AndroidManifest.xml │ ├── assets │ └── failed │ │ ├── 404.html │ │ └── images │ │ └── 404-1.png │ ├── java │ └── com │ │ └── pandocloud │ │ └── freeiot │ │ ├── api │ │ ├── ApiKey.java │ │ ├── DevicesApi.java │ │ ├── ProductApi.java │ │ ├── UserApi.java │ │ ├── WrapperBaseJsonHttpResponseHandler.java │ │ └── WrapperJsonHttpResponseHandler.java │ │ ├── jsbridge │ │ ├── BridgeHandler.java │ │ ├── BridgeHelper.java │ │ ├── BridgeUtil.java │ │ ├── CallBackFunction.java │ │ ├── DefaultHandler.java │ │ └── Message.java │ │ ├── ui │ │ ├── MainActivity.java │ │ ├── NavigationDrawerFragment.java │ │ ├── SplashActivity.java │ │ ├── app │ │ │ ├── ActionConstants.java │ │ │ ├── AppConfigPrefs.java │ │ │ ├── AppConstants.java │ │ │ ├── FreeIOTApp.java │ │ │ ├── ProductInfoPrefs.java │ │ │ └── UserState.java │ │ ├── base │ │ │ ├── BaseActivity.java │ │ │ └── EasyBaseAdapter.java │ │ ├── bean │ │ │ ├── Device.java │ │ │ ├── DeviceInfo.java │ │ │ ├── DevicePermission.java │ │ │ ├── ProductInfo.java │ │ │ └── http │ │ │ │ ├── BaseResponse.java │ │ │ │ ├── DeviceInfoResponse.java │ │ │ │ ├── DevicesPermissionResponse.java │ │ │ │ ├── DevicesResponse.java │ │ │ │ ├── ProductInfoResponse.java │ │ │ │ ├── UserLoginResponse.java │ │ │ │ └── UserRegisterResponse.java │ │ ├── db │ │ │ ├── DBHelper.java │ │ │ └── DBManager.java │ │ ├── device │ │ │ ├── DeviceAuthActivity.java │ │ │ ├── DeviceControlActivity.java │ │ │ ├── DeviceInfoModifyActivity.java │ │ │ ├── DevicePermissionModifyActivity.java │ │ │ ├── DevicePermissionsListActivity.java │ │ │ └── config │ │ │ │ ├── ApSsidConfigFragment.java │ │ │ │ └── GateWayConfigActivity.java │ │ ├── helper │ │ │ ├── DeviceControlHelper.java │ │ │ ├── DeviceRegisterHelper.java │ │ │ └── ProductInfoHelper.java │ │ ├── home │ │ │ └── MyDevicesListFragment.java │ │ ├── login │ │ │ ├── EmailLoginActivity.java │ │ │ ├── EmailRegisterActivity.java │ │ │ ├── EmailResetPwdActivity.java │ │ │ ├── LoginActivity.java │ │ │ ├── RegisterActivity.java │ │ │ └── ResetPwdActivity.java │ │ └── urlconfig │ │ │ ├── UrlConfigActivity.java │ │ │ └── UrlConfigManager.java │ │ └── utils │ │ ├── ActivityUtils.java │ │ ├── AnalyticsUtils.java │ │ ├── BusinessUtils.java │ │ ├── CommonUtils.java │ │ ├── DialogFactory.java │ │ ├── ErrorCodeHelper.java │ │ ├── GsonUtils.java │ │ ├── LogUtils.java │ │ ├── UIUtils.java │ │ └── WakeLockWrapper.java │ ├── main.iml │ └── res │ ├── anim │ ├── slide_in_from_bottom.xml │ ├── slide_in_from_left.xml │ ├── slide_in_from_right.xml │ ├── slide_in_from_top.xml │ ├── slide_out_to_bottom.xml │ ├── slide_out_to_left.xml │ ├── slide_out_to_right.xml │ └── slide_out_to_top.xml │ ├── drawable-hdpi │ ├── drawer_shadow.9.png │ ├── ic_drawer.png │ ├── icon.png │ ├── umeng_update_btn_check_off_focused_holo_light.png │ ├── umeng_update_btn_check_off_holo_light.png │ ├── umeng_update_btn_check_off_pressed_holo_light.png │ ├── umeng_update_btn_check_on_focused_holo_light.png │ ├── umeng_update_btn_check_on_holo_light.png │ ├── umeng_update_btn_check_on_pressed_holo_light.png │ ├── umeng_update_close_bg_normal.png │ └── umeng_update_close_bg_tap.png │ ├── drawable-mdpi │ ├── drawer_shadow.9.png │ └── ic_drawer.png │ ├── drawable-xhdpi │ ├── back.png │ ├── bg_list_item.9.png │ ├── bg_list_item_press.9.png │ ├── btn_blank_bg.9.png │ ├── btn_blank_bg_c.9.png │ ├── button_gray.9.png │ ├── button_red_big.9.png │ ├── button_red_big_press.9.png │ ├── drawer_shadow.9.png │ ├── ic_drawer.png │ ├── icon.png │ ├── icon_select.png │ ├── icon_unselect.png │ ├── loading.png │ ├── offline.png │ ├── online.png │ ├── setting.png │ └── splash.png │ ├── drawable-xxhdpi │ ├── drawer_shadow.9.png │ ├── ic_drawer.png │ ├── icon.png │ ├── icon_setting.png │ └── icon_settings2.png │ ├── drawable │ ├── bg_auth_code_btn.xml │ ├── bg_red_btn.xml │ ├── image_progress.xml │ ├── selector_checkbox_bg.xml │ ├── selector_device_list.xml │ ├── selector_red_blank_btn.xml │ ├── tb_munion_icon.xml │ ├── tb_munion_item_selector.xml │ ├── umeng_common_gradient_green.xml │ ├── umeng_common_gradient_orange.xml │ ├── umeng_common_gradient_red.xml │ ├── umeng_update_button_cancel_bg_focused.xml │ ├── umeng_update_button_cancel_bg_normal.xml │ ├── umeng_update_button_cancel_bg_selector.xml │ ├── umeng_update_button_cancel_bg_tap.xml │ ├── umeng_update_button_check_selector.xml │ ├── umeng_update_button_close_bg_selector.xml │ ├── umeng_update_button_ok_bg_focused.xml │ ├── umeng_update_button_ok_bg_normal.xml │ ├── umeng_update_button_ok_bg_selector.xml │ ├── umeng_update_button_ok_bg_tap.xml │ ├── umeng_update_dialog_bg.xml │ ├── umeng_update_title_bg.xml │ └── umeng_update_wifi_disable.png │ ├── layout │ ├── activity_change_password.xml │ ├── activity_deivces_permission_list.xml │ ├── activity_device_auth.xml │ ├── activity_device_info_modify.xml │ ├── activity_email_login.xml │ ├── activity_email_register.xml │ ├── activity_email_reset_pwd.xml │ ├── activity_gateway_config.xml │ ├── activity_login.xml │ ├── activity_main.xml │ ├── activity_outlet_control.xml │ ├── activity_permission_modify.xml │ ├── activity_register.xml │ ├── activity_reset_pwd.xml │ ├── activity_splash.xml │ ├── activity_url_config.xml │ ├── adapter_device_item.xml │ ├── adapter_devices_permission_item.xml │ ├── adapter_navigation_drawer.xml │ ├── fragment_apconnect.xml │ ├── fragment_gateway_config.xml │ ├── fragment_main.xml │ ├── fragment_my_devices_list.xml │ ├── fragment_navigation_drawer.xml │ ├── tb_munion_aditem.xml │ ├── tb_munion_adview.xml │ ├── umeng_common_download_notification.xml │ └── umeng_update_dialog.xml │ ├── menu │ ├── global.xml │ └── main.xml │ ├── values-w820dp │ └── dimens.xml │ ├── values-zh │ ├── arrays.xml │ ├── string.xml │ ├── umeng_common_strings.xml │ └── umeng_update_string.xml │ └── values │ ├── arrays.xml │ ├── color.xml │ ├── dimens.xml │ ├── strings.xml │ ├── styles.xml │ ├── tb_munion_strings.xml │ ├── umeng_common_strings.xml │ └── umeng_update_string.xml ├── build.gradle ├── compiler.xml ├── copyright └── profiles_settings.xml ├── freeiot-android.iml ├── gradle.properties ├── gradle.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── misc.xml ├── modules.xml ├── settings.gradle ├── vcs.xml ├── workspace.xml └── xwalk_core_library ├── .gitignore ├── build.gradle ├── libs ├── armeabi-v7a │ └── libxwalkcore.so └── xwalk_core_library_java.jar ├── proguard-rules.pro ├── src ├── androidTest │ └── java │ │ └── org │ │ └── xwalk │ │ └── core │ │ └── ApplicationTest.java └── main │ ├── AndroidManifest.xml │ └── res │ ├── drawable-hdpi │ ├── bubble.9.png │ ├── bubble_arrow_up.png │ ├── color_picker_advanced_select_handle.png │ ├── dropdown_popup_background_down.9.png │ ├── dropdown_popup_background_up.9.png │ ├── ic_menu_search_holo_light.png │ ├── ic_menu_share_holo_light.png │ ├── ondemand_overlay.9.png │ └── pageinfo_warning_major.png │ ├── drawable-xhdpi │ ├── bubble.9.png │ ├── bubble_arrow_up.png │ ├── color_picker_advanced_select_handle.png │ ├── dropdown_popup_background_down.9.png │ ├── dropdown_popup_background_up.9.png │ ├── ic_menu_search_holo_light.png │ ├── ic_menu_share_holo_light.png │ ├── ondemand_overlay.9.png │ └── pageinfo_warning_major.png │ ├── drawable-xxhdpi │ └── pageinfo_warning_major.png │ ├── drawable │ ├── bubble.9.png │ ├── bubble_arrow_up.png │ ├── color_button_background.xml │ ├── color_picker_advanced_select_handle.png │ ├── color_picker_border.xml │ ├── dropdown_popup_background.xml │ ├── dropdown_popup_background_down.9.png │ ├── dropdown_popup_background_up.9.png │ ├── ic_menu_search_holo_light.png │ ├── ic_menu_share_holo_light.png │ ├── ondemand_overlay.9.png │ └── pageinfo_warning_major.png │ ├── layout-land │ └── date_time_picker_dialog.xml │ ├── layout-v17 │ ├── color_picker_advanced_component.xml │ ├── color_picker_dialog_content.xml │ ├── color_picker_dialog_title.xml │ ├── date_time_suggestion.xml │ ├── dropdown_item.xml │ ├── multi_field_time_picker_dialog.xml │ ├── two_field_date_picker.xml │ └── validation_message_bubble.xml │ ├── layout │ ├── color_picker_advanced_component.xml │ ├── color_picker_dialog_content.xml │ ├── color_picker_dialog_title.xml │ ├── date_time_picker_dialog.xml │ ├── date_time_suggestion.xml │ ├── dropdown_item.xml │ ├── multi_field_time_picker_dialog.xml │ ├── two_field_date_picker.xml │ └── validation_message_bubble.xml │ ├── menu │ └── select_action_menu.xml │ ├── mipmap-hdpi │ └── app_icon.png │ ├── mipmap-mdpi │ └── app_icon.png │ ├── mipmap-xhdpi │ └── app_icon.png │ ├── mipmap-xxhdpi │ └── app_icon.png │ ├── raw │ ├── contacts_api.js │ ├── device_capabilities_api.js │ ├── icudtl.dat │ ├── launch_screen_api.js │ ├── messaging_api.js │ ├── presentation_api.js │ └── xwalk.pak │ ├── values-am │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-ar │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-bg │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-ca │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-cs │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-da │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-de │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-el │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-en-rGB │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-es-rUS │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-es │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-fa │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-fi │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-fr │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-hi │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-hr │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-hu │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-in │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-it │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-iw │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-ja │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-ko │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-lt │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-lv │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-nb │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-nl │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-pl │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-pt-rBR │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-pt-rPT │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-ro │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-ru │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-sk │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-sl │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-sr │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-sv │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-sw │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-th │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-tl │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-tr │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-uk │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-v17 │ ├── styles.xml │ └── ui_java_styles.xml │ ├── values-vi │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-zh-rCN │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ ├── values-zh-rTW │ ├── android_content_strings.xml │ └── android_ui_strings.xml │ └── values │ ├── android_content_strings.xml │ ├── android_ui_strings.xml │ ├── android_xwalk_strings.xml │ ├── attrs.xml │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ ├── styles.xml │ ├── ui_java_dimens.xml │ ├── ui_java_strings.xml │ ├── ui_java_styles.xml │ ├── values.xml │ ├── xwalk_core_internal_java_strings.xml │ └── xwalk_resources_list.xml └── xwalk_core_library.iml /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | 15 | # Gradle files 16 | .gradle/ 17 | build/ 18 | /*/build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Mac Files 30 | .DS_Store 31 | .idea/libraries 32 | .idea/workspace.xml 33 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | freeiot-android -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.name: -------------------------------------------------------------------------------- 1 | FreeIOT -------------------------------------------------------------------------------- /FreeIOT.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 PandoCloud 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # freeiot-android 2 | FreeIOT is a open application to interact with multifarious IOT devices. 3 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 22 5 | buildToolsVersion "22.0.0" 6 | 7 | defaultConfig { 8 | applicationId "com.pandocloud.freeiot" 9 | minSdkVersion 8 10 | targetSdkVersion 22 11 | versionCode 5 12 | versionName "0.2.1" 13 | } 14 | 15 | signingConfigs { 16 | debug { 17 | // storeFile file("debug.keystore") 18 | } 19 | myConfig { 20 | storeFile file("pandocloud.keystore") 21 | storePassword "pandocloud" 22 | keyAlias "pandocloud" 23 | keyPassword "pandocloud2015" 24 | } 25 | } 26 | 27 | sourceSets.main { 28 | jni.srcDirs = [] // This prevents the auto generation of Android.mk 29 | jniLibs.srcDir 'libs' // This is not necessary unless you have precompiled libraries in your project. 30 | } 31 | 32 | lintOptions { 33 | abortOnError false 34 | } 35 | 36 | buildTypes { 37 | release { 38 | signingConfig signingConfigs.myConfig 39 | minifyEnabled false 40 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 41 | } 42 | } 43 | } 44 | 45 | dependencies { 46 | compile fileTree(dir: 'libs', include: ['*.jar']) 47 | compile files('libs/umeng-analytics-v5.4.2.jar') 48 | compile files('libs/umeng-update-v2.6.0.1.jar') 49 | compile 'com.android.support:appcompat-v7:22.0.0' 50 | compile 'com.loopj.android:android-async-http:1.4.6' 51 | compile 'com.google.code.gson:gson:2.3.1' 52 | compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3' 53 | compile 'com.android.support:support-v4:22.0.0' 54 | compile project(':xwalk_core_library') 55 | } 56 | -------------------------------------------------------------------------------- /app/libs/armeabi/libbspatch.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/libs/armeabi/libbspatch.so -------------------------------------------------------------------------------- /app/libs/pando-android-sdk-v0.1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/libs/pando-android-sdk-v0.1.0.jar -------------------------------------------------------------------------------- /app/libs/umeng-analytics-v5.4.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/libs/umeng-analytics-v5.4.2.jar -------------------------------------------------------------------------------- /app/libs/umeng-update-v2.6.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/libs/umeng-update-v2.6.0.1.jar -------------------------------------------------------------------------------- /app/pandocloud.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/pandocloud.keystore -------------------------------------------------------------------------------- /app/src/androidTest/androidTest.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/pandocloud/freeiot/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/assets/failed/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | freeiot 404 page 5 | 6 | 7 | 50 | 51 | 52 | 53 | 54 |
55 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /app/src/main/assets/failed/images/404-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/assets/failed/images/404-1.png -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/api/ApiKey.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.api; 2 | 3 | public class ApiKey { 4 | 5 | 6 | public static final class HeadKey { 7 | 8 | public static final String ACCESS_TOKEN = "Access-Token"; 9 | 10 | public static final String PRODUCT_KEY = "Product-Key"; 11 | 12 | public static final String VENDOR_KEY = "Vendor-Key"; 13 | } 14 | 15 | // public static final String PRODUCT_KEY = "product_key"; 16 | 17 | public static final String MOBILE = "mobile"; 18 | 19 | public static final String MAIL = "mail"; 20 | 21 | public static final String PASSWORD = "password"; 22 | 23 | public static final String NEW_PASSWORD = "new_password"; 24 | 25 | public static final String VERTIFICATION = "verification"; 26 | 27 | public static final String DEVICE_KEY = "device_key"; 28 | 29 | public static final String PARAMS = "params"; 30 | 31 | public static final String SUBDEVICE = "subdevice"; 32 | 33 | public static final String PRIORITY = "priority"; 34 | 35 | public static final String PRIVILEGE = "privilege"; 36 | 37 | public static final String DEVICE_NAME = "device_name"; 38 | 39 | public static final String SECURE_LEVEL = "secure_level"; 40 | } 41 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/api/ProductApi.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.api; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.apache.http.Header; 7 | import org.apache.http.message.BasicHeader; 8 | 9 | import android.content.Context; 10 | 11 | import com.loopj.android.http.AsyncHttpResponseHandler; 12 | import com.pandocloud.android.api.AbsOpenApi; 13 | 14 | public class ProductApi extends AbsOpenApi { 15 | 16 | /** 17 | * get product info 18 | */ 19 | private static final String PRODUCT_INFO = "/v1/product/info"; 20 | 21 | 22 | /** 23 | * get product information by product key 24 | * 25 | *

Method: GET

26 | * @param context 27 | * @param productKey 28 | * @param responseHandler 29 | */ 30 | public static void getProductInfo(Context context, String productKey, AsyncHttpResponseHandler responseHandler) { 31 | List
headerList = new ArrayList
(); 32 | headerList.add(new BasicHeader(ApiKey.HeadKey.PRODUCT_KEY, productKey)); 33 | get(context, getApiServerUrl() + PRODUCT_INFO, headerList, null, responseHandler); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/api/WrapperJsonHttpResponseHandler.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.api; 2 | 3 | import org.apache.http.Header; 4 | import org.json.JSONException; 5 | import org.json.JSONObject; 6 | 7 | import android.app.Activity; 8 | 9 | import com.loopj.android.http.JsonHttpResponseHandler; 10 | import com.pandocloud.freeiot.ui.bean.http.BaseResponse; 11 | import com.pandocloud.freeiot.utils.BusinessUtils; 12 | import com.pandocloud.freeiot.utils.CommonUtils; 13 | import com.pandocloud.freeiot.utils.ErrorCodeHelper; 14 | 15 | public class WrapperJsonHttpResponseHandler extends JsonHttpResponseHandler { 16 | 17 | private Activity activity; 18 | 19 | public WrapperJsonHttpResponseHandler(Activity activity) { 20 | this.activity = activity; 21 | } 22 | 23 | @Override 24 | public void onFailure(int statusCode, Header[] headers, 25 | Throwable throwable, JSONObject errorResponse) { 26 | WrapperBaseJsonHttpResponseHandler.handlerFailedToast(activity, statusCode, throwable); 27 | } 28 | 29 | @Override 30 | public void onSuccess(int statusCode, Header[] headers, JSONObject response) { 31 | if (response.has("code")) { 32 | try { 33 | int code = response.getInt("code"); 34 | if (code != BaseResponse.CODE_SUCCESS) { 35 | CommonUtils.ToastMsg(activity, ErrorCodeHelper.getInstances(activity).getErrorMessage(code)); 36 | BusinessUtils.checkTokenAvailable(activity, code); 37 | } 38 | } catch (JSONException e) { 39 | e.printStackTrace(); 40 | } 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/jsbridge/BridgeHandler.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.jsbridge; 2 | 3 | public interface BridgeHandler { 4 | 5 | void handler(String data, CallBackFunction function); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/jsbridge/CallBackFunction.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.jsbridge; 2 | 3 | import org.json.JSONObject; 4 | 5 | public interface CallBackFunction { 6 | 7 | public void onCallBack(JSONObject data); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/jsbridge/DefaultHandler.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.jsbridge; 2 | 3 | 4 | import com.pandocloud.freeiot.utils.LogUtils; 5 | 6 | import org.json.JSONException; 7 | import org.json.JSONObject; 8 | 9 | 10 | public class DefaultHandler implements BridgeHandler{ 11 | 12 | String TAG = "DefaultHandler"; 13 | 14 | @Override 15 | public void handler(String data, CallBackFunction function) { 16 | LogUtils.i(TAG, "receive data" + data); 17 | if(function != null){ 18 | JSONObject jsonObject = new JSONObject(); 19 | try { 20 | jsonObject.put("data", "DefaultHandler response data"); 21 | } catch (JSONException e) { 22 | e.printStackTrace(); 23 | } 24 | function.onCallBack(jsonObject); 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/app/ActionConstants.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.app; 2 | 3 | public class ActionConstants { 4 | 5 | public static final String ACTON_REFRESH_DEVICES = "com.pando.colorlight.REFRESH_DEVICES_ACTION"; 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/app/AppConfigPrefs.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.app; 2 | 3 | import android.content.Context; 4 | import android.content.SharedPreferences; 5 | 6 | public class AppConfigPrefs { 7 | 8 | private final static String PREFS_CONFIG_NAME = "app_config_prefs"; 9 | 10 | private static AppConfigPrefs sInstances; 11 | 12 | private SharedPreferences mPreferences; 13 | 14 | 15 | private AppConfigPrefs(Context context) { 16 | mPreferences = context.getSharedPreferences(PREFS_CONFIG_NAME, Context.MODE_PRIVATE); 17 | } 18 | 19 | /** 20 | * 不能多线程操作 21 | * @param context 22 | * @return 23 | */ 24 | public static AppConfigPrefs getInstances(Context context) { 25 | if (sInstances == null) { 26 | sInstances = new AppConfigPrefs(context); 27 | } 28 | return sInstances; 29 | } 30 | 31 | public void saveStringValue(String key, String value) { 32 | mPreferences.edit().putString(key, value).commit(); 33 | } 34 | 35 | public void saveBooleanValue(String key, boolean value) { 36 | mPreferences.edit().putBoolean(key, value).commit(); 37 | } 38 | 39 | public String getStringValue(String key, String defValue) { 40 | return mPreferences.getString(key, defValue); 41 | } 42 | 43 | public boolean getBooleanValue(String key, boolean defValue) { 44 | return mPreferences.getBoolean(key, defValue); 45 | } 46 | 47 | public void saveIntValue(String key, int value) { 48 | mPreferences.edit().putInt(key, value).commit(); 49 | } 50 | 51 | public int getIntValue(String key, int defValue) { 52 | return mPreferences.getInt(key, defValue); 53 | } 54 | 55 | public boolean containKey(String key) { 56 | return mPreferences.contains(key); 57 | } 58 | 59 | public void saveFloatValue(String key, float value) { 60 | mPreferences.edit().putFloat(key, value).commit(); 61 | } 62 | 63 | public float getFloatValue(String key, float defValue) { 64 | return mPreferences.getFloat(key, defValue); 65 | } 66 | 67 | public void removeKey(String key){ 68 | mPreferences.edit().remove(key).commit(); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/app/AppConstants.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.app; 2 | 3 | public class AppConstants { 4 | 5 | public static final String VENDOR_KEY = "570f93557db3532727b54336e47f1a3500b3c0e564"; 6 | 7 | //FreeIOT 8 | public static final String PRODUCT_KEY = "f07fd3f2782ff4964b74d51e89ad0aabf0192ec066"; 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/app/FreeIOTApp.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.app; 2 | 3 | 4 | import android.app.Application; 5 | import android.content.Context; 6 | 7 | import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator; 8 | import com.nostra13.universalimageloader.core.ImageLoader; 9 | import com.nostra13.universalimageloader.core.ImageLoaderConfiguration; 10 | import com.nostra13.universalimageloader.core.assist.QueueProcessingType; 11 | import com.pandocloud.freeiot.ui.helper.DeviceRegisterHelper; 12 | import com.pandocloud.freeiot.ui.urlconfig.UrlConfigManager; 13 | import com.pandocloud.freeiot.utils.AnalyticsUtils; 14 | 15 | 16 | public class FreeIOTApp extends Application { 17 | 18 | @Override 19 | public void onCreate() { 20 | 21 | // AbsOpenApi.DEBUG = false; 22 | 23 | AnalyticsUtils.init(); 24 | 25 | super.onCreate(); 26 | 27 | initConfig(); 28 | 29 | DeviceRegisterHelper.getInstances().checkDeviceRegister(this); 30 | 31 | } 32 | 33 | public void initConfig() { 34 | //环境配置 35 | if(AppConfigPrefs.getInstances(this).containKey("cur_env")) { 36 | int state = AppConfigPrefs.getInstances(this).getIntValue("cur_env", UrlConfigManager.RELEASE_STATE); 37 | UrlConfigManager.updateUrl(state); 38 | } 39 | initImageLoader(this); 40 | } 41 | 42 | public static void initImageLoader(Context context) { 43 | // This configuration tuning is custom. You can tune every option, you may tune some of them, 44 | // or you can create default configuration by 45 | // ImageLoaderConfiguration.createDefault(this); 46 | // method. 47 | ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context); 48 | config.threadPriority(Thread.NORM_PRIORITY - 2); 49 | config.denyCacheImageMultipleSizesInMemory(); 50 | config.diskCacheFileNameGenerator(new Md5FileNameGenerator()); 51 | config.diskCacheSize(50 * 1024 * 1024); // 50 MiB 52 | config.tasksProcessingOrder(QueueProcessingType.LIFO); 53 | // config.writeDebugLogs(); // Remove for release app 54 | 55 | // Initialize ImageLoader with configuration. 56 | ImageLoader.getInstance().init(config.build()); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/base/BaseActivity.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.base; 2 | 3 | import android.support.v4.app.FragmentActivity; 4 | 5 | import com.pandocloud.freeiot.R; 6 | import com.pandocloud.freeiot.utils.ActivityUtils; 7 | 8 | public class BaseActivity extends FragmentActivity { 9 | 10 | 11 | @Override 12 | public void onBackPressed() { 13 | super.onBackPressed(); 14 | ActivityUtils.animFinish(this, R.anim.slide_in_from_left, R.anim.slide_out_to_right); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/Device.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Device implements Serializable { 6 | 7 | public String identifier; 8 | 9 | public String name; 10 | 11 | /** 12 | * online/offline/unknown 13 | */ 14 | public String status; 15 | 16 | public boolean is_owner = true; 17 | 18 | public String icon; 19 | 20 | public String app; 21 | 22 | public boolean isOnline() { 23 | return "online".equals(status); 24 | } 25 | 26 | public boolean isOffline() { 27 | return "offline".equals(status); 28 | } 29 | 30 | public boolean isUnknown() { 31 | return "unknown".equals(status); 32 | } 33 | 34 | public boolean isOwner() { 35 | return is_owner; 36 | } 37 | 38 | @Override 39 | public String toString() { 40 | return "Device [identifier=" + identifier + ", name=" + name 41 | + ", status=" + status + "]"; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/DeviceInfo.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean; 2 | 3 | 4 | public class DeviceInfo { 5 | public String identifier; 6 | 7 | public String name; 8 | 9 | public String description; 10 | 11 | public String version; 12 | 13 | public String register_time; 14 | 15 | public String online_time; 16 | 17 | public boolean public_view; 18 | 19 | public boolean public_control; 20 | 21 | public int secure_level; 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/DevicePermission.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean; 2 | 3 | public class DevicePermission { 4 | 5 | public int permission_id; 6 | 7 | public String name; 8 | 9 | public String phone; 10 | 11 | public int privilege; 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/ProductInfo.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean; 2 | 3 | 4 | public class ProductInfo { 5 | 6 | public String name; 7 | 8 | public String code; 9 | 10 | public String description; 11 | 12 | public String icon; 13 | 14 | public String app; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/http/BaseResponse.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean.http; 2 | 3 | /** 4 | * Created by yellow on 15/5/10. 5 | */ 6 | public class BaseResponse { 7 | public static final int CODE_SUCCESS = 0; 8 | 9 | public int code; 10 | 11 | public String message; 12 | 13 | public boolean isSuccess() { 14 | return code == CODE_SUCCESS; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/http/DeviceInfoResponse.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean.http; 2 | 3 | 4 | import com.pandocloud.freeiot.ui.bean.DeviceInfo; 5 | 6 | public class DeviceInfoResponse extends BaseResponse { 7 | 8 | public DeviceInfo data; 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/http/DevicesPermissionResponse.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean.http; 2 | 3 | import com.pandocloud.freeiot.ui.bean.DevicePermission; 4 | 5 | import java.util.List; 6 | 7 | 8 | public class DevicesPermissionResponse extends BaseResponse { 9 | 10 | public List data; 11 | } 12 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/http/DevicesResponse.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean.http; 2 | 3 | import com.pandocloud.freeiot.ui.bean.Device; 4 | import java.util.List; 5 | 6 | 7 | public class DevicesResponse extends BaseResponse { 8 | 9 | public List data; 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/http/ProductInfoResponse.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean.http; 2 | 3 | 4 | import com.pandocloud.freeiot.ui.bean.ProductInfo; 5 | 6 | public class ProductInfoResponse extends BaseResponse { 7 | 8 | public ProductInfo data; 9 | 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/http/UserLoginResponse.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean.http; 2 | 3 | public class UserLoginResponse extends BaseResponse { 4 | 5 | public UserLoginResponseData data; 6 | 7 | public class UserLoginResponseData { 8 | 9 | public String access_token; 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/bean/http/UserRegisterResponse.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.bean.http; 2 | 3 | 4 | public class UserRegisterResponse extends BaseResponse { 5 | 6 | public UserRegisterResponseData data; 7 | 8 | public class UserRegisterResponseData { 9 | 10 | public String access_token; 11 | 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/db/DBHelper.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.db; 2 | 3 | import android.content.Context; 4 | import android.database.sqlite.SQLiteDatabase; 5 | import android.database.sqlite.SQLiteOpenHelper; 6 | 7 | public class DBHelper extends SQLiteOpenHelper { 8 | 9 | private static final int DB_VERSION = 1; 10 | 11 | public static final String DB_NAME = "smart_plug"; 12 | 13 | public static final String TABLE_DEVICE_INFO = "device_info"; 14 | 15 | public static final String COLUMN_ID = "_id"; 16 | 17 | public static final String COLUMN_IDENTIFIER = "identifier"; 18 | 19 | public static final String COLUMN_DEVICE_NAME = "device_name"; 20 | 21 | public DBHelper(Context context) { 22 | super(context, DB_NAME, null, DB_VERSION); 23 | } 24 | 25 | 26 | private static final String DATABASE_CREATE = "create table if not exists " 27 | + TABLE_DEVICE_INFO + "(" + COLUMN_ID 28 | + " integer primary key autoincrement, " + COLUMN_IDENTIFIER 29 | + " text not null, " + COLUMN_DEVICE_NAME 30 | + " text not null);"; 31 | 32 | 33 | @Override 34 | public void onCreate(SQLiteDatabase db) { 35 | db.execSQL(DATABASE_CREATE); 36 | } 37 | 38 | @Override 39 | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 40 | db.execSQL("DROP TABLE IF EXISTS " + TABLE_DEVICE_INFO); 41 | onCreate(db); 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/helper/DeviceControlHelper.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.helper; 2 | 3 | import android.widget.ProgressBar; 4 | 5 | import com.pandocloud.freeiot.jsbridge.BridgeHelper; 6 | import com.pandocloud.freeiot.ui.device.DeviceControlActivity; 7 | 8 | /** 9 | * Created by ywen on 15/5/25. 10 | */ 11 | public class DeviceControlHelper { 12 | 13 | private DeviceControlActivity mDeviceControlActivity; 14 | 15 | private BridgeHelper mWebView; 16 | 17 | private ProgressBar mProgressBar; 18 | 19 | private String mIdentifier; 20 | 21 | public DeviceControlHelper(DeviceControlActivity activity) { 22 | this.mDeviceControlActivity = activity; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/ui/helper/DeviceRegisterHelper.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.ui.helper; 2 | 3 | 4 | import android.content.Context; 5 | 6 | import com.pandocloud.android.api.DeviceLoginManager; 7 | import com.pandocloud.android.api.DeviceState; 8 | import com.pandocloud.android.api.interfaces.SimpleRequestListener; 9 | import com.pandocloud.freeiot.ui.app.AppConstants; 10 | 11 | public class DeviceRegisterHelper { 12 | 13 | private static DeviceRegisterHelper sInstances; 14 | 15 | private int tryCount = 0; 16 | 17 | private static final int MAX_TRY_COUNT = 3; 18 | 19 | private DeviceRegisterHelper(){ 20 | } 21 | 22 | public static DeviceRegisterHelper getInstances() { 23 | if (sInstances == null) { 24 | synchronized (DeviceRegisterHelper.class) { 25 | if (sInstances == null) { 26 | sInstances = new DeviceRegisterHelper(); 27 | } 28 | } 29 | } 30 | return sInstances; 31 | } 32 | 33 | public void checkDeviceRegister(Context context) { 34 | if (!DeviceState.getInstances(context).hasAccessToken()) { 35 | registerDevice(context); 36 | } 37 | } 38 | 39 | private void registerDevice(final Context context) { 40 | tryCount ++; 41 | if (tryCount > MAX_TRY_COUNT) { 42 | tryCount = 0; 43 | return; 44 | } 45 | DeviceLoginManager.getInstances().registerDevice(context, 46 | AppConstants.VENDOR_KEY, 47 | AppConstants.PRODUCT_KEY, 48 | new SimpleRequestListener(){ 49 | 50 | @Override 51 | public void onFail(Exception e) { 52 | e.printStackTrace(); 53 | registerDevice(context); 54 | } 55 | 56 | @Override 57 | public void onSuccess() { 58 | super.onSuccess(); 59 | tryCount = 0; 60 | } 61 | }); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/utils/BusinessUtils.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.utils; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | import android.net.wifi.WifiManager; 6 | import com.pandocloud.android.utils.NetworkUtil; 7 | import com.pandocloud.android.utils.WifiConnectUtil; 8 | import com.pandocloud.freeiot.R; 9 | import com.pandocloud.freeiot.ui.app.UserState; 10 | import com.pandocloud.freeiot.ui.login.LoginActivity; 11 | 12 | public class BusinessUtils { 13 | 14 | /** 15 | * 根据code检查是否是token失效。 16 | * 失效则进入登录界面重新登录 17 | * @param activity 18 | * @param code 19 | */ 20 | public static void checkTokenAvailable(Activity activity, int code) { 21 | if (code == ErrorCodeHelper.CODE_INVALID_TOKEN) { 22 | UserState.getInstances(activity).clear(); 23 | ActivityUtils.start(activity, LoginActivity.class, R.anim.slide_in_from_right, R.anim.slide_out_to_left); 24 | activity.finish(); 25 | } 26 | } 27 | 28 | public static void checkWifi(Context context) { 29 | WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 30 | if(wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED 31 | || wifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLING) { 32 | if (!NetworkUtil.isWifi(context)) { 33 | WifiConnectUtil.enableAllAps(context); 34 | } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/utils/DialogFactory.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.utils; 2 | 3 | import android.app.AlertDialog; 4 | import android.app.AlertDialog.Builder; 5 | import android.content.Context; 6 | import android.content.DialogInterface; 7 | 8 | public class DialogFactory { 9 | 10 | public static AlertDialog createCommonDialog(Context context, String title, String message, 11 | String positiveTxt, String cancelTxt, 12 | DialogInterface.OnClickListener positionClickListener, 13 | DialogInterface.OnClickListener cancelListener) { 14 | Builder builder = new Builder(context); 15 | builder.setTitle(title).setMessage(message); 16 | builder.setPositiveButton(positiveTxt, positionClickListener); 17 | builder.setNegativeButton(cancelTxt, cancelListener); 18 | return builder.create(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/utils/ErrorCodeHelper.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.utils; 2 | 3 | import android.content.Context; 4 | import android.util.SparseArray; 5 | import com.pandocloud.freeiot.R; 6 | 7 | /** 8 | * Created by yellow on 15/5/10. 9 | */ 10 | public class ErrorCodeHelper { 11 | 12 | public static final int CODE_INVALID_TOKEN = 10010; 13 | 14 | private static ErrorCodeHelper sInstances; 15 | 16 | private SparseArray msgCodeArray = new SparseArray(); 17 | 18 | private ErrorCodeHelper(Context context){ 19 | msgCodeArray.clear(); 20 | int[] codeArray = context.getResources().getIntArray(R.array.error_code); 21 | String[] msgArray = context.getResources().getStringArray(R.array.error_code_msg); 22 | for (int index = 0, size = codeArray.length; index < size; index ++) { 23 | msgCodeArray.put(codeArray[index], msgArray[index]); 24 | } 25 | } 26 | 27 | public static ErrorCodeHelper getInstances(Context context) { 28 | if (sInstances == null) { 29 | sInstances = new ErrorCodeHelper(context); 30 | } 31 | return sInstances; 32 | } 33 | 34 | public String getErrorMessage(int code) { 35 | return msgCodeArray.get(code, ""); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/utils/GsonUtils.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.utils; 2 | 3 | import com.google.gson.Gson; 4 | import com.google.gson.GsonBuilder; 5 | 6 | public class GsonUtils { 7 | 8 | private static GsonUtils sInstance; 9 | 10 | public static GsonUtils getInstance() { 11 | if (sInstance == null) { 12 | sInstance = new GsonUtils(); 13 | } 14 | return sInstance; 15 | } 16 | 17 | private Gson mGson; 18 | 19 | private GsonUtils() { 20 | // mGson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation() 21 | // .enableComplexMapKeySerialization() 22 | // .create(); 23 | mGson = new Gson(); 24 | } 25 | 26 | public String toJson(Object object) { 27 | return mGson.toJson(object); 28 | } 29 | 30 | public Gson getGson() { 31 | return mGson; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/utils/UIUtils.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.utils; 2 | 3 | import android.content.Context; 4 | import android.content.res.Resources; 5 | import android.util.TypedValue; 6 | 7 | public class UIUtils { 8 | 9 | public static int dip2px(Context context, float dip) { 10 | Resources r = context.getResources(); 11 | float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, r.getDisplayMetrics()); 12 | return (int) px; 13 | } 14 | 15 | /** 16 | * px转dip 17 | * 18 | * @param context 19 | * @param pxValue 20 | * @return 21 | */ 22 | public static int px2dip(Context context, float pxValue) { 23 | final float scale = context.getResources().getDisplayMetrics().density; 24 | 25 | return (int) (pxValue / scale + 0.5f); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/java/com/pandocloud/freeiot/utils/WakeLockWrapper.java: -------------------------------------------------------------------------------- 1 | package com.pandocloud.freeiot.utils; 2 | 3 | 4 | import java.util.concurrent.ConcurrentHashMap; 5 | 6 | import android.content.Context; 7 | import android.os.PowerManager; 8 | 9 | 10 | public class WakeLockWrapper { 11 | 12 | static final ConcurrentHashMap sWakeLockMap = new ConcurrentHashMap(); 13 | 14 | public static PowerManager.WakeLock getWakeLockInstance(Context context, String tag) { 15 | PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); 16 | 17 | if(sWakeLockMap.containsKey(tag) == false) { 18 | sWakeLockMap.put(tag, powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, tag)); 19 | } 20 | return sWakeLockMap.get(tag); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/main.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_in_from_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_in_from_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_in_from_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_in_from_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_out_to_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_out_to_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_out_to_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_out_to_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/ic_drawer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/umeng_update_btn_check_off_focused_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/umeng_update_btn_check_off_focused_holo_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/umeng_update_btn_check_off_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/umeng_update_btn_check_off_holo_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/umeng_update_btn_check_off_pressed_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/umeng_update_btn_check_off_pressed_holo_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/umeng_update_btn_check_on_focused_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/umeng_update_btn_check_on_focused_holo_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/umeng_update_btn_check_on_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/umeng_update_btn_check_on_holo_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/umeng_update_btn_check_on_pressed_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/umeng_update_btn_check_on_pressed_holo_light.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/umeng_update_close_bg_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/umeng_update_close_bg_normal.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/umeng_update_close_bg_tap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-hdpi/umeng_update_close_bg_tap.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-mdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-mdpi/ic_drawer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/bg_list_item.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/bg_list_item.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/bg_list_item_press.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/bg_list_item_press.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/btn_blank_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/btn_blank_bg.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/btn_blank_bg_c.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/btn_blank_bg_c.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/button_gray.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/button_gray.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/button_red_big.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/button_red_big.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/button_red_big_press.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/button_red_big_press.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/ic_drawer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/icon_select.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_unselect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/icon_unselect.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/loading.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/offline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/offline.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/online.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/online.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/setting.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xhdpi/splash.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xxhdpi/ic_drawer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/icon_setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xxhdpi/icon_setting.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/icon_settings2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable-xxhdpi/icon_settings2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_auth_code_btn.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_red_btn.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/image_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_checkbox_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_device_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_red_blank_btn.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/tb_munion_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/tb_munion_item_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_common_gradient_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_common_gradient_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_common_gradient_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_cancel_bg_focused.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_cancel_bg_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_cancel_bg_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_cancel_bg_tap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_check_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 9 | 10 | 13 | 16 | 17 | 20 | 23 | 24 | 27 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_close_bg_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_ok_bg_focused.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_ok_bg_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_ok_bg_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_button_ok_bg_tap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_dialog_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_title_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_update_wifi_disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/app/src/main/res/drawable/umeng_update_wifi_disable.png -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_gateway_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 13 | 17 | 18 | 23 | 25 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 22 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/layout/adapter_device_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 17 | 18 | 28 | 29 | 39 | 40 | -------------------------------------------------------------------------------- /app/src/main/res/layout/adapter_devices_permission_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 18 | 27 | 35 | 45 | 46 | -------------------------------------------------------------------------------- /app/src/main/res/layout/adapter_navigation_drawer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_apconnect.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | 12 | 23 | 24 | 25 | 26 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_main.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_my_devices_list.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 13 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_navigation_drawer.xml: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/layout/tb_munion_aditem.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/layout/tb_munion_adview.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 12 | 13 | 20 | 21 | 24 | 25 | 32 | 33 | 39 | 40 | 47 | 48 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /app/src/main/res/menu/global.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-zh/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 加载失败 5 | vendor key错误 6 | product key错误 7 | device key错误 8 | device标识符错误 9 | 暂无操作权限 10 | 未知指令 11 | 指令参数错误 12 | 发送指令出错,请重试 13 | 请重新登录 14 | 设备不存在 15 | 密码错误,请重新登录 16 | 该手机号已注册,请直接登录 17 | 验证码已过期,请重新获取 18 | 验证码错误,请重新确认 19 | 账号无效,请确认该账号存在 20 | 未知属性 21 | 设备已离线 22 | 请求格式不正确 23 | 设备已绑定,解绑后才能再次绑定 24 | 缺少product key或vendor key 25 | 26 | 27 | 28 | 10001 29 | 10002 30 | 10003 31 | 10004 32 | 10005 33 | 10006 34 | 10007 35 | 10008 36 | 10009 37 | 10010 38 | 10011 39 | 10012 40 | 10013 41 | 10014 42 | 10015 43 | 10016 44 | 10017 45 | 10018 46 | 10019 47 | 10020 48 | 10021 49 | 50 | 51 | 52 | 修改设备信息 53 | 设备授权管理 54 | 解除绑定 55 | 56 | 57 | 58 | 修改设备信息 59 | 删除设备 60 | 61 | -------------------------------------------------------------------------------- /app/src/main/res/values-zh/umeng_common_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 正在下载中. 4 | 下载出错啦,请检查网络后继续。 5 | 暂停 6 | 继续 7 | 取消 8 | 正在下载: 9 | 暂停: 10 | 正在下载应用 11 | 正在更新安装包 12 | 请连接网络后再尝试! 13 | 下载失败 14 | 下载完成,请点击安装 15 | 更新完成,请点击安装 16 | 新版本已经准备好,请点击安装 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/values-zh/umeng_update_string.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 未联网 4 | 发现新版本 5 | 最新版本: 6 | 更新内容 7 | 仅需要下载: 8 | 新版本大小: 9 | (提示:非WIFI环境) 10 | 立即更新 11 | 应用更新 12 | 以后再说 13 | 忽略该版 14 | 正在更新中.... 15 | 最新版本已下载,是否安装? 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #e74848 4 | 5 | #666666 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 8 | 240dp 9 | 10 | 18sp 11 | 16sp 12 | 16sp 13 | 18sp 14 | 20sp 15 | 14sp 16 | 12sp 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/tb_munion_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #e3e3e3 5 | 正在下载: 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/umeng_common_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The app is already in downloading list. 4 | dowload interrupted. 5 | Pause 6 | Continue 7 | Cancel 8 | Downloading: 9 | Pause: 10 | Download start. 11 | Patch start. 12 | Please make sure you are connected to internet, download failed 13 | Download Failed! 14 | Download finished,click to install it. 15 | Patch finished,click to install it. 16 | New version is ready,click to install it. 17 | icon 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/umeng_update_string.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please make sure you are connected to internet,update failed 5 | New version found 6 | Latest version: 7 | Update Content 8 | Update size: 9 | Target size: 10 | (Warning: Not WIFI Condition) 11 | Update now 12 | App updating 13 | Not now 14 | Ingore this 15 | Updating.... 16 | The lastest version has been downloaded, install now ? 17 | 2.6.0.1.20150312 18 | 19 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /freeiot-android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | org.gradle.daemon=true 21 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 22 | 23 | org.gradle.parallel=true 24 | org.gradle.configureondemand=true 25 | -------------------------------------------------------------------------------- /gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 10 15:27:10 PDT 2013 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | Android API 22, MNC preview Platform 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':xwalk_core_library' -------------------------------------------------------------------------------- /vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /xwalk_core_library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /xwalk_core_library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 22 5 | buildToolsVersion "22.0.0" 6 | 7 | defaultConfig { 8 | minSdkVersion 8 9 | targetSdkVersion 22 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | sourceSets { 21 | main { 22 | jniLibs.srcDirs = ['libs'] 23 | } 24 | } 25 | 26 | lintOptions { 27 | abortOnError false 28 | } 29 | } 30 | 31 | dependencies { 32 | compile fileTree(dir: 'libs', include: ['*.jar']) 33 | compile 'com.android.support:appcompat-v7:22.0.0' 34 | } 35 | -------------------------------------------------------------------------------- /xwalk_core_library/libs/armeabi-v7a/libxwalkcore.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/libs/armeabi-v7a/libxwalkcore.so -------------------------------------------------------------------------------- /xwalk_core_library/libs/xwalk_core_library_java.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/libs/xwalk_core_library_java.jar -------------------------------------------------------------------------------- /xwalk_core_library/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/ywen/Documents/Android/android-sdk-macosx/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /xwalk_core_library/src/androidTest/java/org/xwalk/core/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package org.xwalk.core; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /xwalk_core_library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/bubble.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/bubble.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/bubble_arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/bubble_arrow_up.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/color_picker_advanced_select_handle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/color_picker_advanced_select_handle.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/dropdown_popup_background_down.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/dropdown_popup_background_down.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/dropdown_popup_background_up.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/dropdown_popup_background_up.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/ic_menu_search_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/ic_menu_search_holo_light.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/ic_menu_share_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/ic_menu_share_holo_light.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/ondemand_overlay.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/ondemand_overlay.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-hdpi/pageinfo_warning_major.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-hdpi/pageinfo_warning_major.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/bubble.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/bubble.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/bubble_arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/bubble_arrow_up.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/color_picker_advanced_select_handle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/color_picker_advanced_select_handle.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/dropdown_popup_background_down.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/dropdown_popup_background_down.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/dropdown_popup_background_up.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/dropdown_popup_background_up.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/ic_menu_search_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/ic_menu_search_holo_light.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/ic_menu_share_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/ic_menu_share_holo_light.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/ondemand_overlay.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/ondemand_overlay.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xhdpi/pageinfo_warning_major.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xhdpi/pageinfo_warning_major.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable-xxhdpi/pageinfo_warning_major.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable-xxhdpi/pageinfo_warning_major.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/bubble.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/bubble.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/bubble_arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/bubble_arrow_up.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/color_button_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24 | 25 | 26 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/color_picker_advanced_select_handle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/color_picker_advanced_select_handle.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/color_picker_border.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/dropdown_popup_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/dropdown_popup_background_down.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/dropdown_popup_background_down.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/dropdown_popup_background_up.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/dropdown_popup_background_up.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/ic_menu_search_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/ic_menu_search_holo_light.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/ic_menu_share_holo_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/ic_menu_share_holo_light.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/ondemand_overlay.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/ondemand_overlay.9.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/drawable/pageinfo_warning_major.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/drawable/pageinfo_warning_major.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout-land/date_time_picker_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | 24 | 25 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout-v17/color_picker_advanced_component.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 11 | 19 | 20 | 30 | 31 | 35 | 36 | 37 | 45 | 46 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout-v17/color_picker_dialog_content.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | 17 | 18 | 22 | 23 | 24 | 34 | 35 | 41 | 42 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout-v17/color_picker_dialog_title.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | 25 | 26 | 33 | 34 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout-v17/date_time_suggestion.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 24 | 35 | 36 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout-v17/dropdown_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 23 | 34 | 35 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout-v17/two_field_date_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | 21 | 22 | 23 | 33 | 34 | 35 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout/color_picker_advanced_component.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout/color_picker_dialog_content.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout/color_picker_dialog_title.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout/date_time_picker_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | 24 | 25 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout/date_time_suggestion.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout/dropdown_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/layout/two_field_date_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/menu/select_action_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 17 | 24 | 31 | 38 | 44 | 50 | 51 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/mipmap-hdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/mipmap-hdpi/app_icon.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/mipmap-mdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/mipmap-mdpi/app_icon.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/mipmap-xhdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/mipmap-xhdpi/app_icon.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/mipmap-xxhdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/mipmap-xxhdpi/app_icon.png -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/raw/icudtl.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/raw/icudtl.dat -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/raw/launch_screen_api.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2014 Intel Corporation. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | window.screen.show = function() { 8 | extension.postMessage("hideLaunchScreen"); 9 | }; 10 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/raw/xwalk.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/free-iot/freeiot-android/6f9965054829a8ab1a714c3e278d21505e09ab16/xwalk_core_library/src/main/res/raw/xwalk.pak -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-am/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "በአነስተኛ ማህደረ ትውስታ ምክንያት ቀዳሚውን ክወና ማጠናቀቅ አልተቻለም" 4 | "የተመረጠውን ፋይል መክፈት አልተሳካም" 5 | "ተጨማሪ" 6 | "ለይ ቀለም" 7 | "የቀለም ሙሌት" 8 | "እሴት" 9 | "አዘጋጅ" 10 | "ይቅር" 11 | "ቀለም ይምረጡ" 12 | "ቀይ" 13 | "ውሃ ሰማያዊ" 14 | "ሰማያዊ" 15 | "አረንጓዴ" 16 | "ሮዝ" 17 | "ቢጫ" 18 | "ጥቁር" 19 | "ነጭ" 20 | "ወደ ቅንጥብ ሰሌዳው መቅዳት አልተሳካም" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-ar/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "تعذر إكمال العملية السابقة نظرًا لانخفاض الذاكرة" 4 | "أخفق فتح الملف المحدد" 5 | "المزيد" 6 | "تدرج اللون" 7 | "تشبع اللون" 8 | "القيمة" 9 | "تعيين" 10 | "إلغاء" 11 | "اختيار اللون" 12 | "أحمر" 13 | "سماوي" 14 | "أزرق" 15 | "أخضر" 16 | "أرجواني" 17 | "أصفر" 18 | "أسود" 19 | "أبيض" 20 | "أخفق النسخ إلى الحافظة" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-bg/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Предишната операция не можа да завърши поради недостиг на памет" 4 | "Файлът не можа да се отвори" 5 | "Още" 6 | "Цветови тон" 7 | "Насищане" 8 | "Стойност" 9 | "Задаване" 10 | "Отказ" 11 | "Избор на цвят" 12 | "червено" 13 | "синьозелено" 14 | "синьо" 15 | "зелено" 16 | "пурпурно" 17 | "жълто" 18 | "черно" 19 | "бяло" 20 | "Копирането в буферната памет не бе успешно" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-ca/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "No es pot completar l\'operació anterior perquè hi ha poca memòria." 4 | "No s\'ha pogut obrir fitxer sel." 5 | "Més" 6 | "To" 7 | "Saturació" 8 | "Valor" 9 | "Configura" 10 | "Cancel·la" 11 | "Selecció de color" 12 | "Vermell" 13 | "Cian" 14 | "Blau" 15 | "Verd" 16 | "Magenta" 17 | "Groc" 18 | "Negre" 19 | "Blanc" 20 | "No s\'ha pogut copiar el contingut al porta-retalls." 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-cs/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Předchozí operaci nelze dokončit z důvodu nedostatku paměti" 4 | "Vybraný soubor nelze otevřít" 5 | "Více" 6 | "Odstín" 7 | "Sytost" 8 | "Hodnota" 9 | "Nastavit" 10 | "Zrušit" 11 | "Výběr barvy" 12 | "Červená" 13 | "Azurová" 14 | "Modrá" 15 | "Zelená" 16 | "Purpurová" 17 | "Žlutá" 18 | "Černá" 19 | "Bílá" 20 | "Zkopírování obsahu do schránky se nezdařilo" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-da/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Den tidligerere handling kunne ikke fuldføres på grund af manglende hukommelse" 4 | "Den valgte fil kunne ikke åbnes" 5 | "Mere" 6 | "Farvetone" 7 | "Mætning" 8 | "Værdi" 9 | "Angiv" 10 | "Annuller" 11 | "Vælg farve" 12 | "Rød" 13 | "Cyan" 14 | "Blå" 15 | "Grøn" 16 | "Magenta" 17 | "Gul" 18 | "Sort" 19 | "Hvid" 20 | "Der kunne ikke kopieres til udklipsholder" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-de/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Zu wenig Speicher für vorherige Operation" 4 | "Fehler beim Öffnen der Datei" 5 | "Mehr" 6 | "Farbton" 7 | "Sättigung" 8 | "Wert" 9 | "Festlegen" 10 | "Abbrechen" 11 | "Farbe auswählen" 12 | "Rot" 13 | "Cyan" 14 | "Blau" 15 | "Grün" 16 | "Magenta" 17 | "Gelb" 18 | "Schwarz" 19 | "Weiß" 20 | "Fehler beim Kopieren in die Zwischenablage" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-el/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Δεν ήταν δυνατή η ολοκλήρωση της προηγούμενης λειτουργίας λόγω χαμηλού επιπέδου μνήμης" 4 | "Αποτυχ. ανοίγμ. επιλεγμ. αρχείου" 5 | "Περισσότερα" 6 | "Απόχρωση" 7 | "Κορεσμός" 8 | "Τιμή" 9 | "Ορισμός" 10 | "Ακύρωση" 11 | "Επιλογή χρώματος" 12 | "Κόκκινο" 13 | "Κυανό" 14 | "Μπλε" 15 | "Πράσινο" 16 | "Ματζέντα" 17 | "Κίτρινο" 18 | "Μαύρο" 19 | "Λευκό" 20 | "Αποτυχία αντιγραφής στο πρόχειρο" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-en-rGB/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Unable to complete previous operation due to low memory" 4 | "Failed to open selected file" 5 | "More" 6 | "Hue" 7 | "Saturation" 8 | "Value" 9 | "Set" 10 | "Cancel" 11 | "Select colour" 12 | "Red" 13 | "Cyan" 14 | "Blue" 15 | "Green" 16 | "Magenta" 17 | "Yellow" 18 | "Black" 19 | "White" 20 | "Failed to copy to the clipboard" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-es-rUS/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Memoria insuficiente para completar la operación anterior" 4 | "Error al abrir el archivo" 5 | "Más" 6 | "Tono" 7 | "Saturación" 8 | "Valor" 9 | "Establecer" 10 | "Cancelar" 11 | "Seleccionar color" 12 | "Rojo" 13 | "Cian" 14 | "Azul" 15 | "Verde" 16 | "Magenta" 17 | "Amarillo" 18 | "Negro" 19 | "Blanco" 20 | "Error al copiar al portapapeles" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-es/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "No se ha podido completar la operación anterior por falta de memoria" 4 | "Error abrir archivo seleccionado" 5 | "Más" 6 | "Matiz" 7 | "Saturación" 8 | "Valor" 9 | "Establecer" 10 | "Cancelar" 11 | "Seleccionar color" 12 | "Rojo" 13 | "Cian" 14 | "Azul" 15 | "Verde" 16 | "Magenta" 17 | "Amarillo" 18 | "Negro" 19 | "Blanco" 20 | "Error al copiar en el portapapeles" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-fa/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "به دلیل کم بودن حافظه، تکمیل عملیات قبلی امکان‌پذیر نیست" 4 | "باز کردن فایل انتخابی انجام نشد" 5 | "بیشتر" 6 | "رنگ‌مایه" 7 | "اشباع رنگ" 8 | "مقدار" 9 | "تنظیم" 10 | "لغو" 11 | "انتخاب رنگ" 12 | "قرمز" 13 | "فیروزه‌ای" 14 | "آبی" 15 | "سبز" 16 | "سرخابی" 17 | "زرد" 18 | "سیاه" 19 | "سفید" 20 | "کپی در کلیپ بورد ناموفق بود" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-fi/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Edellistä toimintoa ei voi suorittaa. Muisti ei riitä." 4 | "Valittua tiedostoa ei voi avata" 5 | "Lisää" 6 | "Sävy" 7 | "Värikylläisyys" 8 | "Arvo" 9 | "Aseta" 10 | "Peruuta" 11 | "Valitse väri" 12 | "Punainen" 13 | "Turkoosi" 14 | "Sininen" 15 | "Vihreä" 16 | "Purppura" 17 | "Keltainen" 18 | "Musta" 19 | "Valkoinen" 20 | "Kopiointi leikepöydälle epäonnistui" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-fr/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Impossible de terminer l\'opération précédente. Mémoire insuffisante." 4 | "Échec de l\'ouverture du fichier." 5 | "Plus" 6 | "Teinte" 7 | "Saturation" 8 | "Valeur" 9 | "Définir" 10 | "Annuler" 11 | "Sélectionner couleur" 12 | "Rouge" 13 | "Cyan" 14 | "Bleu" 15 | "Vert" 16 | "Magenta" 17 | "Jaune" 18 | "Noir" 19 | "Blanc" 20 | "Échec de la copie du contenu dans le Presse-papiers." 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-hi/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "कम स्‍मृति के कारण पिछली कार्रवाई पूरी करने में असमर्थ" 4 | "चयनित फ़ाइल खोलने में विफल" 5 | "अधिक" 6 | "रंग" 7 | "संतृप्तता" 8 | "मान" 9 | "सेट करें" 10 | "रद्द करें" 11 | "रंग चुनें" 12 | "लाल" 13 | "स्यान" 14 | "नीला" 15 | "हरा" 16 | "मैजेंटा" 17 | "पीला" 18 | "काला" 19 | "सफ़ेद" 20 | "क्लिपबोर्ड पर प्रतिलिपि बनाने में विफल रहा" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-hr/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Nije moguće dovršiti prethodnu operaciju jer nema dovoljno memorije" 4 | "Odabrana datoteka nije otvorena" 5 | "Više" 6 | "Ton" 7 | "Zasićenje" 8 | "Vrijednost" 9 | "Postavi" 10 | "Odustani" 11 | "Odaberite boju" 12 | "Crvena" 13 | "Cijan" 14 | "Plava" 15 | "Zelena" 16 | "Magenta" 17 | "Žuta" 18 | "Crna" 19 | "Bijela" 20 | "Nije kopirano u međuspremnik" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-hu/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Az előző műveletet memóriahiány miatt nem lehet elvégezni" 4 | "A fájl megnyitása sikertelen" 5 | "Hosszabban" 6 | "Színárnyalat" 7 | "Telítettség" 8 | "Érték" 9 | "Beállítás" 10 | "Mégse" 11 | "Szín kiválasztása" 12 | "Piros" 13 | "Cián" 14 | "Kék" 15 | "Zöld" 16 | "Magenta" 17 | "Sárga" 18 | "Fekete" 19 | "Fehér" 20 | "Nem sikerült a vágólapra másolni" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-in/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Tidak dapat menyelesaikan operasi sebelumnya karena sisa memori sedikit" 4 | "Gagal membuka file terpilih" 5 | "Lainnya" 6 | "Rona" 7 | "Saturasi" 8 | "Nilai" 9 | "Setel" 10 | "Batal" 11 | "Pilih warna" 12 | "Merah" 13 | "Sian" 14 | "Biru" 15 | "Hijau" 16 | "Magenta" 17 | "Kuning" 18 | "Hitam" 19 | "Putih" 20 | "Gagal menyalin ke papan klip" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-it/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Impossibile completare l\'operazione precedente. Memoria insufficiente." 4 | "Impossibile aprire file selez." 5 | "Più" 6 | "Tonalità" 7 | "Saturazione" 8 | "Valore" 9 | "Imposta" 10 | "Annulla" 11 | "Seleziona colore" 12 | "Rosso" 13 | "Ciano" 14 | "Blu" 15 | "Verde" 16 | "Magenta" 17 | "Giallo" 18 | "Nero" 19 | "Bianco" 20 | "Impossibile copiare negli appunti" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-iw/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "לא ניתן להשלים את הפעולה הקודמת עקב מחסור בזיכרון" 4 | "פתיחת הקובץ הנבחר נכשלה" 5 | "עוד" 6 | "גוון" 7 | "רווייה" 8 | "ערך" 9 | "הגדר" 10 | "ביטול" 11 | "בחירת צבע" 12 | "אדום" 13 | "ציאן" 14 | "כחול" 15 | "ירוק" 16 | "מגנטה" 17 | "צהוב" 18 | "שחור" 19 | "לבן" 20 | "ההעתקה אל הלוח נכשלה" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-ja/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "メモリ不足のため直前の操作を完了できません" 4 | "選択したファイルを開けません" 5 | "詳細表示" 6 | "色調" 7 | "彩度" 8 | "値" 9 | "設定" 10 | "キャンセル" 11 | "色の選択" 12 | "赤" 13 | "シアン" 14 | "青" 15 | "緑" 16 | "マゼンタ" 17 | "黄" 18 | "黒" 19 | "白" 20 | "クリップボードにコピーできませんでした" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-ko/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "메모리가 부족하여 이전 작업을 완료할 수 없습니다." 4 | "선택한 파일을 열지 못했습니다." 5 | "더보기" 6 | "색조" 7 | "채도" 8 | "값" 9 | "설정" 10 | "취소" 11 | "색상 선택" 12 | "빨간색" 13 | "청록색" 14 | "파란색" 15 | "녹색" 16 | "자홍색" 17 | "노란색" 18 | "검정색" 19 | "흰색" 20 | "클립보드로 복사하지 못했습니다." 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-lt/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Nepavyko baigti ankstesnio veiksmo dėl atminties trūkumo" 4 | "Atid. pasir. failą įvyko klaida" 5 | "Daugiau" 6 | "Spalva" 7 | "Spalvų sodrumas" 8 | "Reikšmė" 9 | "Nustatyti" 10 | "Atšaukti" 11 | "Pasirinkite spalvą" 12 | "Raudona" 13 | "Žydra" 14 | "Mėlyna" 15 | "Žalia" 16 | "Purpurinė" 17 | "Geltona" 18 | "Juoda" 19 | "Balta" 20 | "Nepavyko nukopijuoti į iškarpinę" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-lv/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Iepriekšējo darbību nevar pabeigt mazā atmiņas apjoma dēļ." 4 | "Neizdevās atvērt atlasīto failu." 5 | "Vairāk" 6 | "Nokrāsa" 7 | "Piesātinājums" 8 | "Vērtība" 9 | "Iestatīt" 10 | "Atcelt" 11 | "Krāsas izvēle" 12 | "Sarkana" 13 | "Ciānzila" 14 | "Zila" 15 | "Zaļa" 16 | "Fuksīnsarkana" 17 | "Dzeltena" 18 | "Melna" 19 | "Balta" 20 | "Neizdevās kopēt starpliktuvē." 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-nb/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Kan ikke fullføre forrige handling på grunn av lite minne" 4 | "Kunne ikke åpne den valgte filen" 5 | "Mer" 6 | "Fargetone" 7 | "Metning" 8 | "Verdi" 9 | "Angi" 10 | "Avbryt" 11 | "Velg farge" 12 | "Rød" 13 | "Cyan" 14 | "Blå" 15 | "Grønn" 16 | "Magenta" 17 | "Gul" 18 | "Svart" 19 | "Hvit" 20 | "Kunne ikke kopiere til utklippstavlen" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-nl/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Kan vorige bewerking niet voltooien. Te weinig geheugen" 4 | "Kan geselec. bestand niet openen" 5 | "Meer" 6 | "Kleurtoon" 7 | "Verzadiging" 8 | "Waarde" 9 | "Instellen" 10 | "Annuleren" 11 | "Kleur selecteren" 12 | "Rood" 13 | "Cyaan" 14 | "Blauw" 15 | "Groen" 16 | "Magenta" 17 | "Geel" 18 | "Zwart" 19 | "Wit" 20 | "Kopiëren naar het klembord mislukt" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-pl/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Zbyt mało pamięci, by ukończyć poprzednią operację" 4 | "Nie udało się otworzyć pliku" 5 | "Więcej" 6 | "Odcień" 7 | "Nasycenie" 8 | "Wartość" 9 | "Ustaw" 10 | "Anuluj" 11 | "Wybierz kolor" 12 | "Czerwony" 13 | "Cyjan" 14 | "Niebieski" 15 | "Zielony" 16 | "Magenta" 17 | "Żółty" 18 | "Czarny" 19 | "Biały" 20 | "Nie udało się skopiować do schowka" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-pt-rBR/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Devido à insuficiência de memória, não foi possível concluir a operação anterior" 4 | "Erro ao abrir arq. selecionado" 5 | "Mais" 6 | "Matiz" 7 | "Saturação" 8 | "Valor" 9 | "Definir" 10 | "Cancelar" 11 | "Selecionar cor" 12 | "Vermelho" 13 | "Ciano" 14 | "Azul" 15 | "Verde" 16 | "Magenta" 17 | "Amarelo" 18 | "Preto" 19 | "Branco" 20 | "Falha ao copiar para a área de transferência" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-pt-rPT/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Não foi possível concluir a operação anterior devido à baixa memória disponível" 4 | "Falha ao abrir o fich. selec." 5 | "Mais" 6 | "Tonalidade" 7 | "Saturação" 8 | "Valor" 9 | "Definir" 10 | "Cancelar" 11 | "Selecionar cor" 12 | "Vermelho" 13 | "Turquesa" 14 | "Azul" 15 | "Verde" 16 | "Magenta" 17 | "Amarelo" 18 | "Preto" 19 | "Branco" 20 | "Falha ao copiar para a área de transferência" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-ro/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Operația anterioară nu se poate finaliza, din cauza memoriei insuficiente" 4 | "Fișier. select. nu s-a deschis" 5 | "Mai multe" 6 | "Nuanță" 7 | "Saturație" 8 | "Valoare" 9 | "Setați" 10 | "Anulați" 11 | "Selectați culoarea" 12 | "Roșu" 13 | "Cyan" 14 | "Albastru" 15 | "Verde" 16 | "Magenta" 17 | "Galben" 18 | "Negru" 19 | "Alb" 20 | "Nu s-a copiat în clipboard" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-ru/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Не удалось завершить операцию (недостаточно памяти)" 4 | "Не удалось открыть файл" 5 | "Подробнее..." 6 | "Тон" 7 | "Насыщенность" 8 | "Значение" 9 | "Установить" 10 | "Отмена" 11 | "Выберите цвет" 12 | "Красный" 13 | "Голубой" 14 | "Синий" 15 | "Зеленый" 16 | "Пурпурный" 17 | "Желтый" 18 | "Черный" 19 | "Белый" 20 | "Не удалось копировать данные в буфер обмена" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-sk/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Predchádzajúca operácia sa nedokončila z dôvodu nedostatku pamäte" 4 | "Vybr. súbor sa nepodar. otvoriť" 5 | "Viac" 6 | "Odtieň" 7 | "Sýtosť" 8 | "Hodnota" 9 | "Nastaviť" 10 | "Zrušiť" 11 | "Výber farby" 12 | "Červená" 13 | "Azúrová" 14 | "Modrá" 15 | "Zelená" 16 | "Purpurová" 17 | "Žltá" 18 | "Čierna" 19 | "Biela" 20 | "Skopírovanie do schránky sa nepodarilo" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-sl/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Prejšnjega dejanja ni mogoče končati, ker primanjkuje pomnilnika" 4 | "Izb. dat. ni bilo mogoče odpreti" 5 | "Več" 6 | "Odtenek" 7 | "Nasičenost" 8 | "Vrednost" 9 | "Nastavi" 10 | "Prekliči" 11 | "Izbira barve" 12 | "Rdeča" 13 | "Cianova" 14 | "Modra" 15 | "Zelena" 16 | "Škrlatna" 17 | "Rumena" 18 | "Črna" 19 | "Bela" 20 | "Kopiranje v odložišče ni uspelo" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-sr/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Није могуће довршити претходну радњу због недостатка меморије" 4 | "Неуспешно отварање изабр. датот." 5 | "Више" 6 | "Нијанса" 7 | "Засићеност боја" 8 | "Вредност" 9 | "Постави" 10 | "Откажи" 11 | "Изаберите боју" 12 | "Црвена" 13 | "Плавозелена" 14 | "Плава" 15 | "Зелена" 16 | "Циклама" 17 | "Жута" 18 | "Црна" 19 | "Бела" 20 | "Копирање у привремену меморију није успело" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-sv/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Föregående åtgärd kan inte slutföras. För lite minne." 4 | "Det gick inte att öppna filen" 5 | "Mer" 6 | "Nyans" 7 | "Mättnad" 8 | "Värde" 9 | "Ange" 10 | "Avbryt" 11 | "Välj färg" 12 | "Röd" 13 | "Cyanblå" 14 | "Blå" 15 | "Grön" 16 | "Magenta" 17 | "Gul" 18 | "Svart" 19 | "Vit" 20 | "Det gick inte att kopiera till Urklipp" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-sw/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Imeshindwa kukamilisha jukumu lililotangulia kwa sababu ya nafasi ndogo ya hifadhi" 4 | "Imeshindwa kufungua faili iliyochaguliwa" 5 | "Zaidi" 6 | "Rangi" 7 | "Kukolea" 8 | "Thamani" 9 | "Weka" 10 | "Ghairi" 11 | "Chagua rangi" 12 | "Nyekundu" 13 | "Samawati-Kijani" 14 | "Samawati" 15 | "Kijani" 16 | "Rangi ya damu ya mzee" 17 | "Manjano" 18 | "Nyeusi" 19 | "Nyeupe" 20 | "Ilishindwa kunakiliwa kwenda kwenye ubao klipu." 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-th/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "ไม่สามารถดำเนินการก่อนหน้าให้สิ้นสุดได้เพราะหน่วยความจำเหลือน้อย" 4 | "ไม่สามารถเปิดไฟล์ที่เลือก" 5 | "เพิ่มเติม" 6 | "โทนสี" 7 | "ความอิ่มตัวของสี" 8 | "ราคา" 9 | "ตั้งค่า" 10 | "ยกเลิก" 11 | "เลือกสี" 12 | "สีแดง" 13 | "สีฟ้า" 14 | "สีน้ำเงิน" 15 | "สีเขียว" 16 | "สีม่วงแดง" 17 | "สีเหลือง" 18 | "สีดำ" 19 | "สีขาว" 20 | "ไม่สามารถคัดลอกไปยังคลิปบอร์ด" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-tl/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Hindi makumpleto ang nakaraang operasyon dahil sa mababang memory" 4 | "Hindi mabuksan ang napiling file" 5 | "Higit pa" 6 | "Hue" 7 | "Saturation" 8 | "Value" 9 | "Itakda" 10 | "Ikansela" 11 | "Pumili ng kulay" 12 | "Pula" 13 | "Cyan" 14 | "Asul" 15 | "Berde" 16 | "Magenta" 17 | "Dilaw" 18 | "Itim" 19 | "Puti" 20 | "Nabigong kopyahin sa clipboard" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-tr/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Bellek yetersiz olduğundan önceki işlem tamamlanamadı" 4 | "Seçilen dosya açılamadı" 5 | "Daha fazla" 6 | "Ton" 7 | "Doygunluk" 8 | "Değer" 9 | "Ayarla" 10 | "İptal" 11 | "Renk seçin" 12 | "Kırmızı" 13 | "Camgöbeği" 14 | "Mavi" 15 | "Yeşil" 16 | "Macenta" 17 | "Sarı" 18 | "Siyah" 19 | "Beyaz" 20 | "Panoya kopyalanamadı" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-uk/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Не вдається закінчити попередню операцію через нестачу пам’яті" 4 | "Не вдалося відкрити файл" 5 | "Більше" 6 | "Тон" 7 | "Насиченість" 8 | "Яскравість" 9 | "Встановити" 10 | "Скасувати" 11 | "Вибрати колір" 12 | "Червоний" 13 | "Бірюзовий" 14 | "Синій" 15 | "Зелений" 16 | "Пурпурний" 17 | "Жовтий" 18 | "Чорний" 19 | "Білий" 20 | "Не вдалося скопіювати в буфер обміну" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-v17/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | 14 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-v17/ui_java_styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-vi/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Không thể hoàn tất thao tác trước do bộ nhớ thấp" 4 | "Không mở được tệp đã chọn" 5 | "Thêm" 6 | "Màu sắc" 7 | "Độ bão hòa" 8 | "Giá trị" 9 | "Đặt" 10 | "Hủy" 11 | "Chọn màu" 12 | "Đỏ" 13 | "Lục lam" 14 | "Xanh lam" 15 | "Xanh lục" 16 | "Đỏ thẫm" 17 | "Vàng" 18 | "Đen" 19 | "Trắng" 20 | "Sao chép sang khay nhớ tạm không thành công" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-zh-rCN/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "内存不足,无法完成上一操作" 4 | "无法打开所选文件" 5 | "更多" 6 | "色调" 7 | "饱和度" 8 | "值" 9 | "设置" 10 | "取消" 11 | "选择颜色" 12 | "红色" 13 | "青色" 14 | "蓝色" 15 | "绿色" 16 | "洋红色" 17 | "黄色" 18 | "黑色" 19 | "白色" 20 | "未能复制到剪贴板" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values-zh-rTW/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "記憶體不足,無法完成前一項操作" 4 | "無法開啟選取的檔案" 5 | "詳細資訊" 6 | "色調" 7 | "飽和度" 8 | "值" 9 | "設定" 10 | "取消" 11 | "選取顏色" 12 | "紅色" 13 | "青色" 14 | "藍色" 15 | "綠色" 16 | "洋紅色" 17 | "黃色" 18 | "黑色" 19 | "白色" 20 | "無法複製到剪貼簿" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/android_ui_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Unable to complete previous operation due to low memory" 4 | "Failed to open selected file" 5 | "More" 6 | "Hue" 7 | "Saturation" 8 | "Value" 9 | "Set" 10 | "Cancel" 11 | "Select color" 12 | "Red" 13 | "Cyan" 14 | "Blue" 15 | "Green" 16 | "Magenta" 17 | "Yellow" 18 | "Black" 19 | "White" 20 | "Failed to copy to the clipboard" 21 | 22 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/android_xwalk_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | "Javascript Alert" 4 | "Javascript Confirm" 5 | "Javascript Prompt" 6 | "Downloading file:" 7 | "No permission to write, abort." 8 | "Downloading file already exists, abort." 9 | "Failed to download file." 10 | "Finished to download file." 11 | "Ssl Certificate Error Alert" 12 | "Authentication Required" 13 | "Username" 14 | "Password" 15 | "Log In" 16 | "Mismatch of CPU architecture for Crosswalk" 17 | "Unfortunately this application was not created for %1$s based devices, please take a moment to notify the developer about it. Thanks." 18 | "Go to Google Play Store" 19 | "Report to developer" 20 | 21 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | #B0B0B0 9 | #FFFFFF 10 | #E5E5E5 11 | #C0C0C0 12 | 13 | 14 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 7dp 11 | 12 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/ui_java_dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | 14.5dp 14 | 60dp 15 | 44dp 16 | 1px 17 | 18 | 23 | 27.0mm 24 | 48.0dp 25 | 26 | 27 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/ui_java_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/ui_java_styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/values.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/xwalk_core_internal_java_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /xwalk_core_library/src/main/res/values/xwalk_resources_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | icudtl.dat 5 | xwalk.pak 6 | 7 | 8 | --------------------------------------------------------------------------------