I wrote an Android app with about 11.000 lines code. I need to port the app to Windows, Mac OS and other platforms as well, but I don't have the time and knowledge to do so. Is there a way to covert the Android app normal Java App that will run under Windows and Mac OS X without starting a very slow Android emulator?
I don't think there is another solution. I'm pretty sure that there isn't any solution now, having the whole code written for Android.
If from the beginning you knew this, maybe you would developed your application using a tool like Appcelerator that allows you to build cross-platform native applications. But it has an own syntax, and transforming now your code from Java to Objective-C or C#.
Android is not just some Java Libraries, it is an operating system, so you can't just port your "libraries" and run them on MacOS or Windows.
Android is a standalone operating system and apps written for Android SDK can only run on Android OS.
There are projects that enable you to run whole Android OS inside a virtual machine: http://www.android-x86.org/
From the app that you have right now, there is no way to do it, but you could choose from a cross-platform development tools or something like that and make the app again.
You might find some cross-platforms engines here:
http://www.toolsjournal.com/tools-world/item/157-10-of-best-cross-platform-mobile-development-tools
Maybe (depends on the type of app it is) you could create one app in html5 you can check this link for explanations:
http://blog.farreachinc.com/2011/08/25/html5-will-native-apps-obsolete/
Html5 can be used in many platforms.
I think you can reuse some of the code for java based mobile phones. Mac OS is developped in objective C so no.
Related
I wanted to enable one of my Android project to the new KMM but will deploy only for Android platform for the time being. According to this FAQ page it seems that the plugin works only for macOS. But was confused on the next paragraph stating
The good news is that you can work with cross-platform projects on
Android even without the Kotlin Multiplatform Mobile plugin. If you
are going to work with shared code or Android-specific code, you can
work on any operating system supported by Android Studio.
I am not planning yet to run the iOS part as I am still learning it, all I want for now is to prepare my project so when I am confident with my iOS skill starting it would be easy. I do not have a good Mac device as of now that is why I prefer to use my Windows machine for now which is more reliable for heavy stuff like Android development.
I just found the right place and reference and it is possible according to this documentation
I have an iPhone application (with an android counterpart), developed in Xcode and written in Objective-C. It is a classical native iOS app, already working and uploaded in the App Store. Similarly, the android version is built with Java and linked with the android SDKs. It's uploaded to the market place.
I was asked to port the app to Windows Phone. Is this possible without modifying the code?
I am not familiar with Windows Phone dev, however it looks like that is a completely
separate ecosystem for developing apps (different programming language, different IDE, different app store etc).
Can I go from Android to Windows Phone or from iOS to Windows Phone?
PhoneGap - or similar platforms - are not options since the code is already written in Objective-C and Java.
Like iOS and Android, Windows Phone is a completely different operating system and currently requires a completely different development platform.
It is not possible to take the existing code and make it function on a Windows Phone.
iOS commonly uses Objective-C for application development . Even if there was a way to compile Objective-C onto a Windows Phone, it would be inherently tied to platform features, and UI controls. While you could write some code in C++ and share it, with an iOS application, you'll still need some in Objective-C.
Android applications use Java normally. Java is not available for the Windows Phone platform. So, the language is out. Further, like iOS, the platform features are not necessarily shared and the UI control and behaviors are different. Android applications can use C++ (if you happened to code using it), but it has limitations, and by using it, again, you'd be tying the code to the Android platform potentially. Some code may be portable.
Windows Phone applications are usually written in C#/C++ and XAML or DirectX. While there is some similarity in languages (Java and C#), you'll encounter far more platform differences that could need significant effort to convert. From the way network requests are made to handling threads will be different (and many many more). Objective-C is also very different from C++.
Unless you had used something like Xamarin and written the underlying business logic using a common platform (C#/.NET), you'll need to consider a port to Windows Phone a fresh start.
It's not possible to just reuse all of the code that's been written. With a careful effort, you could share some common code (if it were written in C++), but as the shared code will not directly work with UI (and other platform features), you'd still need to do the UI on each platform, work around limitations, and potentially customize the user experience for each platform.
Microsoft has provided some guidance on porting, and provided some links with an API equivalency table here.
Yes, you can use Microsoft's Windows bridge for iOS to convert your iOS application code to Windows mobile platform code.
You need to use WinObjC SDK provided by Microsoft for this purpose.
Follow this link for more details.
No, you can't, WP apps are build with c# or .net and in visual studio IDE. There is no automated way to port a previously coded ios or android native app built with objetive-c or java to WP.
In my opinion there is no way to directly port a iphone app to windows phone app. You need to develop windows phone app with its needed environment like Visual Studio , windows phone sdk and with windows os.
You can also use cross platform like phonegap if it may fit to your requirement.
It looks like you have an existing Obj-C codebase for iOS, and a Java codebase for Android. No matter how you cut it, you're looking at [re]writing code to get something on WP8.
I don't know how "UI heavy" your app is; in general the UI code is the most platform specific (unless you're willing to put up with "cross platform" stuff that might not have good UX).
You might consider keeping the non-UI code mostly plain C++ and using Obj-C, etc. only for the parts where you have to talk to the framework. It will be easier to support multiple platforms with C++.
I took this approach with an app I'm working on; it's targeted for iOS but it's about 80% C++ (including Open GL). If I decide to port to Android I just need to deal with the 20%, mostly UI-ish code.
I have a VS2010 and VS2012 Professional in my PC I'm using a os window 7 and this both VS installed here I want to develop Android and Windows phone apps i want to know which pluging i have to instal to start learning to develop Android and Windows phone apps on my system. please let me know how can i start working on to to learn development of Android and Windows phone apps.
For develop in android you can use Eclipse IDE and install the plugin. See this: http://developer.android.com/sdk/installing/installing-adt.html
For the windows phone you can continue using visual studio. Download windows phone 8 sdk here: http://dev.windowsphone.com/en-us/downloadsdk
Developping on android or windows phone requires different langages. To develop on android, you'll need to learn Java, but for Windows, you can create app using C#. You'll also need to download their SDK from windows dev website.
But if you're a true beginner, the best advice I can give you is, if you really want to developp mobile app, starting by web app. You can create one web app in one langage that will work on every smartphone, using javascript or any web langage.
You can also find some really powerfull framework like Sencha
If you want to develop for both, Windows Phone and Android using Visual Studio and C# have a look at Xamarin.
It allows to write Android and iOS apps using C# too. A good design of the app, separating platform specific code, will allow you to share a great amount of code between different platforms.
Are there any tutorials for creating an iPhone App on Mac OSx with Eclipse and PhoneGap?
I have read many tutorials, but all of them were with Xcode without Eclipse. I would like to use the same code base and build for Android and iPhone from the same editor and test it on different devices.
In general, without any crazy work arounds, this would be very hard to achieve. The base app (the PhoneGap) part of the code, is unique to iPhone and Android, this objective c, and java.
You probably need to use the separate IDE environments.
you can find some plugin for eclipse, like: KDevelop
so now you can develop for iPhone (objective c) and for Android (java)
I read about it but I don't have any experience with it.
I just got an android phone and now I want to make an application for it in Visual studio. Is this possible?
I found a topic about it earlier but that topic was from 2010 might be that it's possible now?
Native android applications are written in java and associated textual files. Visual studio is certainly capable of editing these, and with some setup work launching the appropriate build tools or an ant script. But it's probably not particularly well suited to such work.
As other have mentioned, there are some alternative development languages/paths that may be a more natural fit for visual studio, but are a less natural fit (less native and/or less supported) for running on the android device - though the results may be sufficient for a given purpose.
If you develop HTML5 and then use PhoneGap, it should be possible. There is also a mono port (.NET) to Android you can use to develop in .NET and then port over.
Yes, you can use this:
Mono for android
Not sure it is a good idea though.
If you're comfortable with C/C++, you can develop for Android with Visual Studio 2010. Using vs-android:
http://code.google.com/p/vs-android/