Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Where is the JAVA for my app?

Pardon my noobness here. Maybe I've missed it, but I've spent all evening trying to figure out how to put the finishing touches on my Android app by editing the project in Eclipse. I have one bug that I can fix if I can get into that code (can't fix it in Titanium for some reason).

Where is the code? I've looked all through the BUILD -> ANDROID folders and have not found the source files. I found a series of .class files, but the few .java files I found had only a few lines and none of my code.

I really get the impression that the Android side of Titanium doesn't get the attention the iPhone side does.

— asked August 10th 2010 by Chris Dotson
  • android
  • eclipse
  • java
  • source

3 Answers

  • What code are you expecting to find? It's Javascript. There are 3 generated sources files for your project that are used to bootstrap you into Titanium. The rest of the source is on github. Android ships jars in the mobilesdk not source. There is documentation in the Programming guides section for getting the tools installed and there is one for module developers that talks about working in Eclipse.

    — answered August 10th 2010 by Don Thorp
    • Thanks for the reply Don. Sorry if my lack of understanding is glaring. 5 weeks ago I had never written a single line of code. I'm a video guy, not a programmer, so this is a steep learning curve for me.

      I'm having an issue with the Android version of my app. I exhausted myself trying to solve it through Titanium and didn't get an answer here, so I asked someone I know who writes Android apps how to do it. I was hoping to be able to tweak the Android build to get this new small piece of code in.

      Am I doing this the most difficult way possible?

      — commented August 10th 2010 by Chris Dotson
    • Can you describe what you want to accomplish? Most titanium developers never use Eclipse for Android or XCode directly.

      — commented August 11th 2010 by Don Thorp
    • I'm trying to work around the bug in Titanium for Android that allows a TextArea to be editable. My app just came out on the iPhone and this is the only glitch in the Android version that is preventing me from putting this in the Market.

      I see all the .class files. I would think there would be coresponding .java files too.

      — commented August 11th 2010 by Chris Dotson
  • If this isn't a function of Titanium, would it be useful to anyone other than me?

    — answered August 11th 2010 by Chris Dotson
  • You can get source files from github:
    git clone http://github.com/appcelerator/titanium_mobile.git
    (git should be installed first)

    Now you will find all the sources of Titanium. If you want to build, you need to enter the following command:

    If you have all the SDK-s, and building environment installed, it should compile and make new sdk in the dist folder. You should extract it on the Titanium's folder. Now you will get version 1.4.1 of the SDK. I've only tried this on OS-X.

    — answered August 12th 2010 by Adam Wallner
    1 Comment
    • I'm not a strong enough programmer to make changes to the Titanium code itself. 5 weeks ago I had never written any code. I'm comfortable enough with what I've written to be able to modify it outside of Titanium, but I'm trying to discover where I find the files that will allow me to do that.

      — commented August 12th 2010 by Chris Dotson
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.