I am playing with Qt on Android platform, and one of major drawbacks of Qt on mobile platforms is that it's missing Web Browser component.
I found that in order to display HTML content, one can use "WebView" component: http://doc.qt.io/qt-5/qtwebview-index.html
Unfortunately I found 0 information on how to use this on non-QML application. Everyone is assuming your app is QML, but what if it isn't. Is there any way to use this component? How?
Related
I want to create a modeless dialog with electron, but I found nothing about this topic in the official documents. Can anybody help me?
As it says in its Quick Start guide:
Electron enables you to create desktop applications with pure JavaScript by providing a runtime with rich native (operating system) APIs. You could see it as a variant of the Node.js runtime that is focused on desktop applications instead of web servers.
This doesn't mean Electron is a JavaScript binding to graphical user interface (GUI) libraries. Instead, Electron uses web pages as its GUI, so you could also see it as a minimal Chromium browser, controlled by JavaScript.
So, just use HTML, CSS and javascript! By instance you can use the dialog native element or any other library like Bootstrap, Vex, Bootbox.js, etc.
Everyone wants to compile their desktop (AIR) or web (Flex) applications as mobile (Air mobile) apps. Here I am going on the opposite direction. I want to compile my Air mobile app as a Flex web app and open it with the browser.
I think this is possible since, at the end of the day the, the Air mobile framework is -almost- a subset of the flex framework. Am I correct? I know that you use other libraries as well, like mobilecomponents.swc and servicemonitor.swc, but mainly they are supposed to be very similar.
While trying to acomplish this, I created a Flex Project on the Flash Builder and added the mobilecomponents.swc, imported my mobile code and replace and compiled it. There were no errors and the builder compiled everything without any warnings.
The only problem was that when I opened the swc in the explorer, the screen was all white and the app didn't even run. I knew the swc was loaded because of the mouse context menu, it showed you all the options of a regular swc but the app didn't run. I tried to debug it but nothing happened.
Clearly I did something wrong. If anyone can tell me how can I do this, I would really appreciate it.
Thanks in advance,
Sebastián
You're confusing some things...
I want to compile my Air mobile app as a Flex web app and open it with
the browser.
I think this is possible since
You are correct; this is possible. I converted a mobile application to a browser based application in about half a day. I had to change how a config file was loaded; but everything else worked without change.
You may have to re-write some functionality of your app if it uses AIR Specific functionality. The File class is one example.
the Air mobile framework is -almost- a subset of the flex framework.
Am I correct?
You are wrong here. The AIR Mobile framework is completely independent of the Flex Framework.
However, the Flex framework does provide many mobile optimized skins for Flex UI Components, such as buttons and lists. It also provides some special mobile only components.
However, there are non-Flex classes / functionality available on mobile that have nothing to do with the Flex Framework; they are part of the core AIR SDK provided by Adobe. The File class I mentioned previously is one.
While trying to acomplish this, I created a Flex Project on the Flash
Builder and added the mobilecomponents.swc, imported my mobile code
and replace and compiled it. There were no errors and the builder
compiled everything without any warnings.
Yes, you can use the Flex Mobile Component set tin a browser based app or other desktop app. But, as you discovered, you have to manually add the SWC to the output. You may also need to add the mobile theme for the mobile components to display properly. This can get confusing if you want to use a mix of mobile themes and non-mobile themes in the same app; because there is some cross over and Flex will not know which one to use by default.
You'd have to provide more information / code to help us diagnose the specific error you received.
I've done it before so it should work just fine.
What I did was create a standard web app (I have no code in sitting in "main" so I could switch the top level application tag easily), added mobilecomponents.swc, and selected the mobile theme in the Project Properties (you may need to import this from frameworks/themes/Mobile/mobile.swc).
After that it should be able to use the mobile components in a web or air desktop build.
I'm working in a webapp with Spring and I always used JSP and Jquery, In a recent conversation, some guy commented: You should use Flex instead.
Would Flex be a good choice for a web app? What are the advantages of using it vs. just JSP and Jquery?
I think you really mean to ask; why should I use Flex instead of JQuery.
JSP is a server side language. Flex or JQuery are client side languages. Flex is not a replacement for JSP any more than JQuery is a replacement for JSP.
Flex can be used to create a Flash Application; which can be deployed in a few different ways.
It can be used to create a browser based application that run in Adobe Flash Player. The Flash Player is only supported on desktop browsers, and there are no viable options to deploy a Flash Platform app to current mobile browsers. I would only recommend this if you had tight control over the machines accessing your application.
It can be used with Adobe AIR to create a desktop application for Windows or Mac machines. I, personally, think the use case for this is even smaller than creating browser based applications.
It can be used with Adobe AIR to create a Native Application on iOS, Android, and Blackberry Playbook. If you are tasked with building a Native Application that needs to be deployed on multiple mobile OSes; I think that Adobe AIR presents an intriguing option.
if you need to build Native mobile applications, and you already know JQuery, I'd recommend investigating options to build your JQuery apps as Native Applications. I know options are out there to convert HTML into Native Applications, but can't comment on them. I see no need to switch your technology unless you are running into limitations. To evaluate Flex ;you'd have to define what those limitations are and then decide whether Flex will help solve them. Usually the time savings of "use what you know" outweigh any benefit that comes from switching technologies.
That said; Flex provides some things that I don't see yet in the "HTML5/JavaScript" space. It has a robust UI Framework that works identically across all the platform targets, a step through debugger, and a memory profiler just to name a few.
The two technologies are completely different. JSP/jQuery would give you a web application. Flex would give you a Flash application.
Personally, if JSP/jQuery would work for you then you should go that route. If you don't need the features of Flex, there's no reason to require the user install the plugin.
I am building a mobile application in Flex 4.5 and from this app I would like to start the device's native navigation tool, like Google Navigation for example.
Is there a way to open the Navigation App using Flex 4.5?
As far as I knew, there was no way to launch other applications from a mobile Flex App.
Some native apps can be opened using URLs. It is, basically, the Flash Platform version of saying "Let the OS Handle it." If you HTTP link to a video, for example, it may open in a native player or it may open in the browser.
You can open the native text messaging program using sms as the protocol. As far as I know, there is no universal URL to open navigation services.
This post alludes to the fact that linking to maps.google.com will do it.
You can look into using the AIR Geolocation services APIs; but that is intended for in-app usage not launching other apps.
You can try using StageWebView to open up google maps or something. I don't think there's a way to open the native navigation app because it might not be there and they're different for each device.
I plan to build a database management system using Grails as the main framework. On the client side, I'm thinking whether to use dojo or flex to make a nice front end.
Could some experts here enlighten me on the pros and cons of choosing either, or both?
or any other options?
thanks!
I tried using Dojo in a project and even brought a few books. And while Dojo Looks good I found that JQuery and JQuery-UI was a lot lighter and worked faster.
This is just my opinion and it may help you.
From the description of the flex plugin at http://www.grails.org/Flex+Plugin
"This plugin was created as an experiment to prove that it's possible to communicate from Flex to Grails services without any configuration in Flex. There
is no plan to add functionality or whatsoever. It's not sure if the plugin works in production mode as it is only tested in development mode. This plugin
can be seen as an example on how to integrate Flex and Grails with Convention over Configuration in mind."
There is no scaffolding generation for flex, see this bug
Another disadvantage of Flex is its lack of accessibility for screen reader users with the default configuration. There is some work being done to address this but it isn't publically available yet.
I don't have experience with DOJO but according to this link if you use the standard Grails Ajax tags you should be able to switch libraries with out to much trouble and won't be tied to Dojo. For fancy UI stuff such as tabbed interfaces and data tables I've found GrailsUI works well for me. A demo project showing its features can be found at http://code.google.com/p/guidemo/ although you'll have to check the code out to run it.
I am developing an information-management application with Dojo 1.9.2 and Grails 2.3.9 (lots of simle/complex forms, listing screens...etc). The application has a single-page interface as well (a workspace) which was the primary reason for a heavy JavaScript library.
Overall, Dojo is fairly suitable for this kind of workload and I haven't bumped into any show-stoppers yet.
I needed to do a lot of work on integrating the Dojox DataGrid into the application (extending QueryReadStore to fit with Grails better...etc) and a set of custom widget extensions (e.g. a real, working AutoComplete).
After this larger, initial integration work is done, you can expect a fairly smooth ride.