gluon-mobile

Cant import android files in gluon mobile

浪尽此生 提交于 2019-12-12 10:24:59
问题 my problem is that import android.content.res.AssetFileDescriptor; import android.media.AudioManager; import javafx.scene.media.MediaPlayer; import javafxports.android.FXActivity; return The import android cannot be resolved. although the class containing those imports is inside the android folder in the gluon single view project and the sdk is referenced. 来源: https://stackoverflow.com/questions/47495400/cant-import-android-files-in-gluon-mobile

Embed native video view in gluon app

∥☆過路亽.° 提交于 2019-12-12 10:15:49
问题 I'm supposed to write an app for iOS and Android that sometimes shows a customized video player on a part of the screen. I have to be able to control it (seek, play, pause, set speed, choose video...). I know that such media is not yet supported in Gluon. But would it be possible to write such a thing in XCode and Android Studio and somehow embed it in a Gluon app? 回答1: Following the design patterns in the Gluon Charm Down library, this could be a basic Android implementation of a

Go Native App Not Working Correctly - Gluon Mobile

放肆的年华 提交于 2019-12-12 06:14:19
问题 I'm trying to add share button implementation to my Gluon Mobile application and I have followed the GoNative application on their website. Following it step by step, I get a file structure that is different than what is specified. In addition, the Share Service is not found so any of the code in the "ifPresent" lambda doesn't work: What it looks like What it is supposed to look like You can see that the package itself is not getting created (com.gluonhq.charm.down.plugins.ios) when I run the

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

Gluon Mobile Share Button Implementation

僤鯓⒐⒋嵵緔 提交于 2019-12-12 03:46:40
问题 Does Gluon Mobile have any guidance on implementing a share button? My goal is to be able to share a string containing a link to different apps on the phone. At the moment, I need this only for the iOS implementation. I was able to find this link that provides a simple way to do this in Objective-C: - (IBAction)shareButton:(UIBarButtonItem *)sender { NSString *textToShare = @"Look at this awesome website for aspiring iOS Developers!"; NSURL *myWebsite = [NSURL URLWithString:@"http://www

Gluon 4.x.x artifacts not in the Nexus repo?

江枫思渺然 提交于 2019-12-12 01:43:34
问题 Upgrading my project to Gluon Charm 4.3.0 involved updating the dependencies in build.gradle. According to the docs I need to upgrade all 4 charm dependencies; the base and the three platform related ones. http://docs.gluonhq.com/charm/4.3.0/#_adding_gluon_mobile_to_an_existing_project When I try to compile I get an "could not resolve all dependencies", and indeed, if I take a peek in the Nexus repo mentioned in the documentation I do see a 4.3.0 for the base, but all the platform based

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,

Is it possible to launch app from URL and handle the URL content from inside app?

邮差的信 提交于 2019-12-11 14:11:01
问题 I want to use a functionality from which the user can launch my app/application from pressing a project file. I have my eyes on the com.gluonhq.charm.down.plugins.RuntimeArgsService Gluon service. My first step will be to just launch the app from a URL. However - I would like to know if/how it could be possible to let my application know from what URL it was launched - so it can automatically import that project and display it for the user. Can the launch URL be provided to the app

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

Gluon AppBar keep in the view

徘徊边缘 提交于 2019-12-11 08:10:07
问题 I'm trying to build a message window with App Bar on the top This screen consist of Gluon App Bar on the top and VBox in bottom which has rest of the element shown in the screen. Issue is when i click on the text area to enter text the App Bar goes out of scope. Is there a way I can set App Bar to be always on top? 回答1: If you are deploying your app on Android, the TextField and TextArea controls include a built-in check: when those input controls get focused, if required the scene is moved