简体   繁体   English

ANDROID:服务器到我的Android应用的响应速度慢

[英]ANDROID: slow response from server to my android app

We have developed an android application, which includes more than 45 server calls, that includes JSON parsing. 我们开发了一个Android应用程序,其中包括45个以上的服务器调用,其中包括JSON解析。 We have hosted all our scripts on Godaddy server, now the problem is app runs smoothly here in India, but it won't work well in USA in our clients devices. 我们已经将所有脚本托管在Godaddy服务器上,现在的问题是应用程序在印度的运行很顺利,但在美国的客户端设备上无法正常运行。 They are using T-Mobile services and have good internet connections, but still there the app is unable to make request with server in time. 他们正在使用T-Mobile服务,并具有良好的Internet连接,但是仍然无法通过应用程序及时向服务器发出请求。

Also it's not a device related issue, as we are testing it on Samsung galaxy Tab 2&3, Samsung galaxy S, S2, S4 and also on Note 3. But this works well here in our country but not in our client's country USA 这也不是与设备相关的问题,因为我们正在三星银河Tab 2&3,三星银河S,S2,S4以及Note 3上对其进行测试。但这在我们国家/地区有效,但在我们客户国家/地区不适用

use an async task so that it will have thread pooling. 使用异步任务,以便它将具有线程池。 Too much simultaneous threads is bad. 过多的并发线程是不好的。 limit it to 4-5 threads at a time. 一次将其限制为4-5个线程。

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

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