STRAVA API for Android

1,236 views
Skip to first unread message

Vinay Vanama

unread,
Jan 4, 2016, 1:59:39 AM1/4/16
to Strava API
Hi,

I'm a Cyclist and I really like the STRAVA App, But as an Android Developer now I wanted to work on the API. Unfortunately I couldn't find the STRAVA API samples for Android.

I have created an App in my account and I got my client_id and client_secret.but I'm unable to start with it.Kindly help me to move with the API


Thanks & Regards
Vinay Vanama 

Amogh Avadhani

unread,
Apr 1, 2016, 8:09:53 AM4/1/16
to Strava API


Greetings Vinay,

I started working on the Strava APIs just a few days ago, and yes, as you said, even I was unable to find many samples for Android. To make Strava API calls like getting user's activities etc. you have to get the user to authenticate using his Strava account. I achieved the authentication process using a WebView and WebViewClient. This is a good place for you to start.

http://strava.github.io/api/v3/oauth/

In your WebView you will have to load the url which is given in Request access header along with the right query parameters. The user will then go on to authorize access to your application, after which you will receive an access token. All subsequent Strava API calls have to made using the received access token. Feel free to comment here if you need any more help.

Cheers.
Amogh




Tony Payne

unread,
Sep 29, 2016, 2:27:17 PM9/29/16
to Strava API
Hi

Did you have any joy?

I'm also a cyclist and amateur android app developer. I have made a google maps app to select a GPX file (I have saved various segment PRs) from the SD card, and then the display shows you chasing your previous self. It's a bit like Strava Live Segments (though I couldn't possibly admit that's where I got the idea). I'd now love to extend this to pick up the nearby segments from where the rider is. Any tips appreciated.
Reply all
Reply to author
Forward
0 new messages