1

Is there any solution for accessing S3 (or any AWS services) from a MonoDroid application? I have found the Android sdk for S3 but those are jar files (not sure if there is some way to make this work?)

I tried using the .NET AWS SDK. This compiles but at runtime when I try to construct any object it does all kinds of strange things (Breaks like an exception occurred but no indication what the exception is, sometimes will crash VS all together)

I searched the AWS docs to see if there is a simple web service post I can make without an SDK, it seems like this should be possible, but I haven't found any information on how to do this.

1 Answer 1

1

You could access S3 using the REST API. Other AWS services have similar API's.

Another solution would be to recompile the .Net SDK with the Mono c# compiler. See this answer which suggests this solution - the accepted answer was edited by @Miguel de Icaza (I think he knows a thing or two about MonoDroid... )

However, this solution potentially has a serious flaw. You should never use your S3 secret key from a client device. This won't be an issue if your app users are entering their own credentials but if you are planning on using your own S3 account with multiple users then you have a problem.

With the REST API, you can pre-sign requests on a server and therefore never expose your secret key on the client.

1
  • Awesome, thank you for the clear explanation and +10 for the tip on the secret key. I was looking for the REST API documentation last night, figuring it existed, but must have just missed it. Mar 31, 2011 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.