Titanium.Database is not initialized
Why is not initialized Titanium.Database object. I have this error message in log:
E/Web Console( 321): TypeError: Result of expression 'Titanium.Database' [undefined]
is not an object. at file:///android_asset/Resources/html5demos/index.html:67
code in index.html that causes exception:
var db = Titanium.Database.open('session_db');
Who have successfuly worked with Titanium.Database object?
1 Answer
-
It looks to me that you are doing this in a html file, am I wright?
Since V1.x, titanium does not work anymore with html code.