Back to project page android-open-street-map.
The source code is released under:
Apache License
If you think the Android project android-open-street-map listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.android.lib.map.osm.helpers; // www . j a v a 2 s. c o m import java.io.File; import android.content.Context; public class OsmDatabaseHelper extends CustomDatabaseHelper { private File mDbFile; public OsmDatabaseHelper(Context context) { super(context); } public boolean openOrCreateDatabase() { if (mDbFile != null) return super.openOrCreateDatabase(mContext, mDbFile); return false; } public boolean openDatabase() { if (mDbFile.exists()) return super.openDatabase(mContext, mDbFile); return false; } public void setDatabaseFile(File dbFile) { mDbFile = dbFile; } public File getDatabaseFile() { return mDbFile; } }