A force close can happen for too many reasons to start guessing. You need to view the LogCat output and see what the error is so you know what the problem is and where it occurs.
Isn't that nice how it points directly not only at the line of code *where* the errors occurs, but even gives you clues *what* the problem is :-)
So, the problem is with your SQL statement - is CATEGORY a varchar of some kind? If so, how to do you need to handle varchar literal values in SQL statements?
achuthan mukundarajan wrote:The word Entertainment was actually entertainment in the table but still it doesnt work...
Now you have to figure out why it doesn't work. What lines of code get executed? What happens if you put data in the list without using the database? What data is returned from your database query? This is where adding your own log lines, and/or running the application in debug
mode with break points can help you figure out exactly what is happening with your execution.
Post by:autobot
I'm full of tinier men! And a tiny ad:
a bit of art, as a gift, the permaculture playing cards