SQLiteOpenHelper ãå©ç¨ãã¦ãã¦ãIlligalStateException ã¿ãããªãã®ã«åºããããã®ã§ãã¹ã¬ããã«ããã¢ã¯ã»ã¹ã¯ï¼ãã¼ã¿ãã¼ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ï¼ã¨ãæ°ã«ãªããçµå±ã½ã¼ã¹ã³ã¼ãã追ã£ããããã£ã¦è¦ã¤ããã®ã¯ããSQLiteã使ãå ´åã®æ³¨æç¹ãã§ãããã«æ¸ãã¦ããäºã¯æ¦ãæ£ããã§ãã SQLiteOpenHelper.java ã«ã¦ SQLiteDatabase ã¯ãmDatabase ã¨ããã¡ã³ãå¤æ°ã«ä¿æãã¦ããã®ã§ã1ã¯ã©ã¹ã«ã¤ããï¼ã¤ã³ã¹ã¿ã³ã¹ããæ±ãã¾ããã ãã¼ã¿ãã¼ã¹ã«å¯¾ãã¦ã¯ãèªã¿æ¸ããè¡ãã§ããããããgetWritableDatabase é¢æ°ãã³ã¼ã«ãã¦ãå
é¨ã§ä¿æãã¦ãããã¼ã¿ãã¼ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãåå¾ããäºã«ãªãã¾ããã¹ã¬ããã§èªåãå°ç¨ã§ãã£ã¦ãããã¼ã¿ãã¼ã¹ã¯ãDBOpenHelperã«å¯¾ãã¦ãã²ã¨ã¤ã®ã¤ã³ã¹ã¿ã³ã¹ãªã®ã§ãããã
{{#tags}}- {{label}}
{{/tags}}