Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

5 years old?  And broken?

Rank

Total Posts: 2

Joined 2020-11-12

PM

I am interested in writing an ANT+ android app, but am running into a lot of hurdles.

None of the examples will run on my phone, whether I compile the APKs myself, side load the ones in the SDK, or download the demo projects from the play store. In all cases the app simply crashes immediately if I click on a button to show ANT data.

All of them also warn they were written for older versions of android.

If I attempt to update the demo app to use current android libraries, the app will no longer load onto a phone. Running it in remote debugging it just crashes immediately.

I have a heart rate strap from Garmin that I'm using for testing, and I have other apps on my phone that connect to it and display data, so someone has created ANT+ apps that work on modern phones. Where are they finding information about ANT?

Questions and developer resources all seem to keep pointing in a circle back to this website, but there appears to be no activity at all going on here, and no updates.

Any help would be greatly appreciated.      
Rank

Total Posts: 1

Joined 2023-05-05

PM

Firstly, I would recommend going through the ANT+ Android SDK documentation (https://www.thisisant.com/developer/ant/ant-in-android) to ensure you have a clear understanding of the ANT+ integration process.

If you haven't already, try using the ANT+ Plugin Sampler app available on the Google Play Store (https://play.google.com/store/apps/details?id=com.dsi.ant.antplus.pluginsampler&hl=en) to test the compatibility of your Garmin heart rate strap with your phone.

Next, I suggest checking out the ANT+ Plugin API documentation (https://www.thisisant.com/developer/ant/ant-in-android) and the official GitHub repository (https://github.com/ant-wireless/ANT-Android-SDKs) for the latest code examples and libraries. This will provide you with the most up-to-date resources for your project.

https://retrobowl.pro/
     
Rank

Total Posts: 5

Joined 2023-10-26

PM

If you load APK inside SDK or download demo projects from Play store. To limit crashes and display ANT data. Thanks, the restricted Android SDK indeed did the trick. I can now successfully connect to my garmin watch, posing as an ANT+ FE-C device. eggy car      
Rank

Total Posts: 4

Joined 2024-11-03

PM

swan - 14 November 2020 10:26 AM
I am interested in writing an ANT+ android app, but am running into a lot of hurdles.

None of the examples will run on my phone, whether I compile the APKs myself, side load the ones in the SDK, or download the demo projects from the play store. In all cases the app simply crashes immediately if I click on a button to show ANT data.

All of them also warn they were written for older versions of android.

If I attempt to update the demo app to use current android libraries, the app will no longer load onto a phone. Running it in remote debugging it just crashes immediately.

I have a heart rate strap from Garmin that I'm using for testing, and I have other apps on my phone that connect to it and display data, so monkey mart someone has created ANT+ apps that work on modern phones. Where are they finding information about ANT?

Questions and developer resources all seem to keep pointing in a circle back to this website, but there appears to be no activity at all going on here, and no updates.

Any help would be greatly appreciated.

To extend ANT's search time to 10 minutes, you can use setSearchTimeout(5) (maximum limit) and repeat this process in a loop, each time about 5 seconds apart. Check connection after each attempt, and stop after reaching the maximum time or finding a device.      
Rank

Total Posts: 3

Joined 2024-08-28

PM

To develop an ANT+ Android app, ensure you're handling Bluetooth permissions and state management for newer Android versions, as ANT+ SDKs may not be fully compatible with modern APIs. The ANT+ SDK hasn't been updated in years, so it may require modifications, especially for Bluetooth handling and permissions. Consider using the ANT Radio Service as a modern alternative for better compatibility with newer phones. Testing with your Garmin heart rate strap is useful, but ensure all Bluetooth settings and permissions are correctly configured to avoid connection issues. schoolboy runaway