Develop Android App from iOS Code - android

I'm supposed to port an iOS app to Android. I have the iOS project in front of me but i do not have XCode to open it.
So I have some questions:
Is there a way to open the project on Windows? I DON'T need to build it or anything, I just want to see the correct file structure (because the file structure isn't the same in the project and on the hard disk).
How do you recommend to handle updates? The iOS app will always be updated first and my job is to update the Android app afterwards, according to the new iOS code. Is there a good software where I can see all the changes made to the iOS project? Or is this a stupid idea?
If you happen to know any good resources for android developers to understand the basics of iOS apps (not Objective C, more the structural aspects), let me know.
Thanks

In what format do you have it? You can use textedit or nano or vim or anything to open the individial .h and .m files.
Yes, have you heard of github? You can check the revisions. Additionally, if you know the high level feature overview of what you will be developing sometimes you may not need to see the other platforms code at all...
https://developer.apple.com/technologies/ios/cocoa-touch.html + google

Related

Converting android app to ios

I have one simple question, that is can I convert my android .apk app into ios using any software? If yes, then please give me the name of that software. If any alternative method for that please guide me.
Google has a tool to convert the back-end, nothing for front-end though
http://www.xda-developers.com/google-tool-helps-developers-port-android-apps-to-ios/
There is a new startup that clains to convert the APK to IOS.
It's called MechDome.
The goal is very simple and attractable:
Reduce time to market by eliminating cross-platform development. Automatically convert your existing Android apps to high-fidelity, native iOS apps.
There is nothing out there that would convert apk into ios app. To my knowledge there is also nothing out there that could translate android code to IOS. The operation is simply too complex for a simple tool to manage.
However, there are tools you could use to make your apps (developed by you) work across multiple platforms. I'm sure there are more, but here are 2 of them I found in minutes (look into them if you are interested): Apportable, Phonegap (discontinued as of 2020/03. It was made obsolete by ProgressiveWebApps - PWA).
In past decade or so WebApps have been picking up for anything that is not too graphically demanding as they can run on anything that has a Web Browser. With this style devs pretty much open their website in a platform-specific executable and it looks like an app.
As for your existing app depending on complexity of your software you have to rewrite from a little to a lot of code to adapt to IOS APIs.
In short: No. Unless your app is build on multiplatform framework, converting means manual adaptation.
There is no known way to convert an android app to iOS. MechDome which is a Developer Tool that Automatically Converts Android Apps into iOS Apps seems to have stopped as of 30/03/2021. link
However if it is your plan to launch android and iOS app from one coding project, use Flutter which allows you to launch on both platforms simultaneously.
Flutter is Google’s mobile UI framework that provides a fast and expressive way for developers to build native apps on both iOS & Android, using a single codebase.
Get started here link

Using CMake for cocos2d-x projects

Now I know this question pops-up frequently, but since I could not find a satisfying answer yet, I'm gonna ask here again:
I'd like to setup a cross-platform project for cocos2d-x using cmake.
My intention would be to have the general setup in my CMakeLists.txt files and be able to use this setup for Windows and Mac development at the same time, so I would easily be able to test our progress on Windows Phone, Android, iOS (iPad), Blackberry, etc.
I don't want to drag and drop files to XCode every time I need to deploy the game on the iPad when I applied changes to my Visual Studio solution and vice versa (when a colleague made a change to the XCode project).
Now I found the ios-cmake project hereand the android-cmake here.
Are they any good, i.e. are they still maintained and any good for developing with cocos2d-x?
Has anyone of you gathered any experience using cmake for cocos2d-x development or is there another common way to handle that kind of cross-system development with cocos2d-x? (I know there is the python script for the initial setup, but as I said, i need it to keep the project maintained at any time).
Thanks in advance!
A year ago, Reuben Bond made a fork to crosscompile cocos2d-x, you can see it Here. Exist a pull request supported by the official cocos2d-x project Here 3 months ago for Linux only, and another with windows Here.
I'm interested on cross-compiling and I hope cocos2d-x V3 support it.

Set up Phonegap with eclipse

I went through some documentation regarding Phonegap. Coming from an Android background, I wanted to try out phonegap so that I could develop multiple-platform apps relatively fast, however I am uncertain on a specific point. Is it possible to install phonegap on eclipse and code a multiple-platform app from there? Or do I have to stay installing xcode, visual basic etc and coding for every one?
Can someone kindly indicate what the best practice is in this situation?
Check out this link :
Integrate Phonegap with Eclipse
That will show you step by step process.
if you want to use the same code for multiple platform then you have
to upload the code which is under www folder to Phonegap site.
They will provide you multiple builds directly. Or if you proceed
separately like Android above then you have to generate separate
builds with separate ides available like eclipse for Android and xcode
for iphone.
Thanks.
When you will download PhoneGap that will be included with an example just import that example & run that example in eclipse & go through all the files available in that Project . So that you will understand that which files you have to put where & how .

Why must I manually edit the XML file in Eclipse? Can it be set to be done automatically as I develop the UI?

I do not have to do such manual updating in App Inventor so it is logical that Eclipse would have a similar automatic update feature.
App Inventor is made especially for non-programmers. Its main purpose is to give everybody the possibility to basicly develop an app so that one with a great idea and no or low programming knowledge would be able to get it done.
Now, Eclipse is an IDE that integrates great with the Android SDK. So it only helps you with basic stuff that any IDE does, plus some things about Android integration (like test your app on the emulator/device really easy).

I've downloaded and built the Android source... now what?

I've built an Android app in the past (on a Windows machine using Eclipse), but having downloaded Ubuntu, the Android source and built it successfully (whew), I'm not sure how to tie it all together. How do I load my app into the Android that I've built?
If you really want to be building your own ROM you should head over to the Android Platform Developer's Guide and read it all through.
However if you simply want to develop your own applications then you only need the SDK (and on rare occasions when you want to add some native code also the NDK).
The easiest way to develop Android applications is by utilizing the Eclipse integration, which does most of the work for you.
You also probably want to know what all of the SDK tools (even if you are building your custom ROM) that the Eclipse plugin is using behind the scenes do, so head over to the Tools Overview.
You may want to take a look at the Android Cookbook.
It has loads of nice wee snippets of code to get you started.

Categories

Resources