简体   繁体   English

带有Android的Azure移动服务

[英]Azure Mobile Services with Android

I am very new to both Android development & Azure Mobile Services. 我对Android开发和Azure移动服务都很陌生。 I have a decent knowledge of Java so Android development is not proving to be too difficult. 我对Java有一定的了解,因此Android开发并不会太困难。 Although, I am struggling to gain a good knowledge of working with Azure Mobile Services. 虽然,我努力学习与Azure移动服务一起使用的丰富知识。

I have little knowledge of REST API's but will be able to learn quite quickly if required. 我对REST API的了解很少,但是如果需要的话,将能够很快地学习。 My main concerns/questions are as followed: 我主要的关注/问题如下:

Can I build my Android app by using Mobile Services Data & API's alone. 我可以单独使用Mobile Services Data&API来构建我的Android应用程序。 ie the simple table values and the basic CRUD API's? 即简单的表值和基本的CRUD API?

If not, how should I approach building the application? 如果没有,我应该如何构建应用程序?

I want to cater for multiple column queries, table relationships (1 .. n , inheritance) and I also would like to use JSON objects as parameters for a more lightweight communication rather than passing my full Java objects. 我想迎合多个列查询,表关系(1 .. n,继承),并且我还想将JSON对象用作参数来进行更轻量的通信,而不是传递完整的Java对象。

Also, is the possibility of setting up an SSL available? 另外,是否可以设置SSL?

Any help would be appreciated. 任何帮助,将不胜感激。

thanks for trying out Azure Mobile Services. 感谢您试用Azure移动服务。 Here is a good tutorial on how to get started with Android . 这是有关如何开始使用Android的很好的教程。

To answer your questions specifically: 要具体回答您的问题:

  • Generally a CRUD API for data storage and a custom API for arbitrary REST calls should be all you need for a straightforward app, and those are all offered in the box with Mobile Services. 通常,对于一个简单的应用程序,您只需要一个用于数据存储的CRUD API和一个用于任意REST调用的自定义API,这些都随移动服务一起提供。 The one thing we don't offer today (but are considering) is support for duplex messaging (WebSocket), which you might need if you are building a realtime app or game. 我们今天不提供(但正在考虑)的一件事是对双向消息传递(WebSocket)的支持,如果您正在构建实时应用程序或游戏,则可能需要。
  • Mobile Services does not support object trees on the client, but you can still have them in your server database. 移动服务不支持客户端上的对象树,但是您仍然可以在服务器数据库中拥有它们。 You just have to write some custom code to "flatten" the hierarchy before you send it to the client. 您只需编写一些自定义代码即可“拉平”层次结构,然后再将其发送给客户端。
  • Every mobile service supports HTTPS by default. 默认情况下,每个移动服务都支持HTTPS。 We do not currently allow you to do a custom SSL cert. 我们目前不允许您执行自定义SSL证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM