[android-developers] ATTACH DATABASE

2012-02-24 Thread Fillipp Cabral
Hi guys! When i execute this: database.execSQL(String.format(ATTACH DATABASE '%s' as %s, basicDataDb.getAbsolutePath(), BasicDataDbUtils.BASIC_DATA_DATABASE_ALIAS)); i don´t know if the database was attached before...how can i verify this? because if i try to execute ATTACH DATABASE

[android-developers] attach database

2012-02-24 Thread Fillipp Cabral
Hello guys! I´m trying to verify if the database was attached. When I use: database.execSQL(String.format(ATTACH DATABASE '%s' as %s, basicDataDb.getAbsolutePath(), BasicDataDbUtils.BASIC_DATA_DATABASE_ALIAS)); and if I execute this again, returns an exception saying: database in

[android-developers] attach database gives failure 14

2009-04-04 Thread bvdev
Does the API restrict you from attaching to another database while you have one open? I tried the SQLite3 command attach database .../contacts.db as aliasdb This works in the adb shell and I'm able to perform joins with tables in this database. When I use the same command via the API using