Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android - Installing a SQLite database to a SDCARD

$
0
0

I am trying to install a database on the SDCARD by using this command:

var hdwDBTest = Titanium.Database.install('hdwbin2', Ti.Filesystem.externalStorageDirectory + 'customer' + Ti.Filesystem.separator + 'hdwbin2');
and I keep getting this error:
[ERROR][TiExceptionHandler(15327)] (main) [601,1536] ----- Titanium Javascript Runtime Error -----
[ERROR][TiExceptionHandler(15327)] (main) [1,1537] - In ti:/invoker.js:101,19
[ERROR][TiExceptionHandler(15327)] (main) [0,1537] - Message: Uncaught Error: File appdata://customer/hdwbin2 contains a path separator
[ERROR][TiExceptionHandler(15327)] (main) [0,1537] - Source:        return delegate.apply(invoker.__thisObj__, args);
[ERROR][V8Exception(15327)] Exception occurred at ti:/invoker.js:101: Uncaught Error: File appdata://customer/hdwbin2 contains a path separator
Can someone point me in the right direction please?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>