Select to view content in your preferred language

error on Initializing Geodatabase

4061
2
07-30-2014 04:55 AM
Haider_AliFaheem
Emerging Contributor

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
Deactivated User

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
Emerging Contributor

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