I debug with a Samsung Galaxy SII, running 2.3.6. I created an app that runs fine, every time, even under stress, on this device. I uploaded for a colleague in another state, using a device with 2.3.7 (I believe it’s a Nexus One).
On his device, the app gives a “Not responding – Force Close or Wait” dialog when clicking a button that switches a ListView’s adapter between 2 DB Cursors.
I tried on the emulator. Literally an hour and 45 minutes later (most of this time was spent converting JSON from a remote server to a local SQLite DB on the device, which happens only once during install, and I don’t believe has any bearing on the issue I’m describing), I was able to recreate the problem, but nothing was reported in logcat.
Any ideas why I’m seeing this different results? My device works every time, his fails every time. I’ve tried targetting 2.1 and 2.2 – both have the same results on both devices and the emulator.
TYIA
apparently the devices had different SQLite implementations. The issue was resolved by adding a missing index to one of the SQLite tables.