程序可以正常使用,但是有时会报错。报错信息如下
java.lang.IllegalStateException: Cannot perform this operation because there is no current transaction.
at android.database.sqlite.SQLiteSession.throwIfNoTransaction(SQLiteSession.java:915)
at android.database.sqlite.SQLiteSession.endTransaction(SQLiteSession.java:398)
at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:522)
at com.usky.hponline.data.db.DBService.update(DBService.java:287)
at com.usky.hponline.common.impl.GetDataMethod.SyncDatas(GetDataMethod.java:3846)
at com.usky.hponline.activities.base.BufferActivity$4.run(BufferActivity.java:293)
at java.lang.Thread.run(Thread.java:841)