Reputation: 291
I am new to Titanium and Android development. We are planning to use titanium for Android (and iPhone) app development. Before we close on the 'Titanium' could any one send a sample code for android module for titanium.
What we are expecting is if we got stuck with some issues in titanium or a custom built functionality we will be developing the module in java(or objective-c). (not much idea of that development too .. as i am basically from .net). Then we need to use the functionality in Titanium
Upvotes: 3
Views: 4617
Reputation: 21587
oh my god, this question and answer are too out dated.
first of all, read ALL the official document(http://docs.appcelerator.com/platform/latest/#!/guide/Extending_Titanium_Mobile) you have to read all of them, including android&ios part.
At the same time, you MUST download the official's sample module project, you have to learn them by reading the complete code: https://github.com/appcelerator-modules/ti.moddevguide
if you want to have a quick idea, checkout this series of articles of titanium module: http://www.titaniumtutorial.com/2013/10/android-module-development-part1.html ( maybe the titanium version here is a bit out dated, but the knowledge is basically the same. )
I am writing articles about Titanium module. basically , it's a hard work, because you have to be familiar with both Android and IOS, you have to:
I am write the Chinese book of titanium, and there are already some articles about writing module for Android ( in Chinese: http://siwei.me/blog/posts/lession-9-sdk ) I will let you know (and translate to English ) once the book is finished.
Upvotes: 2
Reputation: 13106
Here's the guide to develop custom Android modules for Titanium:
Titanium Android Module Developer Guide
And here's a fairly complex sample module (for barcode scanning):
UPDATE
The newer Titanium versions (> 1.8) changed the modules, an updated guide could be found here (thanks to Giorgio for pointing it out):
Android Module Porting Guide (Titanium 1.8.0.1)
Upvotes: 3