Search code examples
androidtitaniumtitanium-mobiletitanium-modules

Importing JAR file in Titanium


I have created titanium mobile module project and copied .zip file to /lib folder and added entry to classpath. What are the next things I have to do So that I can access the method from JAR file. And in which file I should write code for making the use of methods of JARs.


Solution

  • you need to copy zip file in root folder of your titanium project not the lib folder. When you will run the project it will be uncompressed and it will make modules folder in root folder. You should have an entry in TiApp.xml file something like this:

    <modules>
        <module>
            com.test.module
        </module>
    </modules>
    

    and if you find folder "yourprojectdirectory->modules->android->com.test.module" then I think everything is ok....