3
votes

I am planing to make an android app which download required files from cloud drive Amazon or Google drive.

Details: Let we have 30 lectures on cloud drive user can download a lecture {according to need/Intrest} from cloud drive using my android app. Just i need is the public URL of the data stored in cloud drive. Or any API that can do this job {Amazon, google drive...etc}

How to do this ? is there any Cloud API or something that help me ?

4
That's a wonderful plan. What is your question? What have you tried so far? - 323go
How to do this ? is there any API or something that help me ? - user1781123

4 Answers

1
votes

There are plenty of APIs available. Amazon's API/SDK is here. Rackspace has one as well, iirc. Google Drive and Dropbox aren't really public-facing cloud-storage, and you would probably want to look very closely at their TOS before utilizing them. For any public-facing services, I generally use a small php-app which talks to the mobile app and delivers the time-limited url for the requested content. This prevents side-loading and allows me to switch CDN providers without changing the app.

To get a more specific answer, you probably need to ask a more specific question.

1
votes

If you are looking to host a number of video lectures and have any user download them you probably want to use Amazon S3. Cloud drive is for each user of the application to download and upload videos to their (the end user's) cloud drive account. Google drive is similar. Amazon S3 lets you (the developer) hold onto the data and then give it to your users.

You can also find a sample on GitHub (along with a tutorial) https://github.com/awslabs/aws-sdk-android-samples/tree/master/S3TransferUtilitySample

0
votes

I know this probably sounds like huge overkill, but if anything changes in the future (and it will), this will help you enormously.

I'd probably create a web service that responded with HTTP redirects to a URL where the content currently is. If hosting cost is the issue, you could probably remain within the free tier on GAE pretty easily.

Amazon S3 is probably a decent fit here. Costs will probably be very low unless you start using a ton of bandwidth.

0
votes

Now amazon have the cloud drive service with unlimited space for ~60$ per year. Also have api for android.