Im new to android and I want to create kind of CRUD with SQLite.
I have a public class DataBaseHelper which have a constructor:
public D
I needed to access dbs for the app also. This worked for me:
String dbFile;
String[] dbNames = getSherlockActivity().databaseList(); // or ContextWrapper
for (int i = 0; i < dbNames.length; i++) {
dbFile = getSherlockActivity().getDatabasePath(dbNames[i]).toString();
Log.i(LOG_TAG, dbFile);
}
Hope it helps! :-)