How to Get data from Azure DB Table to an Android app?

前端 未结 1 971
Happy的楠姐
Happy的楠姐 2021-01-06 04:54

I\'m new to azure, I don\'t know how to connect to a Table I created on an Azure Database. I want to get the table data (SELECT *) and populate them in a GridView in android

1条回答
  •  暖寄归人
    2021-01-06 05:35

    Most sure way that you will get data from Azure Table Storage to your android is via REST API. It is relatively straight forward and you have full control.

    For example, to fetch (query) data you can check the following sample request:

    Request Syntax:
    GET /myaccount/Customers()?$filter=(Rating%20ge%203)%20and%20(Rating%20le%206)&$select=PartitionKey,RowKey,Address,CustomerSince  HTTP/1.1
    
    Request Headers:
    x-ms-version: 2013-08-15
    x-ms-date: Mon, 25 Nov 2013 15:25:14 GMT
    Authorization: SharedKeyLite myaccount:
    Accept: application/atom+xml,application/xml
    Accept-Charset: UTF-8
    DataServiceVersion: 2.0;NetFx
    MaxDataServiceVersion: 2.0;NetFx
    

    More on that:

    • https://msdn.microsoft.com/en-us/library/azure/dd179421.aspx
    • https://msdn.microsoft.com/en-us/library/azure/dd179423.aspx

    Please note that Azure tables does not support SQL language. Azure Tables are totally different type of storage (so called no-sql).

    0 讨论(0)
提交回复
热议问题