Select to view content in your preferred language

Add Runtime content to my app

2813
3
11-11-2014 01:06 PM
HaniDraidi1
Deactivated User

Hello all, I am confused about adding a geodatabase content (Runtime content) to my app, each time I enter the path to the geodatabase (using: Geodatabase geodatabase = new Geodatabase("{/path/to/geodatabase}");) I get an error in eclipse. What is meant by “path”? Would you please mention an example? Thank you, Hani

0 Kudos
3 Replies
by Anonymous User
Not applicable

This is the full path to the SQLite based geodatabase. If your geodatabase "openstreetmap" is placed in a folder named "data" at root Level you have to use "data/openstreetmap.geodatabase" for the constructor argument.

HaniDraidi1
Deactivated User

Thank you Jan for your valuable response,

would you please elaborate more where is the route folder, is it on my hard drive or in a folder in the app itself?

0 Kudos
HaniDraidi
Frequent Contributor

Jan, I got your point, I copied my .geodatabase to the external storage card in my device, and used this path: "/storage/extSdCard/ramallah_roads.geodatabase", and it went well. Is there a way to include the .geodatabase in my app (in the eclipse project itself), so when I run it on the my device it is copied automatically to its location on the storage card (Without copying it by myself)?

0 Kudos