Reputation: 3
I have an SQL Azure database and I want to link it to my android application and do requests on it (insert,select...) . I created a mobile service following this tutorial and inserted data in my database.
I want to know what is the good way to excute requests from my android app. I found that solution but I am afraid that I can't execute all the requests I want like in SQL.
Another solution that I found is script but can we write javascript code in an android app?
Upvotes: 0
Views: 77
Reputation: 11177
Mobile services (also known as App Service - Mobile App) is out-of-the-box solution that allows you to expose your database tables as REST API endpoints that implement OData protocol, allowing you to write queries from your client (Android) app code and have them execute on database level.
However, if you are not satisfied with what App Service - Mobile App can offer and you want to build more sophisticated custom REST services, then you should aim to create App Service - API App or App Service - Web App and deploy Web API on it.
Then you would issue regular HTTP requests from your Android app to App Service REST endpoints.
App Service - Web App Overview
App Service - API App Overview
Upvotes: 1