Sample code for Creating Your First Titanium App
Last tested against 4.1.0.GA.
Clone this repo, create a new Alloy project, then import the cloned repo into the newly created Alloy project.
- From the menu bar, select File > New > Mobile Project. The New Mobile Project wizard appears.
- Select Alloy > Default Alloy Project. Click Next.
- Fill out all fields and click Finish.
- From the menu bar, select File > Import. The Import wizard appears.
- Select General > File System. Click Next.
- For From directory, click Browse, navigate to the cloned repo, then click Open.
- Select the app folder, that is, checkmark the item.
- For Into directory, click Browse, select the newly created project, then click OK.
- Click Finish.
Studio creates a new Alloy project and imports the files into it.
Create a new Alloy project, then overwrite the app
folder.
appc new -t titanium -n FaveBooks -i com.domain.favebooks
cp -r app ~/workspace/Favebooks/.