我从 Web 服务访问数据,但是当从一个活动移动到另一个活动时,它显示黑屏,直到被加载然后它显示我的活动。
如何避免黑屏和快速访问数据?
代码:
JSONObject json = getJSONfromURL(url);
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(url);
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();is =entity.getContent();