├── .gitignore
├── AgendaData
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ ├── project.properties
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── agendadata
│ │ │ ├── CalendarQueryService.java
│ │ │ ├── Constants.java
│ │ │ └── MainActivity.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-nodpi
│ │ └── nobody.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── layout
│ │ └── main.xml
│ │ └── values
│ │ ├── strings.xml
│ │ └── styles.xml
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ ├── project.properties
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── agendadata
│ │ ├── Constants.java
│ │ ├── DeleteService.java
│ │ └── HomeListenerService.java
│ └── res
│ ├── drawable-hdpi
│ ├── ic_launcher.png
│ └── ic_menu_delete.png
│ ├── drawable-mdpi
│ ├── ic_launcher.png
│ └── ic_menu_delete.png
│ ├── drawable-xhdpi
│ ├── ic_launcher.png
│ └── ic_menu_delete.png
│ ├── drawable-xxhdpi
│ ├── ic_launcher.png
│ └── ic_menu_delete.png
│ └── values
│ └── strings.xml
├── DataLayer
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── datalayer
│ │ │ └── MainActivity.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ ├── ic_content_picture.png
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ ├── ic_content_picture.png
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ ├── ic_content_picture.png
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ ├── ic_content_picture.png
│ │ └── ic_launcher.png
│ │ ├── drawable
│ │ └── divider.xml
│ │ ├── layout
│ │ └── main_activity.xml
│ │ └── values
│ │ ├── strings.xml
│ │ └── style.xml
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── datalayer
│ │ ├── DataLayerListenerService.java
│ │ └── MainActivity.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ ├── layout
│ └── main_activity.xml
│ └── values
│ └── strings.xml
├── DelayedConfirmation
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── delayedconfirmation
│ │ │ └── MainActivity.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── layout
│ │ └── main_activity.xml
│ │ └── values
│ │ └── strings.xml
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── delayedconfirmation
│ │ ├── MainActivity.java
│ │ └── WearableMessageListenerService.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ ├── layout
│ └── main_activity.xml
│ └── values
│ ├── dimens.xml
│ └── strings.xml
├── ElizaChat
├── build.gradle
├── proguard-rules.txt
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── elizachat
│ │ ├── ElizaResponder.java
│ │ ├── MainActivity.java
│ │ └── ResponderService.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_full_reply.png
│ ├── drawable-mdpi
│ └── ic_full_reply.png
│ ├── drawable-nodpi
│ └── bg_eliza.png
│ ├── drawable-xhdpi
│ └── ic_full_reply.png
│ ├── layout
│ └── activity_main.xml
│ ├── menu
│ └── main.xml
│ ├── mipmap-hdpi
│ └── ic_app_eliza.png
│ ├── mipmap-mdpi
│ └── ic_app_eliza.png
│ ├── mipmap-xhdpi
│ └── ic_app_eliza.png
│ ├── mipmap-xxhdpi
│ └── ic_app_eliza.png
│ ├── mipmap-xxxhdpi
│ └── ic_app_eliza.png
│ └── values
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
├── EmbeddedApp
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── embeddedapp
│ │ │ └── PhoneActivity.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── layout
│ │ └── activity_phone.xml
│ │ └── values
│ │ ├── dimens.xml
│ │ └── strings.xml
├── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── embeddedapp
│ │ │ └── WearableActivity.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── layout
│ │ └── activity_wearable.xml
│ │ └── values
│ │ └── strings.xml
└── debug.keystore
├── FindMyPhone
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ ├── project.properties
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── findphone
│ │ │ └── SoundAlarmListenerService.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ └── values
│ │ └── strings.xml
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ ├── project.properties
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── findphone
│ │ ├── DisconnectListenerService.java
│ │ ├── FindPhoneActivity.java
│ │ └── FindPhoneService.java
│ └── res
│ ├── drawable-hdpi
│ ├── alarm_action_icon.png
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ └── values
│ └── strings.xml
├── Flashlight
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── flashlight
│ │ ├── MainActivity.java
│ │ └── PartyLightView.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ ├── layout
│ ├── main.xml
│ ├── party_light.xml
│ └── white_light.xml
│ └── values
│ └── strings.xml
├── Geofencing
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ ├── project.properties
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── geofencing
│ │ │ ├── Constants.java
│ │ │ ├── GeofenceTransitionsIntentService.java
│ │ │ ├── MainActivity.java
│ │ │ ├── SimpleGeofence.java
│ │ │ └── SimpleGeofenceStore.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ └── values
│ │ └── strings.xml
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ ├── project.properties
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── geofencing
│ │ ├── CheckInAndDeleteDataItemsService.java
│ │ ├── Constants.java
│ │ └── HomeListenerService.java
│ └── res
│ ├── drawable-hdpi
│ ├── ic_action_check_in.png
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-nodpi
│ ├── android_building.png
│ └── yerba_buena.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ └── values
│ └── strings.xml
├── GridViewPager
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── gridviewpager
│ │ ├── MainActivity.java
│ │ └── SampleGridPagerAdapter.java
│ └── res
│ ├── drawable-hdpi
│ ├── bugdroid.png
│ ├── ic_launcher.png
│ ├── ic_swipe_arrow_left.png
│ ├── ic_swipe_arrow_right.png
│ └── ic_swipe_arrow_up.png
│ ├── drawable-mdpi
│ ├── bugdroid.png
│ ├── ic_launcher.png
│ ├── ic_swipe_arrow_left.png
│ ├── ic_swipe_arrow_right.png
│ └── ic_swipe_arrow_up.png
│ ├── drawable-xhdpi
│ ├── ic_launcher.png
│ ├── ic_swipe_arrow_left.png
│ ├── ic_swipe_arrow_right.png
│ └── ic_swipe_arrow_up.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ ├── drawable
│ ├── debug_background_1.png
│ ├── debug_background_2.png
│ ├── debug_background_3.png
│ ├── debug_background_4.png
│ └── debug_background_5.png
│ ├── layout
│ └── activity_main.xml
│ └── values
│ ├── dimens.xml
│ └── strings.xml
├── JumpingJack
├── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── jumpingjack
│ │ │ ├── MainActivity.java
│ │ │ ├── PagerAdapter.java
│ │ │ ├── Utils.java
│ │ │ └── fragments
│ │ │ ├── CounterFragment.java
│ │ │ └── SettingsFragment.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ ├── btn_reset_normal_200.png
│ │ ├── btn_reset_pressed_200.png
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxxhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable
│ │ ├── empty_10.png
│ │ ├── full_10.png
│ │ ├── jump_down_50.png
│ │ ├── jump_up_50.png
│ │ └── submit_button.xml
│ │ ├── layout
│ │ ├── counter_layout.xml
│ │ ├── jj_layout.xml
│ │ └── setting_layout.xml
│ │ └── values
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ └── strings.xml
├── license.txt
└── proguard-rules.txt
├── LICENSE
├── Notifications
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── support
│ │ │ └── wearable
│ │ │ └── notifications
│ │ │ ├── ActionsPreset.java
│ │ │ ├── ActionsPresets.java
│ │ │ ├── BackgroundPickers.java
│ │ │ ├── MainActivity.java
│ │ │ ├── NamedPreset.java
│ │ │ ├── NotificationIntentReceiver.java
│ │ │ ├── NotificationPreset.java
│ │ │ ├── NotificationPresets.java
│ │ │ ├── NotificationUtil.java
│ │ │ ├── PriorityPreset.java
│ │ │ └── PriorityPresets.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ ├── example_large_icon.png
│ │ ├── ic_full_action.png
│ │ ├── ic_full_reply.png
│ │ └── ic_result_open.png
│ │ ├── drawable-mdpi
│ │ ├── ic_full_action.png
│ │ ├── ic_full_reply.png
│ │ └── ic_result_open.png
│ │ ├── drawable-nodpi
│ │ ├── bg_1.png
│ │ ├── bg_2.png
│ │ ├── bg_3.png
│ │ ├── bg_4.png
│ │ ├── bg_5.png
│ │ ├── content_icon_large.png
│ │ ├── content_icon_small.png
│ │ └── example_big_picture.jpg
│ │ ├── drawable-xhdpi
│ │ ├── ic_full_action.png
│ │ ├── ic_full_reply.png
│ │ └── ic_result_open.png
│ │ ├── drawable
│ │ ├── selected_background.xml
│ │ └── unselected_background.xml
│ │ ├── layout
│ │ ├── activity_main.xml
│ │ ├── background_picker.xml
│ │ ├── layout_divider.xml
│ │ └── simple_spinner_item.xml
│ │ ├── mipmap-hdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ └── ic_launcher.png
│ │ └── values
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── support
│ │ └── wearable
│ │ └── notifications
│ │ ├── AnimatedNotificationDisplayActivity.java
│ │ ├── BasicNotificationDisplayActivity.java
│ │ ├── MainActivity.java
│ │ ├── NotificationPreset.java
│ │ ├── NotificationPresets.java
│ │ └── WearableListItemLayout.java
│ └── res
│ ├── drawable-nodpi
│ ├── content_icon_large.png
│ ├── content_icon_small.png
│ └── example_big_picture.jpg
│ ├── drawable
│ └── wl_circle.xml
│ ├── layout
│ ├── activity_animated_notification_display.xml
│ ├── activity_main.xml
│ ├── activity_notification_display.xml
│ └── notif_preset_list_item.xml
│ ├── mipmap-hdpi
│ └── ic_launcher.png
│ ├── mipmap-mdpi
│ └── ic_launcher.png
│ ├── mipmap-xhdpi
│ └── ic_launcher.png
│ ├── mipmap-xxhdpi
│ └── ic_launcher.png
│ ├── mipmap-xxxhdpi
│ └── ic_launcher.png
│ └── values
│ ├── colors.xml
│ ├── dimens.xml
│ ├── integers.xml
│ └── strings.xml
├── Quiz
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ └── Quiz.json
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── quiz
│ │ │ ├── Constants.java
│ │ │ ├── JsonUtils.java
│ │ │ └── MainActivity.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ ├── ic_choice_a.png
│ │ ├── ic_choice_b.png
│ │ ├── ic_choice_c.png
│ │ ├── ic_choice_d.png
│ │ ├── ic_launcher.png
│ │ └── ic_unknown_choice.png
│ │ ├── drawable-mdpi
│ │ ├── ic_choice_a.png
│ │ ├── ic_choice_b.png
│ │ ├── ic_choice_c.png
│ │ ├── ic_choice_d.png
│ │ ├── ic_launcher.png
│ │ └── ic_unknown_choice.png
│ │ ├── drawable-xhdpi
│ │ ├── ic_choice_a.png
│ │ ├── ic_choice_b.png
│ │ ├── ic_choice_c.png
│ │ ├── ic_choice_d.png
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable
│ │ ├── selected_background.xml
│ │ └── unselected_background.xml
│ │ ├── layout
│ │ ├── activity_main.xml
│ │ └── question_status_element.xml
│ │ └── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── quiz
│ │ ├── Constants.java
│ │ ├── DeleteQuestionService.java
│ │ ├── QuizListenerService.java
│ │ ├── QuizReportActionService.java
│ │ └── UpdateQuestionService.java
│ └── res
│ ├── drawable-hdpi
│ ├── ic_choice_a.png
│ ├── ic_choice_b.png
│ ├── ic_choice_c.png
│ ├── ic_choice_d.png
│ ├── ic_launcher.png
│ └── ic_unknown_choice.png
│ ├── drawable-mdpi
│ ├── ic_choice_a.png
│ ├── ic_choice_b.png
│ ├── ic_choice_c.png
│ ├── ic_choice_d.png
│ ├── ic_launcher.png
│ └── ic_unknown_choice.png
│ ├── drawable-xhdpi
│ ├── ic_choice_a.png
│ ├── ic_choice_b.png
│ ├── ic_choice_c.png
│ ├── ic_choice_d.png
│ ├── ic_launcher.png
│ └── ic_unknown_choice.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ └── values
│ ├── colors.xml
│ └── strings.xml
├── README.md
├── RecipeAssistant
└── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── assets
│ ├── beef-brisket-chili.json
│ ├── chili.jpg
│ ├── guacamole.jpg
│ ├── guacamole.json
│ ├── irish-stew.jpg
│ ├── northern-irish-vegetable-soup.json
│ ├── recipelist.json
│ ├── step-1-grind-spices.jpg
│ ├── step-2-score-beef.jpg
│ ├── step-3-brown-beef.jpg
│ ├── step-3-lime.jpg
│ ├── step-4-fry-onion.jpg
│ ├── step-6-combine.jpg
│ └── step-8-pull.jpg
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── recipeassistant
│ │ ├── AssetUtils.java
│ │ ├── Constants.java
│ │ ├── MainActivity.java
│ │ ├── Recipe.java
│ │ ├── RecipeActivity.java
│ │ ├── RecipeListAdapter.java
│ │ └── RecipeService.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_noimage.png
│ ├── drawable-mdpi
│ └── ic_noimage.png
│ ├── drawable-xhdpi
│ └── ic_noimage.png
│ ├── layout
│ ├── list_item.xml
│ ├── recipe.xml
│ └── step_item.xml
│ ├── menu
│ └── main.xml
│ ├── mipmap-hdpi
│ ├── ic_app_recipe.png
│ └── ic_notification_recipe.png
│ ├── mipmap-mdpi
│ ├── ic_app_recipe.png
│ └── ic_notification_recipe.png
│ ├── mipmap-xhdpi
│ ├── ic_app_recipe.png
│ └── ic_notification_recipe.png
│ ├── mipmap-xxhdpi
│ ├── ic_app_recipe.png
│ └── ic_notification_recipe.png
│ ├── mipmap-xxxhdpi
│ ├── ic_app_recipe.png
│ └── ic_notification_recipe.png
│ └── values
│ ├── colors.xml
│ ├── strings.xml
│ └── styles.xml
├── SkeletonWearableApp
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── google
│ │ └── wearable
│ │ └── app
│ │ ├── GridExampleActivity.java
│ │ └── MainActivity.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ ├── layout
│ ├── grid_activity.xml
│ └── main_activity.xml
│ └── values
│ ├── dimens.xml
│ └── strings.xml
├── SynchronizedNotifications
├── Application
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── synchronizednotifications
│ │ │ ├── DismissListener.java
│ │ │ └── PhoneActivity.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── layout
│ │ └── activity_phone.xml
│ │ └── values
│ │ ├── dimens.xml
│ │ └── strings.xml
├── Common
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── wearable
│ │ │ └── synchronizednotifications
│ │ │ └── common
│ │ │ └── Constants.java
│ │ └── res
│ │ └── values
│ │ └── strings.xml
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── synchronizednotifications
│ │ ├── NotificationUpdateService.java
│ │ └── WearableActivity.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── layout
│ └── activity_wearable.xml
│ └── values
│ └── strings.xml
├── Timer
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── wearable
│ │ └── timer
│ │ ├── SetTimerActivity.java
│ │ ├── TimerNotificationService.java
│ │ └── util
│ │ ├── Constants.java
│ │ ├── TimerFormat.java
│ │ └── TimerObj.java
│ └── res
│ ├── drawable
│ └── ic_cc_alarm.png
│ ├── layout
│ └── timer_set_timer.xml
│ ├── mipmap-hdpi
│ └── ic_launcher.png
│ ├── mipmap-mdpi
│ └── ic_launcher.png
│ ├── mipmap-xhdpi
│ └── ic_launcher.png
│ ├── mipmap-xxhdpi
│ └── ic_launcher.png
│ ├── mipmap-xxxhdpi
│ └── ic_launcher.png
│ └── values
│ └── strings.xml
├── WatchViewStub
└── Wearable
│ ├── build.gradle
│ ├── proguard-rules.txt
│ └── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── example
│ │ └── android
│ │ └── google
│ │ └── wearable
│ │ └── watchviewstub
│ │ └── MainActivity.java
│ └── res
│ ├── drawable-hdpi
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ └── ic_launcher.png
│ ├── drawable
│ ├── rect_background.xml
│ └── round_background.xml
│ ├── layout
│ ├── main_activity.xml
│ ├── rect_layout.xml
│ └── round_layout.xml
│ └── values
│ ├── dimens.xml
│ └── strings.xml
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | .DS_Store
5 |
6 | # built application files
7 | *.apk
8 | *.ap_
9 |
10 | # files for the dex VM
11 | *.dex
12 |
13 | # Java class files
14 | *.class
15 |
16 | # generated files
17 | bin/
18 | gen/
19 |
20 | # Local configuration file (sdk path, etc)
21 | local.properties
22 |
23 | # Eclipse/IntelliJ project files
24 | .classpath
25 | .project
26 | default.properties
27 | .idea
28 | *.iml
29 | gen-external-apklibs
30 | target
31 | build
32 |
33 | # Output folder
34 | out/**
35 |
36 | # Misc
37 | .DS_Store
38 | app/res/values/keys.xml
39 | *.diff
40 |
--------------------------------------------------------------------------------
/AgendaData/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | compile "com.android.support:support-v4:20.0.+"
25 | wearApp project(':AgendaData:Wearable')
26 | }
--------------------------------------------------------------------------------
/AgendaData/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
24 | -keep class android.support.wearable.view.WearableListView {
25 | private void setScrollAnimator(int);
26 | private void setScrollVertically(int);
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/AgendaData/Application/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/Constants.java:
--------------------------------------------------------------------------------
1 | package com.example.android.wearable.agendadata;
2 |
3 | /** Constants used in companion app. */
4 | public final class Constants {
5 | private Constants() {
6 | }
7 |
8 | public static final String TAG = "AgendaDataSample";
9 |
10 | public static final String CAL_DATA_ITEM_PATH_PREFIX = "/event";
11 | // Timeout for making a connection to GoogleApiClient (in milliseconds).
12 | public static final long CONNECTION_TIME_OUT_MS = 100;
13 |
14 | public static final String EVENT_ID = "event_id";
15 | public static final String ID = "id";
16 | public static final String TITLE = "title";
17 | public static final String DESCRIPTION = "description";
18 | public static final String BEGIN = "begin";
19 | public static final String END = "end";
20 | public static final String DATA_ITEM_URI = "data_item_uri";
21 | public static final String ALL_DAY = "all_day";
22 | public static final String PROFILE_PIC = "profile_pic";
23 | }
24 |
--------------------------------------------------------------------------------
/AgendaData/Application/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Application/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AgendaData/Application/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Application/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AgendaData/Application/src/main/res/drawable-nodpi/nobody.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Application/src/main/res/drawable-nodpi/nobody.png
--------------------------------------------------------------------------------
/AgendaData/Application/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Application/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AgendaData/Application/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AgendaData/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Android Wear AgendaData Example Application
4 | Sync calendar events to wearable
5 | Delete calendar events from wearable
6 | Log
7 |
8 |
--------------------------------------------------------------------------------
/AgendaData/Application/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/AgendaData/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.+@aar'
24 | compile "com.android.support:support-v4:20.0.+"
25 | compile "com.google.android.support:wearable:1.0.+"
26 | }
--------------------------------------------------------------------------------
/AgendaData/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/AgendaData/Wearable/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
12 |
15 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/java/com/example/android/wearable/agendadata/Constants.java:
--------------------------------------------------------------------------------
1 | package com.example.android.wearable.agendadata;
2 |
3 | /** Constants used in wearable app. */
4 | public final class Constants {
5 |
6 | private Constants() {
7 | }
8 |
9 | public static final String TAG = "AgendaDataSample";
10 |
11 | public static final String TITLE = "title";
12 | public static final String DESCRIPTION = "description";
13 | public static final String BEGIN = "begin";
14 | public static final String END = "end";
15 | public static final String ALL_DAY = "all_day";
16 | public static final String PROFILE_PIC = "profile_pic";
17 |
18 | public static final String EXTRA_SILENT = "silent";
19 | }
20 |
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/drawable-hdpi/ic_menu_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Wearable/src/main/res/drawable-hdpi/ic_menu_delete.png
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/drawable-mdpi/ic_menu_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Wearable/src/main/res/drawable-mdpi/ic_menu_delete.png
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/drawable-xhdpi/ic_menu_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Wearable/src/main/res/drawable-xhdpi/ic_menu_delete.png
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/drawable-xxhdpi/ic_menu_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/AgendaData/Wearable/src/main/res/drawable-xxhdpi/ic_menu_delete.png
--------------------------------------------------------------------------------
/AgendaData/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Android Wear AgendaData Example Application
4 | Delete
5 | %s(All day)
6 | %1$s(%2$s - %3$s)
7 | Event deleted
8 | Unable to delete event
9 |
10 |
--------------------------------------------------------------------------------
/DataLayer/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 19
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 19
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | compile "com.android.support:support-v4:20.0.+"
25 | wearApp project(':DataLayer:Wearable')
26 | }
--------------------------------------------------------------------------------
/DataLayer/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable-hdpi/ic_content_picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Application/src/main/res/drawable-hdpi/ic_content_picture.png
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Application/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable-mdpi/ic_content_picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Application/src/main/res/drawable-mdpi/ic_content_picture.png
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Application/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable-xhdpi/ic_content_picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Application/src/main/res/drawable-xhdpi/ic_content_picture.png
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Application/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable-xxhdpi/ic_content_picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Application/src/main/res/drawable-xxhdpi/ic_content_picture.png
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/drawable/divider.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Data Layer Sample App
4 | Start Wearable Activity
5 | Start
6 | Take a Photo
7 | Send Photo
8 |
9 |
--------------------------------------------------------------------------------
/DataLayer/Application/src/main/res/values/style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/DataLayer/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 19
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 19
9 | targetSdkVersion 19
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | compile "com.android.support:support-v13:20.0.+"
25 | }
--------------------------------------------------------------------------------
/DataLayer/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/DataLayer/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DataLayer/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DataLayer/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DataLayer/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DataLayer/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DataLayer/Wearable/src/main/res/layout/main_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
24 |
--------------------------------------------------------------------------------
/DataLayer/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Data Layer Sample Wearable App
4 | Waiting for data to arrive\u2026
5 |
6 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | wearApp project(':DelayedConfirmation:Wearable')
25 | }
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
12 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DelayedConfirmation/Application/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DelayedConfirmation/Application/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DelayedConfirmation/Application/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DelayedConfirmation/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/src/main/res/layout/main_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
12 |
19 |
20 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Delayed Confirmation Sample App
4 | Start Wearable Activity
5 | Start
6 |
7 | Timer Selected
8 | Timer Finished
9 |
10 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | compile "com.android.support:support-v13:20.0.+"
25 | compile "com.google.android.support:wearable:1.0.+"
26 | }
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
12 |
13 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/src/main/java/com/example/android/wearable/delayedconfirmation/WearableMessageListenerService.java:
--------------------------------------------------------------------------------
1 | package com.example.android.wearable.delayedconfirmation;
2 |
3 | import android.content.Intent;
4 |
5 | import com.google.android.gms.wearable.MessageEvent;
6 | import com.google.android.gms.wearable.WearableListenerService;
7 |
8 | /**
9 | * Listens for a message telling it to start the Wearable MainActivity.
10 | */
11 | public class WearableMessageListenerService extends WearableListenerService {
12 | private static final String START_ACTIVITY_PATH = "/start-activity";
13 |
14 | @Override
15 | public void onMessageReceived(MessageEvent event) {
16 | if (event.getPath().equals(START_ACTIVITY_PATH)) {
17 | Intent startIntent = new Intent(this, MainActivity.class);
18 | startIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
19 | startActivity(startIntent);
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DelayedConfirmation/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DelayedConfirmation/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DelayedConfirmation/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/DelayedConfirmation/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 10dp
3 | 5dp
4 | 60dp
5 | 55dp
6 |
7 |
--------------------------------------------------------------------------------
/DelayedConfirmation/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Delayed Confirmation
5 | Start Timer (5 seconds)
6 |
7 | DelayedConfirmation
8 | Timer Selected
9 | Timer Finished
10 |
11 |
--------------------------------------------------------------------------------
/ElizaChat/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 | mavenCentral()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:0.12.+'
9 | }
10 | }
11 |
12 | allprojects {
13 | repositories {
14 | mavenCentral()
15 | }
16 | }
17 |
18 | apply plugin: 'android'
19 |
20 | android {
21 | compileSdkVersion 19
22 | buildToolsVersion '20'
23 |
24 | defaultConfig {
25 | minSdkVersion 18
26 | targetSdkVersion 19
27 | versionCode 1
28 | versionName "1.0"
29 | }
30 |
31 | buildTypes {
32 | release {
33 | runProguard false
34 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
35 | }
36 | }
37 | }
38 |
39 | dependencies {
40 | compile "com.android.support:support-v4:20.0.+"
41 | }
--------------------------------------------------------------------------------
/ElizaChat/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/drawable-hdpi/ic_full_reply.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/drawable-hdpi/ic_full_reply.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/drawable-mdpi/ic_full_reply.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/drawable-mdpi/ic_full_reply.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/drawable-nodpi/bg_eliza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/drawable-nodpi/bg_eliza.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/drawable-xhdpi/ic_full_reply.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/drawable-xhdpi/ic_full_reply.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/mipmap-hdpi/ic_app_eliza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/mipmap-hdpi/ic_app_eliza.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/mipmap-mdpi/ic_app_eliza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/mipmap-mdpi/ic_app_eliza.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/mipmap-xhdpi/ic_app_eliza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/mipmap-xhdpi/ic_app_eliza.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/mipmap-xxhdpi/ic_app_eliza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/mipmap-xxhdpi/ic_app_eliza.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/mipmap-xxxhdpi/ic_app_eliza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/ElizaChat/src/main/res/mipmap-xxxhdpi/ic_app_eliza.png
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ElizaChat
5 | Send notification!
6 | Eliza
7 | Answer Eliza
8 | Reply
9 | End Chat Session
10 |
11 |
12 |
--------------------------------------------------------------------------------
/ElizaChat/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/EmbeddedApp/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 19
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 19
10 | versionCode 1
11 | versionName '1.0'
12 | }
13 |
14 | signingConfigs {
15 | release {
16 | keyAlias 'androiddebugkey'
17 | keyPassword 'android'
18 | storeFile file('$rootDir/../../debug.keystore')
19 | storePassword 'android'
20 | }
21 | }
22 |
23 | buildTypes {
24 | release {
25 | runProguard false
26 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
27 | signingConfig signingConfigs.release
28 | }
29 | }
30 | }
31 |
32 | dependencies {
33 | wearApp project(':EmbeddedApp:Wearable')
34 | }
35 |
--------------------------------------------------------------------------------
/EmbeddedApp/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in ${sdk.dir}/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 |
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/java/com/example/android/wearable/embeddedapp/PhoneActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.wearable.embeddedapp;
18 |
19 | import android.app.Activity;
20 | import android.os.Bundle;
21 |
22 | public class PhoneActivity extends Activity {
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.activity_phone);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/Application/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/Application/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/Application/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/res/layout/activity_phone.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
18 |
19 |
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/EmbeddedApp/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EmbeddedApp Sample
5 |
6 | By installing the release build of this application, the corresponding wearable app should
7 | automatically be installed on any connected wearable devices.
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName '1.0'
12 | }
13 |
14 | signingConfigs {
15 | release {
16 | keyAlias 'androiddebugkey'
17 | keyPassword 'android'
18 | storeFile file('$rootDir/../../debug.keystore')
19 | storePassword 'android'
20 | }
21 | }
22 |
23 | buildTypes {
24 | release {
25 | runProguard false
26 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
27 | signingConfig signingConfigs.release
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in ${sdk.dir}/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 |
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/src/main/java/com/example/android/wearable/embeddedapp/WearableActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.wearable.embeddedapp;
18 |
19 | import android.app.Activity;
20 | import android.os.Bundle;
21 |
22 | public class WearableActivity extends Activity {
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.activity_wearable);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/src/main/res/layout/activity_wearable.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
14 |
15 |
--------------------------------------------------------------------------------
/EmbeddedApp/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EmbeddedApp Sample
5 |
6 | This wearable app should be automatically installed on wearable devices whenever the
7 | release build of the corresponding phone app is installed.
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/EmbeddedApp/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/EmbeddedApp/debug.keystore
--------------------------------------------------------------------------------
/FindMyPhone/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | compile "com.android.support:support-v4:20.0.+"
25 | wearApp project(':FindMyPhone:Wearable')
26 | }
--------------------------------------------------------------------------------
/FindMyPhone/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/FindMyPhone/Application/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/FindMyPhone/Application/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
12 |
13 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/FindMyPhone/Application/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Application/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FindMyPhone/Application/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Application/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FindMyPhone/Application/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Application/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FindMyPhone/Application/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FindMyPhone/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Find My Phone
5 |
6 |
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.+@aar'
24 | compile "com.android.support:support-v13:20.0.+"
25 | compile "com.google.android.support:wearable:1.0.+"
26 | }
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/src/main/res/drawable-hdpi/alarm_action_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Wearable/src/main/res/drawable-hdpi/alarm_action_icon.png
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/FindMyPhone/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/FindMyPhone/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Find My Phone
5 | Forgetting something?
6 | You may have left your phone behind.
7 | Tap to sound an alarm on phone.
8 | Tap to stop the alarm.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Flashlight/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile "com.android.support:support-v13:20.0.+"
24 | compile "com.google.android.support:wearable:1.0.+"
25 | }
26 |
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Flashlight/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Flashlight/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Flashlight/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Flashlight/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/res/layout/party_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/res/layout/white_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/Flashlight/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Flashlight
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Geofencing/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | compile "com.android.support:support-v4:20.0.+"
25 | wearApp project(':Geofencing:Wearable')
26 | }
--------------------------------------------------------------------------------
/Geofencing/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
--------------------------------------------------------------------------------
/Geofencing/Application/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/Geofencing/Application/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Application/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Geofencing/Application/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Application/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Geofencing/Application/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Application/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Geofencing/Application/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Geofencing/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Android Wear Geofencing Example Application
4 | Starting geofence transition service
5 |
6 |
--------------------------------------------------------------------------------
/Geofencing/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.+@aar'
24 | compile "com.android.support:support-v4:20.0.+"
25 | compile "com.google.android.support:wearable:1.0.+"
26 | }
--------------------------------------------------------------------------------
/Geofencing/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/Geofencing/Wearable/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
12 |
15 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/java/com/example/android/wearable/geofencing/Constants.java:
--------------------------------------------------------------------------------
1 | package com.example.android.wearable.geofencing;
2 |
3 | /** Constants used in wearable app. */
4 | public final class Constants {
5 |
6 | private Constants() {
7 | }
8 |
9 | public static final String TAG = "ExampleGeofencingApp";
10 |
11 | // Timeout for making a connection to GoogleApiClient (in milliseconds).
12 | public static final long CONNECTION_TIME_OUT_MS = 100;
13 |
14 | public static final int NOTIFICATION_ID = 1;
15 | public static final String ANDROID_BUILDING_ID = "1";
16 | public static final String YERBA_BUENA_ID = "2";
17 |
18 | public static final String ACTION_CHECK_IN = "check_in";
19 | public static final String ACTION_DELETE_DATA_ITEM = "delete_data_item";
20 | public static final String KEY_GEOFENCE_ID = "geofence_id";
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/res/drawable-hdpi/ic_action_check_in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Wearable/src/main/res/drawable-hdpi/ic_action_check_in.png
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/res/drawable-nodpi/android_building.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Wearable/src/main/res/drawable-nodpi/android_building.png
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/res/drawable-nodpi/yerba_buena.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Wearable/src/main/res/drawable-nodpi/yerba_buena.png
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Geofencing/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Geofencing/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Android Wear Geofencing Example Application
4 | Android Building
5 | Yerba Buena Gardens
6 | Check in here?
7 | Checked In
8 |
9 |
--------------------------------------------------------------------------------
/GridViewPager/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile "com.android.support:support-v13:20.0.+"
24 | compile "com.google.android.support:wearable:1.0.+"
25 | }
26 |
--------------------------------------------------------------------------------
/GridViewPager/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-hdpi/bugdroid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-hdpi/bugdroid.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-hdpi/ic_swipe_arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-hdpi/ic_swipe_arrow_left.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-hdpi/ic_swipe_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-hdpi/ic_swipe_arrow_right.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-hdpi/ic_swipe_arrow_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-hdpi/ic_swipe_arrow_up.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-mdpi/bugdroid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-mdpi/bugdroid.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-mdpi/ic_swipe_arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-mdpi/ic_swipe_arrow_left.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-mdpi/ic_swipe_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-mdpi/ic_swipe_arrow_right.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-mdpi/ic_swipe_arrow_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-mdpi/ic_swipe_arrow_up.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-xhdpi/ic_swipe_arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-xhdpi/ic_swipe_arrow_left.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-xhdpi/ic_swipe_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-xhdpi/ic_swipe_arrow_right.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-xhdpi/ic_swipe_arrow_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-xhdpi/ic_swipe_arrow_up.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable/debug_background_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable/debug_background_1.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable/debug_background_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable/debug_background_2.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable/debug_background_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable/debug_background_3.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable/debug_background_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable/debug_background_4.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/drawable/debug_background_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/GridViewPager/Wearable/src/main/res/drawable/debug_background_5.png
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/GridViewPager/Wearable/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 100dp
3 | 10dp
4 | 50dp
5 |
6 |
--------------------------------------------------------------------------------
/JumpingJack/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | repositories {
4 | mavenCentral()
5 | }
6 |
7 | android {
8 | compileSdkVersion 20
9 | buildToolsVersion '20'
10 |
11 | defaultConfig {
12 | minSdkVersion 20
13 | targetSdkVersion 20
14 | versionCode 1
15 | versionName "1.0"
16 | }
17 |
18 | buildTypes {
19 | release {
20 | runProguard false
21 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
22 | }
23 | }
24 |
25 | lintOptions {
26 | abortOnError false
27 | }
28 | }
29 |
30 | dependencies {
31 | compile 'com.google.android.gms:play-services:5.0.+@aar'
32 | compile "com.android.support:support-v13:20.0.+"
33 | compile "com.google.android.support:wearable:1.0.+"
34 | }
35 |
--------------------------------------------------------------------------------
/JumpingJack/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the ProGuard
5 | # include property in project.properties.
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 | #}
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable-hdpi/btn_reset_normal_200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable-hdpi/btn_reset_normal_200.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable-hdpi/btn_reset_pressed_200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable-hdpi/btn_reset_pressed_200.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable/empty_10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable/empty_10.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable/full_10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable/full_10.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable/jump_down_50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable/jump_down_50.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable/jump_up_50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/JumpingJack/Wearable/src/main/res/drawable/jump_up_50.png
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/drawable/submit_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
7 |
8 |
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/layout/counter_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
14 |
15 |
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/layout/setting_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
16 |
17 |
25 |
26 |
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ffffff
4 | #3f51b5
5 |
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/JumpingJack/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Jumping Jack
5 | Reset Counter
6 |
7 |
8 |
--------------------------------------------------------------------------------
/JumpingJack/license.txt:
--------------------------------------------------------------------------------
1 | The Jumping Jack icons used in this app have been created by Jasper Reyes
2 | (http://thenounproject.com/term/jumping-jack/26440/) and Co-Effect Creative
3 | (http://thenounproject.com/term/exercise/15085/) from The Noun Project and are used under the
4 | Creative Commons (CC By 3.0) license
5 |
6 |
--------------------------------------------------------------------------------
/JumpingJack/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the ProGuard
5 | # include property in project.properties.
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 | #}
--------------------------------------------------------------------------------
/Notifications/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 19
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 19
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile "com.android.support:support-v4:20.0.+"
24 | wearApp project(':Notifications:Wearable')
25 | }
--------------------------------------------------------------------------------
/Notifications/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ActionsPreset.java:
--------------------------------------------------------------------------------
1 | package com.example.android.support.wearable.notifications;
2 |
3 | import android.content.Context;
4 | import android.support.v4.app.NotificationCompat;
5 |
6 | /**
7 | * Base class for notification actions presets.
8 | */
9 | public abstract class ActionsPreset extends NamedPreset {
10 | public ActionsPreset(int nameResId) {
11 | super(nameResId);
12 | }
13 |
14 | /** Apply the priority to a notification builder */
15 | public abstract void apply(Context context, NotificationCompat.Builder builder,
16 | NotificationCompat.WearableExtender wearableOptions);
17 | }
18 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/NamedPreset.java:
--------------------------------------------------------------------------------
1 | package com.example.android.support.wearable.notifications;
2 |
3 | /**
4 | * Base class for presets that have a simple name to display.
5 | */
6 | public abstract class NamedPreset {
7 | public final int nameResId;
8 |
9 | public NamedPreset(int nameResId) {
10 | this.nameResId = nameResId;
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/NotificationUtil.java:
--------------------------------------------------------------------------------
1 | package com.example.android.support.wearable.notifications;
2 |
3 | import android.app.PendingIntent;
4 | import android.content.Context;
5 | import android.content.Intent;
6 |
7 | public class NotificationUtil {
8 | public static final String EXTRA_MESSAGE =
9 | "com.example.android.support.wearable.notifications.MESSAGE";
10 | public static final String EXTRA_REPLY =
11 | "com.example.android.support.wearable.notifications.REPLY";
12 |
13 | public static PendingIntent getExamplePendingIntent(Context context, int messageResId) {
14 | Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE)
15 | .setClass(context, NotificationIntentReceiver.class);
16 | intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId));
17 | return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,
18 | PendingIntent.FLAG_UPDATE_CURRENT);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/PriorityPreset.java:
--------------------------------------------------------------------------------
1 | package com.example.android.support.wearable.notifications;
2 |
3 | import android.support.v4.app.NotificationCompat;
4 |
5 | /**
6 | * Base class for notification priority presets.
7 | */
8 | public abstract class PriorityPreset extends NamedPreset {
9 | public PriorityPreset(int nameResId) {
10 | super(nameResId);
11 | }
12 |
13 | /** Apply the priority to a notification builder */
14 | public abstract void apply(NotificationCompat.Builder builder,
15 | NotificationCompat.WearableExtender wearableOptions);
16 | }
17 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-hdpi/example_large_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-hdpi/example_large_icon.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-hdpi/ic_full_action.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-hdpi/ic_full_action.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-hdpi/ic_full_reply.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-hdpi/ic_full_reply.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-hdpi/ic_result_open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-hdpi/ic_result_open.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-mdpi/ic_full_action.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-mdpi/ic_full_action.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-mdpi/ic_full_reply.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-mdpi/ic_full_reply.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-mdpi/ic_result_open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-mdpi/ic_result_open.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-nodpi/bg_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-nodpi/bg_1.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-nodpi/bg_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-nodpi/bg_2.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-nodpi/bg_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-nodpi/bg_3.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-nodpi/bg_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-nodpi/bg_4.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-nodpi/bg_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-nodpi/bg_5.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-nodpi/content_icon_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-nodpi/content_icon_large.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-nodpi/content_icon_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-nodpi/content_icon_small.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-nodpi/example_big_picture.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-nodpi/example_big_picture.jpg
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-xhdpi/ic_full_action.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-xhdpi/ic_full_action.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-xhdpi/ic_full_reply.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-xhdpi/ic_full_reply.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable-xhdpi/ic_result_open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/drawable-xhdpi/ic_result_open.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable/selected_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
10 |
13 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/drawable/unselected_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
10 |
13 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/layout/simple_spinner_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Application/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | @android:color/holo_blue_bright
4 |
5 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 | 12dp
7 | 8dp
8 | 8dp
9 | 50dp
10 |
11 | 48dp
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Notifications/Application/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Notifications/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile "com.android.support:support-v13:20.0.+"
24 | compile "com.google.android.support:wearable:1.0.+"
25 | }
26 |
--------------------------------------------------------------------------------
/Notifications/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/BasicNotificationDisplayActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.android.support.wearable.notifications;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.widget.TextView;
6 |
7 | /**
8 | * Custom display activity for a sample notification.
9 | */
10 | public class BasicNotificationDisplayActivity extends Activity {
11 | public static final String EXTRA_TITLE = "title";
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_notification_display);
17 |
18 | String title = getIntent().getStringExtra(EXTRA_TITLE);
19 |
20 | ((TextView) findViewById(R.id.title)).setText(title);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/NotificationPreset.java:
--------------------------------------------------------------------------------
1 | package com.example.android.support.wearable.notifications;
2 |
3 | import android.app.Notification;
4 | import android.content.Context;
5 |
6 | /**
7 | * Base class for notification preset generators.
8 | */
9 | public abstract class NotificationPreset {
10 | public final int nameResId;
11 |
12 | public NotificationPreset(int nameResId) {
13 | this.nameResId = nameResId;
14 | }
15 |
16 | /** Start building a notification with this preset */
17 | public abstract Notification buildNotification(Context context);
18 | }
19 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/drawable-nodpi/content_icon_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Wearable/src/main/res/drawable-nodpi/content_icon_large.png
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/drawable-nodpi/content_icon_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Wearable/src/main/res/drawable-nodpi/content_icon_small.png
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/drawable-nodpi/example_big_picture.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Wearable/src/main/res/drawable-nodpi/example_big_picture.jpg
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/drawable/wl_circle.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/layout/activity_animated_notification_display.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/layout/activity_notification_display.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/layout/notif_preset_list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
23 |
24 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Wearable/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Wearable/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Wearable/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Wearable/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Notifications/Wearable/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #2878ff
4 | #c1c1c1
5 | #434343
6 |
7 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 | 60dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Notifications/Wearable/src/main/res/values/integers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 40
4 |
5 |
--------------------------------------------------------------------------------
/Quiz/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | compile "com.android.support:support-v13:20.0.+"
25 | wearApp project(':Quiz:Wearable')
26 | }
27 |
--------------------------------------------------------------------------------
/Quiz/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/Quiz/Application/src/main/java/com/example/android/wearable/quiz/Constants.java:
--------------------------------------------------------------------------------
1 | package com.example.android.wearable.quiz;
2 |
3 | /** Constants used in the companion app. */
4 | public final class Constants {
5 | private Constants() {
6 | }
7 |
8 | public static final String ANSWERS = "answers";
9 | public static final String CHOSEN_ANSWER_CORRECT = "chosen_answer_correct";
10 | public static final String CORRECT_ANSWER_INDEX = "correct_answer_index";
11 | public static final String QUESTION = "question";
12 | public static final String QUESTION_INDEX = "question_index";
13 | public static final String QUESTION_WAS_ANSWERED = "question_was_answered";
14 | public static final String QUESTION_WAS_DELETED = "question_was_deleted";
15 |
16 | public static final String NUM_CORRECT = "num_correct";
17 | public static final String NUM_INCORRECT = "num_incorrect";
18 | public static final String NUM_SKIPPED = "num_skipped";
19 |
20 | public static final String QUIZ_ENDED_PATH = "/quiz_ended";
21 | public static final String QUIZ_EXITED_PATH = "/quiz_exited";
22 | public static final String RESET_QUIZ_PATH = "/reset_quiz";
23 | }
24 |
--------------------------------------------------------------------------------
/Quiz/Application/src/main/java/com/example/android/wearable/quiz/JsonUtils.java:
--------------------------------------------------------------------------------
1 | package com.example.android.wearable.quiz;
2 |
3 | import android.content.Context;
4 |
5 | import org.json.JSONException;
6 | import org.json.JSONObject;
7 |
8 | import java.io.IOException;
9 | import java.io.InputStream;
10 |
11 | final class JsonUtils {
12 | public static final String JSON_FIELD_QUESTIONS = "questions";
13 | public static final String JSON_FIELD_QUESTION = "question";
14 | public static final String JSON_FIELD_ANSWERS = "answers";
15 | public static final String JSON_FIELD_CORRECT_INDEX = "correctIndex";
16 | public static final int NUM_ANSWER_CHOICES = 4;
17 |
18 | private JsonUtils() {
19 | }
20 |
21 | public static JSONObject loadJsonFile(Context context, String fileName) throws IOException,
22 | JSONException {
23 | InputStream is = context.getAssets().open(fileName);
24 | int size = is.available();
25 | byte[] buffer = new byte[size];
26 | is.read(buffer);
27 | is.close();
28 | String jsonString = new String(buffer);
29 | return new JSONObject(jsonString);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-hdpi/ic_choice_a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-hdpi/ic_choice_a.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-hdpi/ic_choice_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-hdpi/ic_choice_b.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-hdpi/ic_choice_c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-hdpi/ic_choice_c.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-hdpi/ic_choice_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-hdpi/ic_choice_d.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-hdpi/ic_unknown_choice.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-hdpi/ic_unknown_choice.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-mdpi/ic_choice_a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-mdpi/ic_choice_a.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-mdpi/ic_choice_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-mdpi/ic_choice_b.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-mdpi/ic_choice_c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-mdpi/ic_choice_c.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-mdpi/ic_choice_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-mdpi/ic_choice_d.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-mdpi/ic_unknown_choice.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-mdpi/ic_unknown_choice.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-xhdpi/ic_choice_a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-xhdpi/ic_choice_a.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-xhdpi/ic_choice_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-xhdpi/ic_choice_b.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-xhdpi/ic_choice_c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-xhdpi/ic_choice_c.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-xhdpi/ic_choice_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-xhdpi/ic_choice_d.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable/selected_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
10 |
13 |
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/drawable/unselected_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
10 |
13 |
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/layout/question_status_element.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
13 |
14 |
20 |
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 | 12dp
7 | 8dp
8 | 8dp
9 | 50dp
10 |
11 | 48dp
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Quiz
5 |
6 | Read quiz from file
7 |
8 | Question
9 | Choice A
10 | Choice B
11 | Choice C
12 | Choice D
13 | Add Question
14 |
15 | Quiz Status
16 | Question
17 | This question has not yet been answered.
18 | This question has been answered incorrectly.
19 | This question has been answered correctly!
20 | This question was left blank.
21 |
22 | Reset Quiz
23 | New Quiz
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Quiz/Application/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Quiz/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.0.+@aar'
24 | compile "com.android.support:support-v13:20.0.+"
25 | compile "com.google.android.support:wearable:1.0.+"
26 | }
27 |
--------------------------------------------------------------------------------
/Quiz/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/java/com/example/android/wearable/quiz/Constants.java:
--------------------------------------------------------------------------------
1 | package com.example.android.wearable.quiz;
2 |
3 | /** Constants used in the wearable app. */
4 | public final class Constants {
5 | private Constants() {
6 | }
7 |
8 | public static final String ANSWERS = "answers";
9 | public static final String CHOSEN_ANSWER_CORRECT = "chosen_answer_correct";
10 | public static final String CORRECT_ANSWER_INDEX = "correct_answer_index";
11 | public static final String QUESTION = "question";
12 | public static final String QUESTION_INDEX = "question_index";
13 | public static final String QUESTION_WAS_ANSWERED = "question_was_answered";
14 | public static final String QUESTION_WAS_DELETED = "question_was_deleted";
15 |
16 | public static final String NUM_CORRECT = "num_correct";
17 | public static final String NUM_INCORRECT = "num_incorrect";
18 | public static final String NUM_SKIPPED = "num_skipped";
19 |
20 | public static final String QUIZ_ENDED_PATH = "/quiz_ended";
21 | public static final String QUIZ_EXITED_PATH = "/quiz_exited";
22 | public static final String RESET_QUIZ_PATH = "/reset_quiz";
23 |
24 | public static final int CONNECT_TIMEOUT_MS = 100;
25 | }
26 |
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-hdpi/ic_choice_a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-hdpi/ic_choice_a.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-hdpi/ic_choice_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-hdpi/ic_choice_b.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-hdpi/ic_choice_c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-hdpi/ic_choice_c.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-hdpi/ic_choice_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-hdpi/ic_choice_d.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-hdpi/ic_unknown_choice.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-hdpi/ic_unknown_choice.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-mdpi/ic_choice_a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-mdpi/ic_choice_a.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-mdpi/ic_choice_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-mdpi/ic_choice_b.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-mdpi/ic_choice_c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-mdpi/ic_choice_c.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-mdpi/ic_choice_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-mdpi/ic_choice_d.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-mdpi/ic_unknown_choice.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-mdpi/ic_unknown_choice.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_choice_a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_choice_a.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_choice_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_choice_b.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_choice_c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_choice_c.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_choice_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_choice_d.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_unknown_choice.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-xhdpi/ic_unknown_choice.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Quiz/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #009900
4 | #800000
5 | #FF9900
6 |
--------------------------------------------------------------------------------
/Quiz/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Quiz Sample Wearable App
5 |
6 | Question %d
7 |
8 | Quiz Report
9 | correct
10 | incorrect
11 | skipped
12 | Reset Quiz
13 |
14 |
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | AndroidWearable-Samples
2 | =======================
3 |
4 | Gradle-friendly re-pack of Google's Android Wear Samples
5 |
--------------------------------------------------------------------------------
/RecipeAssistant/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 19
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 18
9 | targetSdkVersion 19
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile "com.android.support:support-v4:20.0.+"
24 | }
25 |
--------------------------------------------------------------------------------
/RecipeAssistant/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
25 |
26 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/chili.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/chili.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/guacamole.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/guacamole.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/guacamole.json:
--------------------------------------------------------------------------------
1 | {
2 | name: "guacamole.json",
3 | steps: [
4 | {
5 | text: "Use a spoon to scoop the flesh of the avocados into a bowl."
6 | },
7 | {
8 | text: "Mash with a fork until fairly smooth and creamy. Preserve some small solid chunks to add texture."
9 | },
10 | {
11 | text: "Add the juice of the lime. ",
12 | img: "step-3-lime.jpg"
13 | },
14 | {
15 | text: "Add the cilantro."
16 | },
17 | {
18 | text: "Mix thoroughly."
19 | }
20 | ],
21 | summary: "Some guacamole recipes call for many ingredients and can be a pain to prepare. This super simple guac can be thrown together in a couple of minutes and tastes great.",
22 | title: "Super simple guacamole",
23 | img: "guacamole.jpg",
24 | serving: "",
25 | ingredients: [
26 | {
27 | text: "2 ripe avocados"
28 | },
29 | {
30 | text: "1 lime"
31 | },
32 | {
33 | text: "2 tbsp cilantro"
34 | }
35 | ]
36 | }
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/irish-stew.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/irish-stew.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/recipelist.json:
--------------------------------------------------------------------------------
1 | {
2 | recipe_list:
3 | [
4 | {
5 | name: "guacamole.json",
6 | summary: "Some guacamole recipes call for many ingredients and can be a pain to prepare. This super simple guac can be thrown together in a couple of minutes and tastes great.",
7 | title: "Super simple guacamole",
8 | img: "guacamole.jpg"
9 | },
10 | {
11 | name: "northern-irish-vegetable-soup.json",
12 | summary: "This recipe is apparently unique to Northern Ireland and uses soup/herb celery which is hard to find outside the area, but regular table celery can be substituted (including the leaves).",
13 | title: "Northern irish vegetable soup",
14 | img: "irish-stew.jpg"
15 | },
16 | {
17 | name: "beef-brisket-chili.json",
18 | summary: "",
19 | title: "Beef brisket chili",
20 | img: "chili.jpg"
21 | }
22 | ]
23 | }
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/step-1-grind-spices.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/step-1-grind-spices.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/step-2-score-beef.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/step-2-score-beef.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/step-3-brown-beef.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/step-3-brown-beef.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/step-3-lime.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/step-3-lime.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/step-4-fry-onion.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/step-4-fry-onion.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/step-6-combine.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/step-6-combine.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/assets/step-8-pull.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/assets/step-8-pull.jpg
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/drawable-hdpi/ic_noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/drawable-hdpi/ic_noimage.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/drawable-mdpi/ic_noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/drawable-mdpi/ic_noimage.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/drawable-xhdpi/ic_noimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/drawable-xhdpi/ic_noimage.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-hdpi/ic_app_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-hdpi/ic_app_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-hdpi/ic_notification_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-hdpi/ic_notification_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-mdpi/ic_app_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-mdpi/ic_app_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-mdpi/ic_notification_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-mdpi/ic_notification_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-xhdpi/ic_app_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-xhdpi/ic_app_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-xhdpi/ic_notification_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-xhdpi/ic_notification_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-xxhdpi/ic_app_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-xxhdpi/ic_app_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-xxhdpi/ic_notification_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-xxhdpi/ic_notification_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-xxxhdpi/ic_app_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-xxxhdpi/ic_app_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/mipmap-xxxhdpi/ic_notification_recipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/RecipeAssistant/Application/src/main/res/mipmap-xxxhdpi/ic_notification_recipe.png
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #dfff
4 | #6aaa
5 |
6 |
--------------------------------------------------------------------------------
/RecipeAssistant/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Recipe Assistant
4 | Settings
5 | Start
6 | Steps
7 | Ingredients
8 | Step %1$d of %2$d
9 |
10 |
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile "com.android.support:support-v13:20.0.+"
24 | compile "com.google.android.support:wearable:1.0.+"
25 | }
26 |
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 |
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SkeletonWearableApp/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SkeletonWearableApp/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SkeletonWearableApp/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SkeletonWearableApp/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/src/main/res/layout/grid_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 10dp
3 | 5dp
4 | 50dp
5 |
6 |
--------------------------------------------------------------------------------
/SkeletonWearableApp/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Skeleton Wearable App
5 | Long press to go back home.
6 | Main Activity
7 | Grid Activity
8 | Finish Activity
9 | Start Timer (5 sec)
10 | Show Notification
11 | Skeleton App Notification
12 | Launch Activity
13 |
14 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Application/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 19
5 | buildToolsVersion '20'
6 | defaultConfig {
7 | minSdkVersion 18
8 | targetSdkVersion 19
9 | versionCode 1
10 | versionName '1.0'
11 | }
12 | buildTypes {
13 | release {
14 | runProguard false
15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
16 | }
17 | }
18 | lintOptions {
19 | abortOnError false
20 | }
21 | }
22 |
23 | dependencies {
24 | compile 'com.google.android.gms:play-services:5.0.+@aar'
25 | compile 'com.android.support:support-v13:20.0.+'
26 | compile project(':SynchronizedNotifications:Common')
27 | wearApp project(':SynchronizedNotifications:Wearable')
28 | }
29 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Application/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in ${sdk.dir}/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 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Application/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SynchronizedNotifications/Application/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SynchronizedNotifications/Application/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SynchronizedNotifications/Application/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SynchronizedNotifications/Application/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SynchronizedNotifications/Application/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SynchronizedNotifications/Application/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SynchronizedNotifications/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SynchronizedNotifications/Application/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Application/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Synchronized Notifications
5 | Watch Only Notification
6 | Phone Only Notification
7 | Different Notifications
8 | Phone Notification
9 | Watch Notification
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Common/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android-library'
2 |
3 | android {
4 | compileSdkVersion 19
5 | buildToolsVersion '20'
6 | defaultConfig {
7 | minSdkVersion 18
8 | targetSdkVersion 19
9 | versionCode 1
10 | versionName '1.0'
11 | }
12 | buildTypes {
13 | release {
14 | runProguard false
15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
16 | }
17 | }
18 | productFlavors {
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Common/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/android-sdk/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 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Common/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Common/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Common
3 |
4 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 | defaultConfig {
7 | minSdkVersion 20
8 | targetSdkVersion 20
9 | versionCode 1
10 | versionName '1.0'
11 | }
12 | buildTypes {
13 | release {
14 | runProguard false
15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
16 | }
17 | }
18 | lintOptions {
19 | abortOnError false
20 | }
21 | }
22 |
23 | dependencies {
24 | compile 'com.google.android.gms:play-services:5.0.+@aar'
25 | compile 'com.android.support:support-v13:20.0.+'
26 | compile 'com.google.android.support:wearable:1.0.+'
27 | compile project(':SynchronizedNotifications:Common')
28 | }
29 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in ${sdk.dir}/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 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Wearable/src/main/java/com/example/android/wearable/synchronizednotifications/WearableActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.example.android.wearable.synchronizednotifications;
18 |
19 | import android.app.Activity;
20 | import android.os.Bundle;
21 |
22 | public class WearableActivity extends Activity {
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.activity_wearable);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SynchronizedNotifications/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SynchronizedNotifications/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SynchronizedNotifications/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SynchronizedNotifications/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/SynchronizedNotifications/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SynchronizedNotifications/Wearable/src/main/res/layout/activity_wearable.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SynchronizedNotifications/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Synchronized Notifications
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Timer/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile 'com.google.android.gms:play-services:5.+@aar'
24 | compile "com.android.support:support-v4:20.0.+"
25 | compile "com.google.android.support:wearable:1.0.+"
26 | }
27 |
--------------------------------------------------------------------------------
/Timer/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 | -dontwarn android.support.wearable.view.DelayedConfirmationView
22 | -dontwarn android.support.wearable.view.CircledImageView
23 |
--------------------------------------------------------------------------------
/Timer/Wearable/src/main/res/drawable/ic_cc_alarm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Timer/Wearable/src/main/res/drawable/ic_cc_alarm.png
--------------------------------------------------------------------------------
/Timer/Wearable/src/main/res/layout/timer_set_timer.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/Timer/Wearable/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Timer/Wearable/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Timer/Wearable/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Timer/Wearable/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Timer/Wearable/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Timer/Wearable/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Timer/Wearable/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Timer/Wearable/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Timer/Wearable/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/Timer/Wearable/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Timer/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | Timer Example Wearable App
19 | Timer done
20 | Time remaining
21 | Delete
22 | Restart
23 |
24 | - 1 minute
25 | - %d minutes
26 |
27 |
28 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 20
5 | buildToolsVersion '20'
6 |
7 | defaultConfig {
8 | minSdkVersion 20
9 | targetSdkVersion 20
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 |
14 | buildTypes {
15 | release {
16 | runProguard false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile "com.android.support:support-v13:20.0.+"
24 | compile "com.google.android.support:wearable:1.0.+"
25 | }
26 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/WatchViewStub/Wearable/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/WatchViewStub/Wearable/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/WatchViewStub/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/WatchViewStub/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/drawable/rect_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
9 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/drawable/round_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
8 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/layout/main_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
15 |
16 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/layout/rect_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
17 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/layout/round_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
17 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 20dp
3 | 150dp
4 | 24sp
5 |
6 |
--------------------------------------------------------------------------------
/WatchViewStub/Wearable/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WatchViewStub Sample
5 | Your screen is round!
6 | Your screen is rectangular!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/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 | mavenCentral()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:0.12.+'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | jcenter()
19 | mavenCentral()
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Settings specified in this file will override any Gradle settings
5 | # configured through the IDE.
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
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mauimauer/AndroidWearable-Samples/8287982332b82cada7bf68a6c5aa88df1bbbcbbe/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=http\://services.gradle.org/distributions/gradle-1.12-all.zip
7 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':AgendaData:Application', ':AgendaData:Wearable',
2 | ':DataLayer:Application', ':DataLayer:Wearable',
3 | ':DelayedConfirmation:Application', ':DelayedConfirmation:Wearable',
4 | ':ElizaChat',
5 | ':EmbeddedApp:Application', ':EmbeddedApp:Wearable',
6 | ':FindMyPhone:Application', ':FindMyPhone:Wearable',
7 | ':Flashlight:Wearable',
8 | ':Geofencing:Application', ':Geofencing:Wearable',
9 | ':GridViewPager:Wearable',
10 | ':JumpingJack:Wearable',
11 | ':Notifications:Application', ':Notifications:Wearable',
12 | ':Quiz:Application', ':Quiz:Wearable',
13 | ':RecipeAssistant:Application',
14 | ':SkeletonWearableApp:Wearable',
15 | ':SynchronizedNotifications:Application', ':SynchronizedNotifications:Wearable', ':SynchronizedNotifications:Common',
16 | ':Timer:Wearable',
17 | ':WatchViewStub:Wearable'
18 |
--------------------------------------------------------------------------------