阅读背景:

Android:检查文件是否是有效的SQLite数据库

来源:互联网 

I need to check whether a file (with unknown extension) is a valid SQLite database. The db file is stored on the sd card. I need to import the database in my app. But if the user creates a file by the same name as of the database with any extension the file is still accepted by the code as it searches only for the name. Is there a quick way to check for the validity of sqlite db stored on memory card. I used this code, but it still accepts arbitrary file with same name as db.I need to check whether a file (with unknown ex




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: