andpor / react-native-sqlite-storage

Full featured SQLite3 Native Plugin for React Native (Android and iOS)
MIT License
2.75k stars 521 forks source link

Android:Failed to open local database on Android tablet #337

Open CrazyMcdull opened 5 years ago

CrazyMcdull commented 5 years ago

When I open an existing database on the Android phone in the following way, it shows success.

SQLiteStorage.openDatabase( ‘/sdcard/.../mydata.db’, '1.0', 'MySQLite', -1, ()=>{ this._successCB('open'); }, (err)=>{ this._errorCB('open',err); });

But it shows failure on the Android tablet.

aliwaqassi commented 5 years ago

bro can you help me with this? how can i get from download folder?

CrazyMcdull commented 5 years ago

@aliwaqassi On the Android phone, I successfully obtained the database that has been downloaded to the phone using the method mentioned above.

aliwaqassi commented 5 years ago

Please help me, i want to use exist database sdcard , not from assets, any example please