mkdeepa09 / big-planet-tracks

Automatically exported from code.google.com/p/big-planet-tracks
0 stars 0 forks source link

保存RowTile会出现主键冲突的错误 #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.启动程序
2.缩放或移动地图到一个新位置
3.LogCat报error insert image android database sqlite constraint 
failed错误在SQLLocalStorage.java 124行

我觉得应该是主键冲突的问题,在LocalStorageWrapper.java 
56行put函数中加入
if (!isExists(tile)){
localStorage.put(tile, data);
}
错误消失

我不知道自己改的对不对。

Original issue reported on code.google.com by huijieq...@gmail.com on 31 May 2011 at 7:48