AndroidWear
application development
(R&D Tiredness Symptom Checker)
Project key idea
Template generation + pattern matching
Scores and summary screen
Manual tests creation
http://zholpolice.narod.ru/alk_metoda.htm
Architecture
Editing on
smartwatch is pretty
challenging - so we
use handheld for
creating text
templates and
displaying list of
results.
Wearable
Handheld
LanguorLib
DAOGenerator
Creating templates on handheld
Tools used:
FloatingActionButton, FloatingActionsMenu
ButterKnife
GreenDao (in languorlib)
FragmentPagerAdapter
FAB
ButterKnife - works with Wear
GreenDao - it works with Wear too
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Speech recognition on AndroidWear
Limitations:
Limited results amount
Disabled custom recognition
animation (that was available
for handhelds)
RecognitionListener - cool thing on mobile
Speech: RecognizerIntent
Drawing. CustomView
Drawing. CustomView implementation
Drawing. CustomView, attributes
ShapeTest - using ShapeView
Sometimes random combinations can confuse
Test framework
To run tests we use:
Abstract test framework:
TestRunner, Test,
TestFactory, Score
Concrete implementations (for
example ShapeTest) in UI
fragments
(ShapeTestFragment,
SpeechTestFragment)
DataSync: sending data
We send scores from watch to handheld
using MessageApi.
WearableConnector class wraps this
operations for both watch and handheld.
Inside WearableConnector. Init
MessageApi
DataItem
DataItem defines the data interface that the system uses to synchronize data between handhelds
and wearables.
It generally consists of payload - byte array, which you can set with whatever data you wish up to
100KB and path - a unique string that must start with a forward slash (for instance, "/path/to/data")
public static final String DATA_ITEM_ALL_TEMPLATES = "DATA_ITEM_ALL_TEMPLATES";
public static final String DATA_ITEM_ALL_TEMPLATES_PATH = "/all_templates";
WearableListenerService
WearableListenerService is registered as usual Android services and can listen for
incoming Messages or DataItems.
DelayedConfirmationView
DelayedConfirmationView
ConfirmationActivity
2D Picker
FragmentGridPagerAdapter
Application start
From notification
From start menu
From service (onMessage)
Demo
Project summary
Authors: Roman Chernyshev, Arsenii Pechenkin
Development leadership: Alexey Rybakov
Development: Constantine Mars
Marketing and public materials: Tatyana Markina, Valentina Lakhina, Alex Makeyenkov
Languor (R&D Tiredness Symptom Checker)

Languor