04.10.2011 16:42, André пишет:
I had a problem where the database called onCreate every time i
started my app and got the suggestion of using that bit of code. But I
see your point.
I can see how that could happen if your VERSION was defined as 0, or if
your onCreate failed.
Could that have anything to do with failt to setLocale?
Possibly :)
I tried without that bit of code now and get this error:
the bind value at index 1 is null
Ah, and so it does.
Your code never completes creating the database. Fix onCreate to run
start to finish without throwing an exception (add log statements on
entry and exit to check, to step through in the debugger), and I think
you won't see it called multiple times anymore.
--
Kostya Vasilyev
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en