mobil: titanium

homepage

A good place for docs

This may be a better place to start for the docs

Next step: sign up and download

Do you have to be connected to develop?

What am I downloading from here: account dashboard?

desktop getting started

The framework also has advanced scripting support for both Python and Ruby, with access to both the Titanium framework itself and the DOM.

You may have heard of (or used) Adobe AIR, and there's no hiding that Titanium is a very similar framework in a number of ways.">What is titanium

A Titanium application generally consists of a number of "resources" including HTML, CSS, Javascript, Python and Ruby scripts, images, sounds, and any other resources you require.

The application uses these resources in conjunction with a specialised Webkit-based client to create a professional, OS independent application.

This is really a good link to read

Advanced filesystem features allow you to read and manage files in a more web-independent way.

Internal SQLite database makes storing local data a simple task.

Advanced network features allow you to go beyond simple comparatively AJAX or JSON functionality. While all of this is still available, the Titanium API allows you to interface with HTTP at a much lower level, or even open socket connections to other services manually.

Titanium includes wrappers around standard OS features such as notifications, tray icons, and window menus so you can create more natural applications for all the major systems


Go to Community perspective
Go to sand box
then...

<html>
<body>
<h1>Hello World</h1>
</body>
</html>

And then click "Launch". thats it

Check out freenode

You will use your own editors to manage and maintain the project

Search for: textmate, aptana

source code of appcelerator

Some sample code

Another sample github code

How can I download zip files from github?

Search for: How can I download zip files from github?

Whats up with Javascript objects and namespaces?

Search for: Whats up with Javascript objects and namespaces?

What is a simple RIA javascript library for web development?

Search for: What is a simple RIA javascript library for web development?

How do you debug RIA javascript?

Search for: How do you debug RIA javascript?

What are javascript language gotchas in RIA space

Search for: What are javascript language gotchas in RIA space

Here is a test app

Search for: How to download a zip file from github

Read More

Instead you have to use firefox.

And their api seem to work with out including any special js files.

What is web inspector

Search for: What is web inspector

What kind of controls I have in the Titanium API?

You will be using something like jquery to develop your apps. an example

More notes on jquery

Here are android related issues/notes from the titanium site


Delete the following directories
\documents and settings\all users\application data\Titanium
\documents and settings\<your-user>\application data\Titanium
\Program Files\Titanium (your install directory)

Some additional notes on reinstall

you may want to sign up for titanium mobile first and get a userid and password before downloading the product. The download and install requires that you are connected to the internet. It will go back to download over 40M once the install starts. There doesn't seem to be a good way to do offsite install. It is also not clear if you can develop without being connected.

once you install and start the app, the default new project is "desktop". You need to click on the app type to see the option for mobile. That box should have been a drop down but just an edit control.

Only if you chose mobile will you see the options to run on an emulator. It may ask you to locate the android installation directory. It seem to take off from there fine. You dont need to specify the java directory etc.

How can I start with a single window, no tabs, a light background?

Documentation guides for mobile titanium

How to package an app for android

Can I get access to the generated Android source code for a titanium mobile project?

I'm going to assume that you've got eclipse all set up and can generate an simple android project and can run it from eclipse. The google docs will help you through that part. After that it's pretty simple. If you were on a unix system, we would symlink the source into the appropriate folder. On Windows we can't. So you'll need to move tiapp.xml and the Resources folder into build/android/assets.

Next open eclipse and choose import project. Browse to your project folder, then select the build/android folder. I already have .project and .classpath files there.

You will get a build error. Go into the src/ folder and delete R.java.

Once you've done that, you should be able to setup a run configuration per google's instructions and develop your Titanium Android app within Eclipse.

Search for Offline installation of titanium

Follow this discussion on offline installation


<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.ai.titanium.android.AndroidTest</id>
    <name>AndroidTest</name>
    <version>1.0</version>
    <icon>appicon.png</icon>
   <persistent-wifi>false</persistent-wifi>
   <prerendered-icon>false</prerendered-icon>
   <statusbar-style>opaque</statusbar-style>
    <windows>
        <window>
            <id>initial</id>
            <url>index.html</url>
            <backgroundColor>white</backgroundColor>
         <icon>ti://featured</icon>
         <barColor>#000</barColor>
         <fullscreen>false</fullscreen>
        </window>
    </windows>
</ti:app>

<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.ai.titanium.android.AndroidTest1</id>
    <name>AndroidTest1</name>
    <version>1.0</version>
    <icon>appicon.png</icon>
   <persistent-wifi>false</persistent-wifi>
   <prerendered-icon>false</prerendered-icon>
   <statusbar-style>opaque</statusbar-style>
    <windows>
        <window>
            <id>initial</id>
            <url>index.html</url>
            <backgroundColor>#111</backgroundColor>
         <icon>ti://featured</icon>
         <barColor>#000</barColor>
         <fullscreen>false</fullscreen>
        </window>
        <window>
            <id>about</id>
            <url>about.html</url>
            <backgroundColor>#111</backgroundColor>
         <icon>ti://top rated</icon>
            <barColor>#000</barColor>
         <fullscreen>false</fullscreen>
        </window>
    </windows>
</ti:app>

The debug api

Mobile APIs


<html>
<head>

<script>
function myalert(message)
{
   var a = Titanium.UI.createAlertDialog();
   a.setMessage(message);
   a.setTitle('My Alert');
   a.setButtonNames(["OK"]);
   a.show();
}

function dalert(message)
{
   Titanium.API.info(message);
   alert(message);
   //var a = prompt(message);
   myalert(message);
}
</script>

</head>

<body>
<h2>Hello World</h2>

<p><a href="javascript:dalert('hello')">
Click here to execute javascript
</a></p>

</body></html>

titanium mobile getting started guide

Search titanium for tiapp.xml