I have a problem testing my app: it loads data from the internet and outputs it on the screen. When I try to test it with the emulator - the download starts but does not end. When I try it with a normal smartphone - everything is fine and data is loaded in a second. Here's a code, but there is no problem in it, I think:
last button butTest = (button) findViewById (R.id.parse); Final text view TVInfo = (text view) Find VVBID (RIDGetData); ("Http://yandex.ru");} AsyncLoad asyncTask and string, zero, string & gt; Extends up to; {} Document Doctor = Faucet; Personal progress DIOLOPprogression; @ Override protected string inbackback (string ... parameter) {published progress (new zero [] {}); Try {doc = Jsoup.connect (parameter [0]). } Hold (IOException e) {e.printStackTrace ();} Return doc.title ();} @Override Secure zero PreExecute () {supe r.onPreExecute (); MProgressDialog = new progressionDLOG (GetData.This); MProgressDialog .setMessage ("Download ..."); MProgressDialog.show (); } @Override Protected Zero on PostExecute (string result) {super.onPostExecute (results); TvInfo.setText (Results); MProgressDialog.dismiss (); }}});
I work in Eclipse and these are emulator settings: RAM 1024, internal storage 200, VM heap 64. It does not work so fast with other tests, but still work I can wait 10, 15, 20 minutes with this code - it goes to preextec (), but no further.
Check the weather You have allocated some memory in the emulator settings.
No comments:
Post a Comment