user2085733
user2085733

Reputation:

Download Android SDK programmatically

Is there a way to download android sdk from android website programmatically? Does google provide any rest api/url for that? I have developed one developer side application for which I determine if android sdk is installed or not, if not installed I should be able to download latest sdk from Android website programmatically. Is this possible?

Upvotes: 4

Views: 518

Answers (1)

Hans Cappelle
Hans Cappelle

Reputation: 17495

Decompilation as suggested in one of the comments is overkill. You just need to parse the XML content from https://dl-ssl.google.com/android/repository/repository.xml . Check the SDK:url tag and use that to fetch (wget, curl, httpclient, ...) the required zip files.

Upvotes: 1

Related Questions