开发者

illegal state exception in android when inserting data in database

开发者 https://www.devze.com 2023-01-13 00:49 出处:网络
According to my application i create the database with two tables. when i inserting the data in 1 table then it runs correctly after that when i save data in the second table then it gives the excepti

According to my application i create the database with two tables. when i inserting the data in 1 table then it runs correctly after that when i save data in the second table then it gives the exception of illegal state exception (d开发者_JAVA技巧atabase cannot be open). Please give me the solution.


You need to learn how to Debug in Eclipse and how to use the ADB and DDMS tools.

In order to get more details about an exception/force close you need to look for a view in Eclipse called Logcat(you will find in the DDMS perspective) there you will find a detailed traceback when/what and on what line is the issue.

For this you should read a complete article about Debugging in Android using Eclipse

illegal state exception in android when inserting data in database


(source: droidnova.com)

0

精彩评论

暂无评论...
验证码 换一张
取 消