gluon-mobile

How can I send Java object between client and server on Android and iOS?

▼魔方 西西 提交于 2019-12-07 12:54:34
问题 I have a client and a server both written in Java and sharing Java classes that should be sent between each other. I'm not sure which libraries I can use for this on mobile because I don't know what Dalvik supports, what RoboVM supports etc. Not sure what Gluon Mobile can do for me in this case. Specifically I have a file that looks like this: class Data { IntegerProperty int1 = new SimpleIntegerProperty(4); ObjectProperty<Person> person = new SimpleObjectProperty(); ObservableList<Contact>

How to request permissions during run time when using Gluon mobile environment?

我们两清 提交于 2019-12-06 13:17:11
I am new here and reason for that I don't know all rules of the site yet, sorry about that! I am building a Java application to Desktop and Android by using Gluon mobile plugin in Eclipse tool. I have variated code for Desktop and Android as described in an example ( http://docs.gluonhq.com/samples/gonative/ ). So I have Android specific NativeService where I have a method to read files from external storage (that works). I have also studied how to request permissions on run time when using native Android environment ( Storage permission error in Marshmallow ). I am able to request the

gluon Mobile LocalNotificationsServices.class Not working

拥有回忆 提交于 2019-12-06 06:02:10
Hi guys Am new to Android development using javafx . Am trying to create push notification on android using javafx (javafxports and gluon Mobile ) . My problem is that push-notification is not displaying as I did Expected. I got this idea from http://gluonhq.com/products/mobile/charm-down/ http://docs.gluonhq.com/charm/javadoc/4.2.0/com/gluonhq/charm/down/plugins/LocalNotificationsService.html#getNotifications-- here's the gradle.build file Below. buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.2.0' } } apply plugin: 'org.javafxports

Gluon Mobile ScrollPane Optimization

↘锁芯ラ 提交于 2019-12-06 05:22:09
I'm trying to implement a JavaFX ScrollPane with a nested VBox, and I'm experience a strange issue when scrolling too fast in mobile. The issue is that if I scroll in smaller yet quick upward gestures, the scrollpane stalls for a half a second first, and then continues. It gets laggy in random swipe gestures. Is there anyway I can optimize this? This doesn't happen on the desktop version, so I'm guessing it may be a limitation of my phone and JavaFX itself. This issue is more evident when I set a background image for the scroll pane viewport. Here is some sample code for a View: public class

How can I send Java object between client and server on Android and iOS?

爱⌒轻易说出口 提交于 2019-12-05 18:31:24
I have a client and a server both written in Java and sharing Java classes that should be sent between each other. I'm not sure which libraries I can use for this on mobile because I don't know what Dalvik supports, what RoboVM supports etc. Not sure what Gluon Mobile can do for me in this case. Specifically I have a file that looks like this: class Data { IntegerProperty int1 = new SimpleIntegerProperty(4); ObjectProperty<Person> person = new SimpleObjectProperty(); ObservableList<Contact> contacts = FXCollections.observableArrayList(); // other properties // also add the getters for the

mobileapplication.mobileevent BACK_BUTTON_PRESSED

雨燕双飞 提交于 2019-12-02 19:37:24
问题 I've got 2 android native audio instances in two of my views. I'm trying to get the audio to stop when the user presses the back button and leaves the view as it's not happening automatically. I've looked at the documentation and seen the MobileEvent class. I've tried implementing it's constructor with no luck. This is my first app altogether and I've only just learnt Java and JavaFX on my own for this purpose so some help would be great. My current attempt is below. public void MobileEvent

How to implemented in JAVAFX/Gluon a button to go to the default send Message for my Android Mobile

流过昼夜 提交于 2019-12-02 18:56:17
问题 I have implemented a Button in my Mobile Application und have a Textfieldwith a Telefon Nummer. What i want to achieve: When the User Click the Button-> The Default Page to send SMS is open in Android and the Telefonnummer is Paste in the default Nummer Textfield for Android. I Use Gluon Mobile with JavaFX :compileJava/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:4: error: package android.content does not exist import android

Charm 4.0.0 PopupView shows up only once

喜欢而已 提交于 2019-12-02 18:09:50
问题 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

gluonmobile has font bug on android os

断了今生、忘了曾经 提交于 2019-12-02 13:57:18
问题 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. 回答1: By default Gluon Mobile uses Roboto font, which doesn't include Chinese characters. One easy way you can solve

How to implemented in JAVAFX/Gluon a button to go to the default send Message for my Android Mobile

China☆狼群 提交于 2019-12-02 12:38:31
I have implemented a Button in my Mobile Application und have a Textfieldwith a Telefon Nummer. What i want to achieve: When the User Click the Button-> The Default Page to send SMS is open in Android and the Telefonnummer is Paste in the default Nummer Textfield for Android. I Use Gluon Mobile with JavaFX :compileJava/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:4: error: package android.content does not exist import android.content.Intent; ^ /Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views