Skip to content
jservin edited this page Sep 13, 2010 · 15 revisions

Debugging

Firebug Lite:

Titanium.API.debug(msg) to log to console

does this really work? have to do —console on app run?

Aiming Links at the Default Browser

target=“ti:systembrowser”

Python

Importing modules
<pre> class HelloWorld: def hello(self): import os, sys resources_dir = Titanium.App.appURLToPath("app://index.html") resources_dir = os.path.split(resources_dir)[0] sys.path.append(resources_dir) from gluon.sql import SQLDB db = SQLDB('sqlite://storage.db')

Titanium.API.set(‘py.helloworld’, HelloWorld())

Clone this wiki locally