0
votes

I need to get data from Azure Table on my Android app.

I have been provided with

1) Shared access signature (looks like :: ?sv=XXX&tn=XXX&si=XXX&sig=XXX)

2) URI (looks like this).

3) Partition Key

and information that Row key(Integer) is the version of data and Row Value is a JSON String.

I need to get the latest version of this JSON String on Android App. I am also unaware if the information provided to me is sufficient.

I searched the web and found a relevant example here. But I am unable to make it work. It returns a null Entity.

I know just the theory of Azure Tables and have not used it earlier. I also can't create an account on Microsoft for practice, since it needs Credit Card details for verification and I don't have one.

1
Are you using the Mobile Services product at all? Or are you just trying to work with Table Storage directly from Android? - mattchenderson
You need Azure to use Azure Table storage. You could try using the Storage Emulator (msdn.microsoft.com/en-us/library/azure/ff683674.aspx), but I'm not sure how easy it is to use with an Android device or emulator. - lindydonna
@mattchenderson, I don't have any access to the account on which this table is stored, so I can't create a mobile service. I'll have to work with Table Storage directly I guess.. - Nga_developer
Answer to this question solved my problem :: stackoverflow.com/questions/28689250/…. - Nga_developer
There's also an Android library for Azure Storage. - Emily Gerner

1 Answers

4
votes

You can use the Azure Storage Android library. A tutorial on using Azure Tables is here. Since you only have a shared access signature (SAS) token rather than the account name and key, you should append the SAS token to the URI and use appropriate table constructor to make a table instance to work on.