[android-developers] Re: multiple successive queries to a database

2009-04-15 Thread Marco Nelissen
What's the error message in the system log? On Tue, Apr 14, 2009 at 10:38 PM, iki qui.af...@gmail.com wrote: The application has stopped unexpectedly. Please try again. One query always works. Two consecutive queries works about 75% of the time. Three consecutive queries works about a

[android-developers] Re: multiple successive queries to a database

2009-04-15 Thread Raphael
Please look at the adb logcat error message (also Eclipse DDMS perspective logcat). R/ On Tue, Apr 14, 2009 at 10:38 PM, iki qui.af...@gmail.com wrote: The application has stopped unexpectedly. Please try again. One query always works. Two consecutive queries works about 75% of the

[android-developers] Re: multiple successive queries to a database

2009-04-15 Thread iki
Thanks for the help (DDMS logcat, I didn't realize it tracked real time activity). It turns out it wasn't the sqlitedatabase query() method that was causing the problem. I had a line of code: Random.nextInt(Cursor.getCount()) - 1 to pick a random record from the returned cursor. The problem is

[android-developers] Re: multiple successive queries to a database

2009-04-14 Thread iki
The application has stopped unexpectedly. Please try again. One query always works. Two consecutive queries works about 75% of the time. Three consecutive queries works about a third. Four consecutive queries works about 10% Five doesn't seem to work at all (it worked once out of many tries).

[android-developers] Re: multiple successive queries to a database

2009-04-12 Thread Ralf
What kind of crash do you get? Is this a force close or an exception? R/ On Thu, Apr 9, 2009 at 9:26 PM, iki qui.af...@gmail.com wrote: Has anyone other than me needed to make consecutive queries to a sqlitedatabase? My application works sometimes but other times (about 98% of the time),