gluon-mobile

How to set request orientation in runtime?

帅比萌擦擦* 提交于 2019-12-20 04:34:29
问题 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 回答1: 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

Sharing multiple files with Gluon ShareService (image and txt)

寵の児 提交于 2019-12-20 02:56:39
问题 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

TextField in a Container - Keyboard hides Text

拥有回忆 提交于 2019-12-20 02:38:11
问题 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. 回答1: 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

compile and build gluon mobile app for desktop

你说的曾经没有我的故事 提交于 2019-12-17 22:59:40
问题 we have desktopRuntime 'org.xerial:sqlite-jdbc:3.15.1' in gradle file. i build project but my zip file dont have this file in lib folder. how can i build project for desktop? my ide is netbeans. Thankful. 回答1: The problem with the distZip or jar gradle tasks is they miss to include desktop dependencies. When deploying to desktop you can change temporary desktopRuntime to runtime , so they will be included, as Ladislav Török suggests, but then you should undo the change so that dependency isn

Poor ListView performance on Gluon

风格不统一 提交于 2019-12-17 17:09:07
问题 I have a custom ListCell implementation, shown in the picture below. The left side, which represents the date, consisting of 3 labels, put in a VBox and the "CounterContent" consisting of the counter, with a TextField for each digit, contained in a HBox , and two Hboxes containing labels for kWh, kWh/day and so on. And that seem to be just too much, to be running performantly. I've tried to load the data in a background task, showing a progress indicator, while the task is running, but unlike

How to testing Gluon app on iOS Simulator or Real Device?

孤街浪徒 提交于 2019-12-13 18:15:45
问题 The problem is related to my previous question when I try to execute the gluon application on iOS Device/simulator. It seem not working at all. It show me the following error: launchIPadSimulator : It error Unable to find a matching device [arch=x86_64, family=iPhone, name=null, sdk=null] Edited launchIOSDevice : It error No provisioning profile and signing identity found that matches bundle ID I also checking this question, but It doesn't help me. So the question is How to make it working?

problem on get device information with Gluon

会有一股神秘感。 提交于 2019-12-13 04:16:21
问题 I plan to get the IMEI of the phone in order to generate the QR Code or Barcode in my application. I have check the question before asking. More over I also check the gluon mobile docs for more detail. but It seem not solved my problem. The block code inside ispresent() is never ever been execute. Here is my code Services.get(DeviceService.class).ifPresent(deviceService -> { label.setText("Modeld: "+"Test" ); label.setText("Model: "+ deviceService.getModel()+"\nSerial: "+ deviceService

How can I improve/make changes to the orginal Gluon Charm Down Services and use it in my app?

被刻印的时光 ゝ 提交于 2019-12-13 02:49:16
问题 I am using Gluon Mobile so that I can use javafx to build applications to iOS and Android. I wonder how I can change/improve on the existing Charm Down library of services that are available: http://gluonhq.com/products/mobile/charm-down/ In my case specifically I need to take images that cover the whole screen on mobile. How can images taking up the whole screen be taken on Android and iPhone? And so I am looking to make edits to the VideoService and the PicturesService . By altering and

Couldn't run JavaFX Port Application on Genymotion with flash ARM Translation

a 夏天 提交于 2019-12-12 23:07:12
问题 I am having problem running my JavaFX Port Application on Genymotion. When I try to install it on the emulator. It says "Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]". So I go into flashing it with ARM Trnaslation. Finally I successfully installed my application on genymotion. The problem is when I try to run the app, it says "Unfortunately Gluon has stopped". The error log below. 07-24 13:36:57.283 1508 1508 I MultiDex: install 07-24 13:36:57.283 1508 1508 I MultiDex: MultiDexExtractor.load

JavaFX WebView Progress always goes from 0.0 to 1.0. (No intermediate values)

空扰寡人 提交于 2019-12-12 19:13:00
问题 I am currently developing an application with GluonHQ (JavaFXPorts) where I am using the WebView to load some Internet pages. I have noticed that when I am using the following code on Desktop webEngine.getLoadWorker().progressProperty().addListener((a,b,progress) -> System.out.println(": " +progress.doubleValue())); it prints out the loading from 0.0 to 1.0. Loading Page: 0.0 Loading Page: 0.22 Loading Page: 0.38 Loading Page: 0.81 Loading Page: 1.0 Whilst on iOS it always returns 0.0 and 1.0