If your program wants to directly know without the side-effect of
actually creating the table use something like:
public boolean doesTblExist(String tblName){
Cursor rs = null;
try{
rs = conn.rawQuery("SELECT * FROM " + tblName + " WHERE
1=0", null );
return true;
}catch(Exception ex){
return false;
}finally{
if (rs != null) rs.close();
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---