2
0

Android_readme.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. IMPORTANT:
  2. move the AndroidManifest.xml file from the Assets/AdvancedAnt/Plugins/Android folder to Assets/plugins/Android folder
  3. If you are using any other pluging like VR, make sure to merge the services and activities
  4. ---
  5. *set the minimum API level to Android 5.0 (API LEVEL 21)*
  6. -----
  7. The Android device must have the ANT radio service installed (a popup will ask the user to download it from google play if not installed, when you launch your app)
  8. I have added all APK in a zip file at the root of the package
  9. To debug on windows you can use the Android_PC_AndroidEmulatorBridge found in the ANT android SDK on thisisant.com ( you will need to install Android_ANTEmulatorConfig_2-0-0.apk on the device)
  10. -----
  11. The android plugin can use the built-in device selection UI by setting the useAndroidUI boolean to true on the prefabs.
  12. If you use multiple prefabs with autoconnect, the java plugin will queue the requests and connect to the sensor one by one.
  13. If you need any specific event from a device not implemented yet by the plugin, send me an email and I will add it.
  14. Here are the events the android plugin forwards to Unity for each sensor:
  15. All sensors :isDisconnected , StateChange , ConnectEvent?
  16. Cadence sensor: Receive_calculatedCadence
  17. Speed & Cadence sensor: Receive_calculatedCadence?, Receive_calculatedSpeed, Receive_CalculatedAccumulatedDistance
  18. Speed sensor: Receive_calculatedSpeed, Receive_CalculatedAccumulatedDistance
  19. Power Meter sensor: Receive_calculatedPower, Receive_calculatedCadence?
  20. Heart Rate sensor: Receive_computedHeartRate?
  21. Fitness Equipment: Receive_instantaneousHeartRate, Receive_elapsedTime, Receive_instantaneousSpeed, Receive_cumulativeDistance?, Receive_trainer_instantaneousPowe, Receive_trainer_instantaneousCadence
  22. SetTrainerResistance(resitance %)
  23. SetTrainerTargetPower(power)
  24. RequestTrainerCapabilities​
  25. SetTrainerUserConfiguration
  26. Minimum Android version: 5.0.1
  27. The AndroidManifest.xml file has to be in the Assets\plugins\Android
  28. ----
  29. If you set the device ID in a prefab, the plugin will attempt to connect to this device without using the Android ANT+ UI
  30. You can also scan for device ID by filtering device type.
  31. the AndroidMultipleDeviceSearch Gameobject in the AntmultipleScan scene is set to look for speedAndCadence sensor and will connect to the first ID it found with SpeedCadenceDisplay prefab.
  32. activity.Call("start_multiple_device_search",this.gameObject.name,speedCadence,hr,cadence,speed,power,fec);