Android Wear gameAndroid Wear game
developmentdevelopment nuancesnuances
Alexei CebanAlexei Ceban
● Android Wear requirements
● Android Wear specifics
● Build Tools
● Crystax NDK instead of standard NDK
● Eclipse + ADT
● Python script + prebuild.cfg
● Detecting screen shape
● Running game: How to quit?
● Setup Eclipse for Android Wear development
Android Wear developmentAndroid Wear development
Update your SDK with Android 4.4W.2 (API 20) or higher
The updated platform version provides new APIs for wearable apps.
Update your SDK tools to version 23.0.0 or higher
The updated SDK tools enable you to build and test wearable apps.
Android Wear RequirementsAndroid Wear Requirements
● Ads
● Internet access
● IAPs
● android.webkit
● android.appwidget
● android.hardware.usb
● android.print
● android.app.backup
Android Wear SpecificsAndroid Wear Specifics
Not available APIs:No direct implementation:
They decided that You don't need sounds & music
The Wearable Data Layer API, which is part of Google
Play services, provides a communication channel for
your handheld and wearable apps.
http://developer.android.com/training/wearables/data-layer/index.html
Crystax NDK insteadCrystax NDK instead ofof standardstandard NDKNDK
https://www.crystax.net/en/android/ndk
«...has been developed as a drop-in replacement for Google's Android NDK
(Native Development Kit). Compared to Google's NDK, the CrystaX NDK
provides the same functionality as well as several great features and tons of
fixes and improvements.
The main goal of the CrystaX NDK is to allow Android developers to produce
standard conformant code and thus make Android native development more
efficient. ...»
EclipseEclipse + ADT+ ADT
● Why not Android Studio?
● Package Manually
VSVS
Package ManuallyPackage Manually
We need two identically signedidentically signed packages: wear gamewear game & containercontainer
Package ManuallyPackage Manually
Signed wearable game package
Same package name & version
PythonPython scriptscript + prebuild.cfg+ prebuild.cfg
You can find tutorial here:
https://www.dropbox.com/s/hkozv3788jqwju5/Project_build_config.odp?dl=0
Detecting screen shapeDetecting screen shape
https://www.dropbox.com/s/obkzbhvzx6bz0d2/Detect_screen_shape.odp?dl=0
You can find tutorial here:
Running game: How to quit?Running game: How to quit?
VSVS
No swipes in the game Game with swipe controls
https://www.dropbox.com/s/d9xyfrl8d4by1rj/Quit_Game_Procedure_Config.odp?dl=0
You can find tutorial here:
Setup EclipseSetup Eclipse forfor Android WearAndroid Wear
developmentdevelopment
You can find tutorial here:
https://www.dropbox.com/s/8hrbsik603rlyhb/Setup_Eclipse_for_Android_Wear.odp?dl=0
thank youthank you
Questions?
спасибоспасибо

Spooky House Studios: Game development for smartwatches. Challenges and solutions

  • 1.
    Android Wear gameAndroidWear game developmentdevelopment nuancesnuances Alexei CebanAlexei Ceban
  • 2.
    ● Android Wearrequirements ● Android Wear specifics ● Build Tools ● Crystax NDK instead of standard NDK ● Eclipse + ADT ● Python script + prebuild.cfg ● Detecting screen shape ● Running game: How to quit? ● Setup Eclipse for Android Wear development Android Wear developmentAndroid Wear development
  • 3.
    Update your SDKwith Android 4.4W.2 (API 20) or higher The updated platform version provides new APIs for wearable apps. Update your SDK tools to version 23.0.0 or higher The updated SDK tools enable you to build and test wearable apps. Android Wear RequirementsAndroid Wear Requirements
  • 4.
    ● Ads ● Internetaccess ● IAPs ● android.webkit ● android.appwidget ● android.hardware.usb ● android.print ● android.app.backup Android Wear SpecificsAndroid Wear Specifics Not available APIs:No direct implementation: They decided that You don't need sounds & music The Wearable Data Layer API, which is part of Google Play services, provides a communication channel for your handheld and wearable apps. http://developer.android.com/training/wearables/data-layer/index.html
  • 5.
    Crystax NDK insteadCrystaxNDK instead ofof standardstandard NDKNDK https://www.crystax.net/en/android/ndk «...has been developed as a drop-in replacement for Google's Android NDK (Native Development Kit). Compared to Google's NDK, the CrystaX NDK provides the same functionality as well as several great features and tons of fixes and improvements. The main goal of the CrystaX NDK is to allow Android developers to produce standard conformant code and thus make Android native development more efficient. ...»
  • 6.
    EclipseEclipse + ADT+ADT ● Why not Android Studio? ● Package Manually VSVS
  • 7.
    Package ManuallyPackage Manually Weneed two identically signedidentically signed packages: wear gamewear game & containercontainer
  • 8.
    Package ManuallyPackage Manually Signedwearable game package Same package name & version
  • 9.
    PythonPython scriptscript +prebuild.cfg+ prebuild.cfg You can find tutorial here: https://www.dropbox.com/s/hkozv3788jqwju5/Project_build_config.odp?dl=0
  • 10.
    Detecting screen shapeDetectingscreen shape https://www.dropbox.com/s/obkzbhvzx6bz0d2/Detect_screen_shape.odp?dl=0 You can find tutorial here:
  • 11.
    Running game: Howto quit?Running game: How to quit? VSVS No swipes in the game Game with swipe controls https://www.dropbox.com/s/d9xyfrl8d4by1rj/Quit_Game_Procedure_Config.odp?dl=0 You can find tutorial here:
  • 12.
    Setup EclipseSetup Eclipseforfor Android WearAndroid Wear developmentdevelopment You can find tutorial here: https://www.dropbox.com/s/8hrbsik603rlyhb/Setup_Eclipse_for_Android_Wear.odp?dl=0
  • 13.