hi, firstly - I'm looking for a flexible/professional charting capability to bring into my Titanium (iOS/Andriod) applications. Titanium have a Charts module, but its too simplistic. Sencha Touch 2.x looks good. I don't overly mind embedding the Sencha Touch charts into a web view in my Titanium apps.
Next, and what I'm trying to clearly understand -
a) is it possible to even use Sencha Touch charts as part of a Titanium app ?
b) if it is - can someone please provide a recent sample Titanium project (code) that shows the A to Z of doing this. all I want to see is the absolute basics - the most simple application that shows (say) a line chart. Nothing more. That will be enough to know this is a practical solution, and then I can take it from there.
Greatly appreciate anyone's advice and assistance with this.
3 Answers
Angus, asking for code won't lead you anywhere. I know is not easy ,but this is not the way. The best way to ask for help is to actually do something and if you don't manage to, then ask for help, but with specific issues and questions.
Some directions you might want to follow in your app:
- make a window
- make a webview
- attach the webview to the window
- set an html page to the webview that contains a simple demo from sencha
- open the window.
If it's working the next step is to create the communication between the webview and the Ti app.
You can do it using custom events Ti.App.addEventListener or put the webview to evaluate code
my_webview.evalJS('alert("hooray!")');
Try to do this and ask for help later, when you have specific issues on a code made by you.
Sorry if I was too harsh but lately too much people is asking for code...
Our Java(GWT) binding for Titanium mobile and Sencha Touch (www.emitrom.com) has a solution for this. We are currently working on the next release and will share it soon. Stay tuned :)
Too see how to integrate Titanium Mobile and Sencha Touch have a look at :
http://emitrom.com/releases/titanium4j/2.0
Your Answer
Think you can help? Login to answer this question!