Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have c++ based application that generate executable file for windows. Now I want to generate file for android and IOS.
Should I replace file extension in code only? Or I can be modify code as there is cross-platform mobile development feature in Visual Studio 2015.
Note: Generated application is a simple user authentication form with wrapped PDF file.
No.
You'd like to write a portable source code that compiles on Windows, iOS and Android (this is far from being trivial) or write interpreted (byte)code which can run on a virtual machine on those platforms (this is also far from easy).
Each operating system have its own format for executable file format and for system calls (ways for your program to interact with the OS and thus with the hardware). You can't simply rename an executable file for it to be runnable by every system.
An easier way would be to write an web applications, running through the web navigator. Otherwise, I'm afraid you'd have to write three different application, with bit of code reusable though.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I'm experimenting with Go and as I web developer I want to explore the possibilities of building the same Go web service with the same HTML/JavaScript/CSS UI cross platform for Linux, Android, iOS, macOS, Windows and so on.
I am aware of frameworks such as Electron, Cordova, gomobile but none of them seem to work both with Go and a web UI to generate several of Linux binary, Android APK, Windows exe, macOS dmg, iOS binary (don't know that format yet) without having to code different UIs for different platforms.
Any suggestions on how to solve this?
All of these platforms have browsers to render web content. Frameworks like Cordova wrap a native app around a browser component (web view).
The missing part is deploying a local go server, that would be the backend of your app. AFAIK, there is no cross platform solution for this yet.
Also, using a server locally violates it's main purposes (serving many clients concurrently, security of remotely stored information).
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to write a program can use in desktop, Android and IOS, I study Cordova and I think that we can use Cordova for this, can I use Cordova for this matter, if I use Cordova, In any operating System, can I use special API, for example I use Cordova in android for my program, Can I use Android API in my project, I use both of them (Cordova, Android API)?
Best Regards
If you are going to create the app for multiple platforms, then just use html5, don't use anything specific to android, i don't believe you can use anything specific to android, because it all gets put in a webView, Cordova should supply the necessary items, i.e filesystem, networking, etc..
Also you can build it up with Angular, or any other similar framework, and use Bootstrap, ionic, or similar UI libraries to normalise the look.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have built a very simple android app (i.e., an app that essentially just shows pictures along with some quizes). I am curious what the cheapest way of duplicating my app on iPhone, assuming I can't do it myself?
In that case, you should develop this app in titanium framework that framework basically supports javascript type structure and provides platform to develop app in both platform ios as well as android.
You might want to take a look at the j2ObjC project from Google
It will convert existing Java code to objective-c.
I haven't tested it and don't know how well it does perform, but if the app is simple, it should do well
If your application feature has not required native framework then you can create your application in multi platform framework.
Apache Cordova is one of the reliable mobile application framework which is run on iOS, Android and many other operation system.
Also you can find much details on this Link.
So you can make you application with using such framework and deploy on any operation system.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I would like to know how any mobile app is native or html5. Is there any software or website that tells that. How can i detect if an app is native or html5?
You can unzip the .apk with any tool like winzip or winrar. If it's an html5-based app, you will see .html, .js and .css files in the /res/assets folder.
To get the .apk, pull it from your phone with adb. You might need root for this though.
Native apps often use web views for rendering purposes - these are termed hybrid apps. The use Java to figure out what to display (cf a web server) and then use a web view to render the display. Thus the presence of HTML/CSS/JS files cannot be used to definitely determine that its an html5 app.
As #Tim says - unless you dig very, very deeply you can't be 100% sure. Probably not even then.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I'm just wondering if it would be possible (and legal) to port an Android app to desktop?
I'm creating an android game that would work well on PC too (even with the cellphone like layout) and was thinking that maybe I could 'embed' an android emulator with an installer or would that process be a bit hard for a novice Java coder?
If you keep the application logic separate from Android contructs (activites, intents etc) it should be easy to create Java Swing UI for the desktop app and thus have a common codebase. I have written Java code that is platform agnostic that works on J2ME/BlackBerry/Android and with a bit of design it is not at all hard to do so.
Consider changing your code to use libGDX - http://libgdx.badlogicgames.com/. You can maintain the same codebase and deploy simultaneously to Android and the Desktop (Windows, Linux, Mac). You will however need to convert your UI system to an OpenGL based UI. libGDX itself has a nice UI system which you can use. If not for this app, you can use it for future ones.