I am styling my application and changing the color in runtime. However I want to use gradient and using different gradients nuggets such as pancake, magic gradients even just using xamarin forms work fine until I use dynamic resource which is already reported bug so I must use static which in iOS doesn't change as I am not restating the app as in android.
Is there a way in iOS to restart the application? In android I just call On Activity, but it seems that iOS prevents this.
Is there any other way?
Related
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?
I'm using xamarin forms. All I need to do is to open Image full sized with zooming and dragging. I know, that on Android I could do it using another app, "Gallery" for example.
But what should I do when developing on cross platform apps? Maybe there is a lib, that can do such things?
Take a look on ImageEdit plugin. It supports Xamarin.iOS and Xamarin.Android platforms.
This plugin will enable you to manipulate(resize,crop,rotate,monochrome) a image(png,jpg).
I've found the solution for my issue a long time ago, but forget about the answer.
For me the solution was to use the Stormlion Photo Browser. It has some nice functionality, and works with local images. For Uri you just need to use "file:///your_path_to_image" and that's it!
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.