gluon-mobile

Creating Custom Android Notifications using Gluon-Mobile

╄→гoц情女王★ 提交于 2019-12-11 08:08:27
问题 I have created Android Notification using Gluon-Mobile using localNotification. But,this time I want to create custom Android Native Notification. I have been referring this Go Native docs. So,far I have Tried this Below .I have placed this code under android/java/com/sample package, but it's not working. package com.sample; import android.app.Activity; import android.app.NotificationManager; import android.content.Context; import javafxports.android.FXActivity; import android.app

ActivityResultHandler sometimes not working

心已入冬 提交于 2019-12-11 07:27:10
问题 Im using a slightly modified version of the Gluon AndroidPicturesService (to be able to access the taken / selected picture). While taking or selecting a picture is basically working, sometimes there is no activity result and the app gets new initialized, i.e. there is no FXActivity onRestart prior to onStart, onResume , or even worse there is a crash (it seems not to be caused by a specific image or directory). public class AndroidPictureService { private static final int TAKE_PICTURE = 1;

Dialog causes drag done events to not propagate

早过忘川 提交于 2019-12-11 05:32:57
问题 I'm using a popup dialog during a drag and drop operation. When the drop happens a dialog pops up and when it is dismissed the event chain should continue and allow something to happen when the drag operation ends. If the popup dialog is FX then there is no problem but if it's Gluon the drag done operation doesn't happen. Here is a sample code: import javafx.scene.control.Alert.AlertType; import javafx.scene.control.Label; import javafx.scene.input.ClipboardContent; import javafx.scene.input

Gluon Mobile: Access JavaDoc from within NetBeans

◇◆丶佛笑我妖孽 提交于 2019-12-11 04:58:54
问题 I would like to access the Javadoc documentation of Gluon using the NetBeans context menu option Show Javadoc : This fails with Cannot perform Show Javadoc here : Showing the Javadoc for classes belonging to the Java standard library (for example javafx.scene.Scene) works as expected. Hence, I need to set the url to the Gluon Mobile documentation (http://docs.gluonhq.com/mobile/javadoc) manually. As Gluon projects are managed by Gradle, the project settings dialog appears to have no way of

Can I display google adwords (AdView) in javafx on android

…衆ロ難τιáo~ 提交于 2019-12-11 03:09:26
问题 I have a javafx app running on android and would like to place google adwords on some of the screens. The issue I have is that the adwords use googles AdView to display the add which is an Android presentation object and is not compatible with the JavaFX presentation layer. Sample code that creates AdView import com.google.android.gms.ads.MobileAds; import javafxports.android.FXActivity; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdSize; import com.google

Impossible to add the charm library in Scene Builder

馋奶兔 提交于 2019-12-10 23:55:57
问题 I can not add gluonhq.charm elements or open gluon FXML with "charm-common-2.2.0.jar" library in my scene builder Builder 8.2 (I tried with 8.1.1 too). When I add the jar file, nothing is added in the left section on scene builder. But the jar is correctly added in the Library folder. See image below Or when I try to open a gluon FXLM, I have this exception : Caused by: java.lang.ClassNotFoundException: com.gluonhq.charm.glisten.mvc.View Can you help me ? 回答1: If you want Gluon's Charm

Gluon Mobile iOS Audio Player

爱⌒轻易说出口 提交于 2019-12-10 20:14:59
问题 Since the JavaFx Media has not been ported to the Mobile Platforms yet, can anyone help me with using the native iOS APi's to play a sound mp3 file that would be stored in my main/resources folder in my gluon project. 回答1: While on Android we can easily add native API to the Android folders of a Gluon project (check this solution for using native Media on Android), the use of native code (Objetive-C) with the Media API on iOS folders is not enough, since it has to be compiled, and the

Schedule a Task in Android using ALARM_SERVICE service in Gluon-mobile

点点圈 提交于 2019-12-10 09:46:21
问题 I have referred from this link and tried this code So far.But I don't know to implement this code in gluon-mobile .What I intent to do is that I want to start an Indent that does some Job in background at a specific time.My problem is that I don't how gluon-mobile behaves.So help me complete it. package com.application; import java.util.Calendar; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import javafxports

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

安稳与你 提交于 2019-12-07 22:50:08
问题 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

gluon Mobile LocalNotificationsServices.class Not working

核能气质少年 提交于 2019-12-07 18:33:35
问题 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() }