0

I am a Mobile developer, and I know nothing about web development.

I have a mobile app which need to receive a string from my web each time it starts, a simple string, just one number, 1 or 0.

I use Yola.com to host my web, so I can not change CSS or Html.

The API I use: network.request( "http://www.google.ca", "GET", networkListener )

The thing is I can get data from any web, but just can not get data from any Yola.com hosted web, which give me a error in the app.

Is there anything I can do?

Or just introduce me some other host who can let me get data at a good price. (I don't wanna pay too much as all I need is go get 1 number.)

Thanks

4

2 回答 2

0

或者您可以将字符串作为 POST 消息从 Web 传递到移动应用程序。您可以使用 javascript 轻松完成。因此,您的移动应用程序(启动后)将向 web 发出请求,web 将回复字符串(就像 api 调用一样)。此外,如果您想进行安全呼叫,则应使用 https 呼叫。如果您要发送密码,请使用 MD5 或 AES 加密来保护敏感数据。

于 2012-08-17T19:47:07.873 回答
0

在您的网络主机上创建一个页面,该页面仅包含文本内容,1 或 0。在这种情况下,不需要 css 或 html。

于 2012-08-17T19:45:13.173 回答