简体   繁体   中英

Titanium iOS app to Android

I built an iOS app for a company i know, now I'm trying to make that same app for android. Just clicking the "Android" button in the xml file doesn't work. Do I have to rewrite the whole app again or is there some other way I can easily make that same app for android?

No, You don't need to rewrite the whole code again. But you should have to make some platform specific codes. Also some controls like Toolbar will not be available for Android. You can check the platform using Ti.Platform.osname or getOsname() method, which will return the osname(android/ios). In short, all other code will be work in android platform also.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM