Problems Using Cursor Read From android SQLite3 database?

Your mDbHelper is null. Initialize it. And learn to use LogCat instead of guessing with the logs the row that crashes the app, it really helps.

You are right I had stupidly missed of the mdHelper initialization. Had a closing cursor error after that so added c.close(), then have a index out of bounds error now have tried c.movefirst() will get to the bottom of it hopefully. So I do use the LogCat but sometimes don't understand what it is on about.

I only have 1 row, was using LogCat as a sort of breadcrumb like how far did get. Thanks for your help. – Mark Quinn Aug 16 at 13:42 Yes at last it works.

Well I have only spent 4hrs on that tiny problem. Thanks again for your help. – Mark Quinn Aug 16 at 13:53 If you have an empty logcat on app crash, check if your try/catch blocks and ensure you don't swallow any exception w/o printing them.

Also debugger can help and show you the line that cause the exception and the variable that is null. – ernazm Aug 16 at 14:14.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions