This content has been marked as final. Show 3 replies
Sorry , please help me understand what are the advantages of the run in browser option.
I understand that Android is not a good platform for my app but I need to let Android users to use some parts of my app.
Do I have any way to use a desktop app on Android or I have to develop it for Android?
I am trying to choose the right app type for my job.
Do I have any way to use a desktop app on Android or I have to develop it for Android?You cannot use JavaFX for this as JavaFX doesn't run on Android.
You have to develop your application for Android using Android compatible technologies.
JavaFX is not currently an Android compatible technology (that may change sometime in the future - check back in a year or so).
As far as I understand Android applications don't run on desktop systems (though I don't do Android development, so I could be wrong).
The only current technology which is going to work on desktop systems and mobile systems today (that I am aware of) is html5, so if you want to develop an app which works on a desktop and on a mobile device, you could use that.
It is rare experience to have an optimal user experience for an application created using the same technology and design on both a mobile and desktop platform. Most likely you need to redesign the application for the mobile platform anyway due to the vastly different screen, processing and input capabilities of mobile devices vs desktop devices, as well as constraints imposed by application stores, installation technology and runtime technology for mobile and desktop systems.
So just plan on writing different apps in different technologies for desktop, android and iOS.
a) Pick HTML5 and design different pages for your HTML5 application for different devices.
b) Write your desktop application in JavaFX, your Android application in Google's Android toolkit and your iOS application in the Apple's iOS toolkit.
Start with just developing your application for one target device type - which-ever is most important for your users.
To do that use the best technology for that target device for your users so that your users get an optimal experience on that device.
Once you have a working application for one device, only then consider doing the porting effort to allow it to work on other devices.
the run in browser optionFor a description of the browser option, see the Application Execution Modes section of the JavaFX deployment guide:
The browser option uses plugin technologies to run in browser/OS combinations which support the JavaFX browser plugin and runtime environment.
You can think of the JavaFX browser plugin as similar to the Flash plugin; it's an extra bit of technology the user downloads and installs separate from their browser. The plugin allows users to access content and programs in a different format than their standard browser is able to use.
Like Flash, the JavaFX browser plugin is not universal, for example there is no equivalent of it does not work on mobile platforms such as Android or iOS.
Refer to the OS/Browser combinations in the JavaFX supported configurations to see what is supported:
Any system outside the list of supported configurations almost definitely will not be able to use JavaFX.
The JavaFX browser plugin has a history of being difficult to support for users, unreliable and insecure.
I'd recommend deploying your JavaFX desktop application as a self-contained application instead if you wish your application to work reliably for your users: