gluon-mobile

Executable jar can't find or load main class after it's created with a gradle task

旧街凉风 提交于 2019-12-02 10:31:19
问题 I used the gluon plugin to create a new single view project and changed nothing in its files. If I use the gradle task application > run it works fine. But if I use the taks build > jar it created the jar under SingleViewProject\build\libs and when I run it from the command line i get Error: Could not find or load main class com.gluonapplication.GluonApplication This is the untouched build.gradle: buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile

Charm 4.0.0 PopupView shows up only once

限于喜欢 提交于 2019-12-02 10:29:26
I have a set of Controls which use PopupView . Since the update to Charm 4.0.0, they show some weird behaviour. When I selected a Node contained in the PopupView, the PopupView used to get closed. Now the PopupView gets closed but immediately shows up again. Furthermore as soon as I click outside the PopupView it gets closed, but I am not able to show it again. I've tested it with the example from the Gluon javadoc and experienced the same behaviour regarding the second issue: public class MyApp extends MobileApplication{ private Button button; private PopupView popupView; @Override public

gluonmobile has font bug on android os

随声附和 提交于 2019-12-02 08:19:06
I created a demo project on github.com to show this bug: https://github.com/ismlsmile/TestGluonMobile The project is created by the template "Gluon Mobile - Single View Project", and I only modify the text in BasicView.java, to add some chinese characters: 1.Windows.png: It is ok on Windows 2.Android.png: Chinese character can not show on Android It is likely that a font bug. By default Gluon Mobile uses Roboto font, which doesn't include Chinese characters. One easy way you can solve this issue is by setting any of the Android system fonts that do include them. Using Font.getFamilies() on my

Which Java distribution 'level' does Gluon *Mobile* JavaFX expose, for IOS and Android - i.e. Full JavaSE (desktop) or Android?

99封情书 提交于 2019-12-02 07:52:25
问题 Apologies, I'm new to both JavaFX and Gluon Mobile. As JavaFX is/was a desktop API, I'm trying to understand exactly which level of API's Gluon Mobile exposes (compiles against) for Android and IOS? This doesn't seem to be made explicitly clear. Once this is understood, I can better understand if I'm able to use some 3rd party API's I'm interested in, which utilise JavaSE desktop API's (specifically Javax sound), on mobile (via Gluon). 回答1: You may want to have a look at the Gluon's knowledge

How to set request orientation in runtime?

拈花ヽ惹草 提交于 2019-12-02 04:33:42
I want my gluon application to be able to change orientation from Landscape to portrait in run time. I have check the Gluon Charmdown SDK, It seem that it have only getOrientation and don't have an option to set an orientation in runtime. I don't want to set fixed orientation in Manifest Charm Down has an OrientationService , but as you have mentioned, it is "read only", it just listens to orientation changes and gives you the current orientation at any time. But so far you can set the orientation programatically. To include this feature there are two options: clone Charm Down, modify the

Sharing multiple files with Gluon ShareService (image and txt)

末鹿安然 提交于 2019-12-01 20:58:37
We want to know how we can share multiple files (image and txt file) with the Gluon ShareService. Especially how to share an image which was previously taken and stored (in gallery) with the PictureService. But we need to create a file first with the path and image name. Unfortunately, the PictureService saves the image with the image title consisting of date and time at the moment the picture was taken. We tried to get the image name with the loadImageFromGallery method but this returns void and opens the recent-screen. Here what we've tried to share an image: public void sharePicture() {

TextField in a Container - Keyboard hides Text

跟風遠走 提交于 2019-12-01 20:30:16
I have a TextField in a container (VBox) in the bottom. When i select the TextField to enter some text it gets hidden behind the keyboard (iPhone). I put the VBox in ScrollPane but still the same. Can i get the keyboard somehow to get its height? How do i place TextFields which are not covered from keyboard? Thank you for your help. José Pereda At this moment, there is no built-in method in JavaFX or JavaFXPorts to get the (native) iOS soft keyboard. The solution to get the keyboard and find out if any node, like a TextField will be covered by it, would require a Service from those available

JavaFXPorts: Selected item in ListView is not selected

白昼怎懂夜的黑 提交于 2019-11-30 09:42:53
问题 Here is sample code: package com.javafxportslistviewdemo; import com.gluonhq.charm.down.Platform; import com.gluonhq.charm.down.Services; import com.gluonhq.charm.down.plugins.LifecycleEvent; import com.gluonhq.charm.down.plugins.LifecycleService; import javafx.application.Application; import javafx.beans.value.ObservableValue; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Rectangle2D; import javafx.scene.Scene; import javafx.scene

SwingFXUtils shows NoClassFoundError

泪湿孤枕 提交于 2019-11-29 18:08:24
I have tried to use the function SwingFXUtils.fromFXImage which raises NoClassFoundError exception. How can i save an image otherwise on Gluon mobile? SwingFXUtils nor any Swing related classes are supported on Android. Based on your comments, you are using Charm Down PicturesService to retrieve an image from the camera and show it on an ImageView control: Services.get(PicturesService.class).ifPresent(service -> service.takePhoto(false).ifPresent(imageView::setImage)); And now you want to save that image into a private/public storage location on your device. If you check the API for takePhoto

JavaFXPorts: Selected item in ListView is not selected

 ̄綄美尐妖づ 提交于 2019-11-29 16:00:16
Here is sample code: package com.javafxportslistviewdemo; import com.gluonhq.charm.down.Platform; import com.gluonhq.charm.down.Services; import com.gluonhq.charm.down.plugins.LifecycleEvent; import com.gluonhq.charm.down.plugins.LifecycleService; import javafx.application.Application; import javafx.beans.value.ObservableValue; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Rectangle2D; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.ListView; import javafx.scene.input.KeyCode; import javafx