OSDN Git Service

ERROR
authorYuji Konishi <yuji.k64613@gmail.com>
Thu, 28 Feb 2013 13:17:10 +0000 (22:17 +0900)
committerYuji Konishi <yuji.k64613@gmail.com>
Thu, 28 Feb 2013 13:17:10 +0000 (22:17 +0900)
workspace/JuggleMaster/bin/JuggleMaster.apk
workspace/JuggleMaster/bin/classes/com/jm/db/Dao.class
workspace/JuggleMaster/bin/resources.ap_
workspace/JuggleMaster/src/com/jm/db/Dao.java

index d459935..feeb51d 100644 (file)
Binary files a/workspace/JuggleMaster/bin/JuggleMaster.apk and b/workspace/JuggleMaster/bin/JuggleMaster.apk differ
index cdb5b11..69ab93b 100644 (file)
Binary files a/workspace/JuggleMaster/bin/classes/com/jm/db/Dao.class and b/workspace/JuggleMaster/bin/classes/com/jm/db/Dao.class differ
index df5bfdf..d64df1c 100644 (file)
Binary files a/workspace/JuggleMaster/bin/resources.ap_ and b/workspace/JuggleMaster/bin/resources.ap_ differ
index b0b4b79..abb9d8f 100644 (file)
@@ -43,18 +43,24 @@ public class Dao {
        }\r
        \r
        public void start(SQLiteDatabase db){\r
-               insertStmt = db.compileStatement(\r
-                               "insert into pattern ("\r
-                               + "type, siteswap, height, dwell, name, motion, lang, idx"\r
-                               + ") values ("\r
-                               + "?, ?, ?, ?, ?, ?, ?, ?"\r
-                               + ");");        \r
-               updateStmt = db.compileStatement(\r
-                               "update pattern set "\r
-                               + "siteswap = ?, height = ?, dwell = ?, name = ?, motion = ? "\r
-                               + "where id = ? and lang = ?;");\r
-               deleteStmt = db.compileStatement(\r
-                               "delete from pattern where id = ? and lang = ?;");\r
+               try {\r
+                       insertStmt = db.compileStatement(\r
+                                       "insert into pattern ("\r
+                                       + "type, siteswap, height, dwell, name, motion, lang, idx"\r
+                                       + ") values ("\r
+                                       + "?, ?, ?, ?, ?, ?, ?, ?"\r
+                                       + ");");        \r
+                       updateStmt = db.compileStatement(\r
+                                       "update pattern set "\r
+                                       + "siteswap = ?, height = ?, dwell = ?, name = ?, motion = ? "\r
+                                       + "where id = ? and lang = ?;");\r
+                       deleteStmt = db.compileStatement(\r
+                                       "delete from pattern where id = ? and lang = ?;");\r
+               }\r
+               catch (Exception e){\r
+                       // TODO\r
+                       e.printStackTrace();\r
+               }\r
        }\r
        \r
        public void add(JmPattern jp, int index) throws JmException{\r