Nga_developer
Nga_developer

Reputation: 79

Get data from Azure Table on Android App using Shared Access Signature

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.

Upvotes: 0

Views: 715

Answers (1)

Emily Gerner
Emily Gerner

Reputation: 2457

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.

Upvotes: 4

Related Questions