{"action":"created","issue":{"url":"https://api.github.com/repos/Insiteo/Android/issues/3","labels_url":"https://api.github.com/repos/Insiteo/Android/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Insiteo/Android/issues/3/comments","events_url":"https://api.github.com/repos/Insiteo/Android/issues/3/events","html_url":"https://github.com/Insiteo/Android/issues/3","id":57440592,"number":3,"title":"MapDBHelper.getZoneAssocFromExtPoi throw  unable to open database file","user":{"login":"theGlenn","id":3216616,"avatar_url":"https://avatars.githubusercontent.com/u/3216616?v=3","gravatar_id":"","url":"https://api.github.com/users/theGlenn","html_url":"https://github.com/theGlenn","followers_url":"https://api.github.com/users/theGlenn/followers","following_url":"https://api.github.com/users/theGlenn/following{/other_user}","gists_url":"https://api.github.com/users/theGlenn/gists{/gist_id}","starred_url":"https://api.github.com/users/theGlenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theGlenn/subscriptions","organizations_url":"https://api.github.com/users/theGlenn/orgs","repos_url":"https://api.github.com/users/theGlenn/repos","events_url":"https://api.github.com/users/theGlenn/events{/privacy}","received_events_url":"https://api.github.com/users/theGlenn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-12T10:12:25Z","updated_at":"2015-02-12T11:26:58Z","closed_at":"2015-02-12T11:26:58Z","body":"Hi !\r\n\r\nCalling the `MapDBHelper.getZoneAssocFromExtPoi()` function throw the following sqlite error\r\n```\r\nandroid.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file\r\n            at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)\r\n            at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1125)\r\n            at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1076)\r\n            at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1052)\r\n            at com.insiteo.lbs.common.database.a.open(SourceFile:88)\r\n            at com.insiteo.lbs.common.init.InitProvider.registerDBHelper(SourceFile:474)\r\n            at com.insiteo.lbs.map.database.MapDBHelper.getInstance(SourceFile:41)\r\n            at com.insiteo.lbs.map.database.MapDBHelper.a(SourceFile:283)\r\n            at com.insiteo.lbs.map.database.MapDBHelper.getZoneAssocFromExtPoi(SourceFile:277)\r\n            at com.myqaa.beacon.insiteo.InsiteoFragment.onCreate(InsiteoFragment.java:127)\r\n            at android.support.v4.app.Fragment.performCreate(Fragment.java:1763)\r\n            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:913)\r\n            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1126)\r\n            at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:739)\r\n            at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1489)\r\n            at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:454)\r\n            at android.os.Handler.handleCallback(Handler.java:605)\r\n            at android.os.Handler.dispatchMessage(Handler.java:92)\r\n            at android.os.Looper.loop(Looper.java:137)\r\n            at android.app.ActivityThread.main(ActivityThread.java:4517)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:511)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)\r\n            at dalvik.system.NativeStart.main(Native Method)\r\n```\r\n\r\nI checked and I got the right permissions : \r\n `<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />`\r\n\r\nThanks in advance !"},"comment":{"url":"https://api.github.com/repos/Insiteo/Android/issues/comments/74056222","html_url":"https://github.com/Insiteo/Android/issues/3#issuecomment-74056222","issue_url":"https://api.github.com/repos/Insiteo/Android/issues/3","id":74056222,"user":{"login":"theGlenn","id":3216616,"avatar_url":"https://avatars.githubusercontent.com/u/3216616?v=3","gravatar_id":"","url":"https://api.github.com/users/theGlenn","html_url":"https://github.com/theGlenn","followers_url":"https://api.github.com/users/theGlenn/followers","following_url":"https://api.github.com/users/theGlenn/following{/other_user}","gists_url":"https://api.github.com/users/theGlenn/gists{/gist_id}","starred_url":"https://api.github.com/users/theGlenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theGlenn/subscriptions","organizations_url":"https://api.github.com/users/theGlenn/orgs","repos_url":"https://api.github.com/users/theGlenn/repos","events_url":"https://api.github.com/users/theGlenn/events{/privacy}","received_events_url":"https://api.github.com/users/theGlenn/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T11:26:58Z","updated_at":"2015-02-12T11:26:58Z","body":"Ok I think I was calling the function too early in the loading process it's fixed :)\r\nMaybe throwing an error about data not being fully loaded could be a better indication. :+1: "}}