javafxports

under gluon project how to get the Android assets folder

风格不统一 提交于 2019-12-12 04:39:01
问题 I had creat a gluon project ,then I put some folders and files under assets folder(Android) and I want to read the files in application,now how do I can read the assets folder ? or how do I get the android Context or AssetManager ? under gluon project there is no Activity class or any class extends Activity.I had read all of the gluonMobile API, javaFXports API and developer docs, there is no help! Dose anyone can help me? I nearly got crazy! 回答1: FXActivity which you obtain via FXActivity

When I compile Java(fx) application for Android, with the SoundPool use, the java compiler says “package android.media does not exist”

廉价感情. 提交于 2019-12-12 01:39:38
问题 In a Java application for Android, made in JavaFX under Eclipse Neon2, I want to use the android media SoundPool class. To do that, I have added, in the Java Build Path: the android-sdks platform : android-25 (called android.jar). the jfxdvk-8.60.8.jar Then, for instance, I create a SoundPool instance as follows: import android.media.SounPool; import android.media.MediaPlayer; ... SoundPool sp = new SoundPool(MAX_STREAMS,AudioManager.STREAM_MUSIC,0); The syntax is correct and the Eclipse

JavaFxPorts TextField Issue - Android Keyboard wont function

倖福魔咒の 提交于 2019-12-12 01:35:53
问题 I developed a simple javafx application to be ported in Android Environment, however I cant type any characters in the TextField. I guess its a bug, how to fix this one? Th problem on galaxy S5 android 5.0.1 is not present but on galaxy tab 4 android 5.0.2 it doesn't work i type but none is displyed. Tried with normal textfield. And the problem persist also I have added the properties . Another strange rhig is that the space where recognizer. And the del button . The text not THe code by

Javafx with Android - Api

元气小坏坏 提交于 2019-12-12 01:19:36
问题 I'm trying to use Android specific code in a JavaFx Project. I wrote a litte game on JavaFX and when I use JavaFX-Ports I can run this Game on my Android Handy. Now I want to display some ads and for this I have to use the FXActivity as a context. I imported the FXActivity import javafxports.android.FXActivity; Then I get this Error: D:\Martin\Programmieren\fx to android\Trio\src\main\java\net \hagh\Main.java:18: error: package javafxports.android does not exist import javafxports.android

Launch a JavaFX application from a service using JavaFXPorts

£可爱£侵袭症+ 提交于 2019-12-11 17:53:55
问题 I am trying to write an alarm clock application using JavaFXPorts and the org.javafxports.jfxmobile plugin. Beside the main view , which is a JavaFX Application, where the alarm events are set to run later. I need to load another view (another javaFx Application), which is the alarm event it self. This alarm view should be fired from a service which starts at boot time. I have tried to do so by creating a BroadcastReciver and a Service but unfortunately I can't figure how to add another

How to access native Android services from a Gluon Mobile app?

懵懂的女人 提交于 2019-12-11 14:25:10
问题 I'd like to call native services from my very basic Gluon Mobile application on an Android device. For example, by how it's done in the GoNative sample application, I can obtain a TelephonyManager instance like this: TelephonyManager telephonyManager= (TelephonyManager)FXActivity.getInstance().getSystemService(android.content.Context.TELEPHONY_SERVICE); But the example seems not to be up to date. I see that it uses earlier versions of several libs in die build.gradle file while in my config,

Textfield focus issue on javafxports 8.60.7

若如初见. 提交于 2019-12-11 13:03:02
问题 After switching to javafxports version 8.60.7 I encounter some strange bevahiour on TextField . When I tap on a textfield the keyboard shows up, but the textfield doesn't get focused and I am not able to input any character. When I switch the keyboard type (from SwiftKey to Google or vice versa) it works, but only on the selected textfield. I am still not able to focus any other textField. Furthermore after selecting a textField, the view seems to freeze. I can not navigate back, or show

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

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