My app:
1) download from the internet an XML file of about 700 KB
2) creates an new archive SQLite with four table
3) parses the XML file (without using the library XMLSax because I've seen that, for my purposes, it was unnecessary and slowed down the processing of the items)
4) populate the various tables by reading the item from the XML file
5) make some final query by changing the contents of any table.
The app takes 35-40 seconds to do all this in the emulator: an acceptable time !
In physical device vice versa takes from 4 to 10 minutes and even more!
The emulator has the same version of Android (2.3.3. - API Level 10) of the physical device, 512 MB RAM, 32 VM Heap, Internal 200 MB storage, 500 MB SD Card.
The computer has Windows XP SP3, CPU i5 650 3.2 GHz - 2 cores - 4 threads - RAM 4 GB.
Mainboard is Asus P7P55D EVO
The physical device is a smartphone Motorola Defy Plus with internal memory of 2048 MB - SD 32 GB - Class 10.
The time taken from the smartphone to perform the procedures listed above is inexplicably long and actually makes this app unusable.
Obviously I did something wrong or I have not taken account of something else.
I specify that I included in the procedure and not just 4 DoEvents inside loop. There is no timer.
They will be well received suggestions to overcome these serious problems ?
Thank you for your attention.
1) download from the internet an XML file of about 700 KB
2) creates an new archive SQLite with four table
3) parses the XML file (without using the library XMLSax because I've seen that, for my purposes, it was unnecessary and slowed down the processing of the items)
4) populate the various tables by reading the item from the XML file
5) make some final query by changing the contents of any table.
The app takes 35-40 seconds to do all this in the emulator: an acceptable time !
In physical device vice versa takes from 4 to 10 minutes and even more!
The emulator has the same version of Android (2.3.3. - API Level 10) of the physical device, 512 MB RAM, 32 VM Heap, Internal 200 MB storage, 500 MB SD Card.
The computer has Windows XP SP3, CPU i5 650 3.2 GHz - 2 cores - 4 threads - RAM 4 GB.
Mainboard is Asus P7P55D EVO
The physical device is a smartphone Motorola Defy Plus with internal memory of 2048 MB - SD 32 GB - Class 10.
The time taken from the smartphone to perform the procedures listed above is inexplicably long and actually makes this app unusable.
Obviously I did something wrong or I have not taken account of something else.
I specify that I included in the procedure and not just 4 DoEvents inside loop. There is no timer.
They will be well received suggestions to overcome these serious problems ?
Thank you for your attention.