error on Initializing Geodatabase

3969
2
07-30-2014 04:55 AM
Haider_AliFaheem
New Contributor II

On initializing runtime content geodatabase in android got following exception "java.lang.RuntimeException: The database file can't be opened." ,on stack trace the method is "<init>" and line number 93, anybody have the idea,i am getting error lot of time.

 

Thanks

Haider

0 Kudos
2 Replies
EliseAcheson1
Occasional Contributor

The Geodatabase constructor will throw a RuntimeException if you don't have write access to the directory containing the .geodatabase file, so that is one possibility.

~Elise

0 Kudos
Haider_AliFaheem
New Contributor II

Hello Elisa,

Thanks for your reply,i check my application again and confirm i have the write access permission for my application and directory is also not read-only,but still i am getting the same error.

Thanks

Haider Ali

0 Kudos