I'm a student and currently learning + working to develop mobile applications using JavaFX, gluon mobile Application. I'm able to build up distinct applications. But, I wanted to know if there is any possible way to open up a webpage in gluon mobile application. Like we can have it in android by android-studio. But I want to make it in gluon mobile app.
I have checked many of the samples, but none actually helped.
I want this because I have a website which has a mobile responsive theme. Instead of developing a separate app for that ( which is, of course, a very lengthy process), I want the webpage URL to open in-app. So that it will be more easy for me to set up rest of the things...
I have tried the rest, gluon connect settings etc. I have read the docs as well. But couldn't find anything related to that. Or maybe I've missed.. I'll be glad to get support regarding this question.
Any possible help will be appreciated.
Well, as answered in comments by Jose Pereda,
the WebView worked very well!
Sample Code:
//javafx class
...
WebView myWebView = new WebView();
WebEngine web = myWebView.getEngine();
web.load("https://yoururl.com");
....
docs can be found here: WebView Javafx Docs
Related
I want to make a samsung smart tv app with tizen.
I've made an webpage using springboot.
I tried making the app using that webpage codes I made, but I've got to know Tizen doesn't support java but html, css,and javascript only.
So I used meta http-equip="refresh", and let index.html go to my webpage url,
but there were long loading time, and ugly ui for a waiting page..
also remote control's pointer was weird. (not focusing on a certain button, but there is a cursor)
is there no way to solve this problem?
I've tried to find a way but I couldn't. please help me...
It seems that you are making a redirect to your website (hosted in internet).
Maybe would be better starting reading the basic concepts about Samsung Smart TV apps here
If you try to open external content (hosted websites) into your app the TV will use its web browser to open it.
Good afternoon ,
I currently have a simple website made in Wordpress and would like to create a webview to encapsulate the same.
The goal is to look like an App, so that the client can download for both Android and IOS, install and in fact he will see the mobile version of the site.
I know how to make an App from scratch but I can not pass the site codes to it.
Can someone help me?
I searched so much on the internet but found nothing.
If you really just want to show the website in a web view, you can do that. For Android, you'll load the URL into a WebView. For iOS, you can use SFSafariViewController.
Official documentation:
WebView: https://developer.android.com/guide/webapps/webview
SFSafariViewController: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller
Edit: You probably won't actually be able to publish that, though. Maybe on Android, but on iOS, they want your app to be more than a repackaged website. See section 4.2 of the App Store review guidelines. https://developer.apple.com/app-store/review/guidelines/
I would perhaps recommend instructing your client how to add your website as a shortcut to the home screen of their phone.
There is now a Wordpress plugin to make your site a PWA
https://wordpress.org/plugins/pwa/
Helle everyone,
I'm wondering if there is a possible way to share a text On my Facebook profile, even while using the codenameone simulator.
I did my researchs but all what I find is the share using the "ShareButton" component which only works when you launch the app with an actual device.
Greetings.
The share button doesn't really know about facebook. It places the text into a special OS hook which offers you venues where to share that data. That's great because that means it can work for other social networks seamlessly and it uses the native OS to do the posting. Zero setup.
Desktops don't have an API like that. If you want to explicitly share to facebook you can just do something like this which will launch the browser:
Display.getInstance().execute("https://www.facebook.com/sharer/sharer.php?u=" + Util.encodeUrl(textToShare));
i'm a web developer so i don't have a large knowledge with android apps, but i have found a project on github to make a simple webview app to show a website i have created which is fully responsible and work fine with all browsers on desktop and android phones, when i run the app in android studio it works great and everything run smoothly in many emulators, but when i install the apk on physical phone some problems show include taking larger width than the device and some containers which displayed 'none' shows at the bottom of the page and there are many issues with the proportions of the pages, i hope someone can help me to locate the problem or guide me to where i can search for it and find it by myself
this is the url to the github project
thank you very much
I see, I think just adding this code to your MainActivity will do the trick!
mWebView.getSettings().setLoadWithOverviewMode(true);
mWebView.getSettings().setUseWideViewPort(true);
maybe try this too:
WebView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
put the above code below :
mWebView.setWebViewClient(new WebViewClient());
hope this helps :D and please tell me if it does!
I have an existing PHP MySQL web app that I want to make an android app for to look up account info, get status info for work orders, upload photos, etc.
I'm new to Android Dev and found a site phpforandroid.net that says I can use PHP to build android apps. 6 years ago I did a basic Java class n learned a little about Java, but not much.
I want to have a login to the app, then present a menu to drill further into heir account info.
My first choice would be PHP if the database interaction can happen, but I don't really know. Anyone else gone down the PHP db driven route, or is Java the way I should go? Any tutorials you would recommend?
What are the community thoughts? THanks.
Why don't you build a smartphone compatible website (i.e. with jQuery Mobile)? You could use your existing PHP knowledge and the app would run on any descent smartphone, not only Android.
How about a mobile version of your web app? You could make it work on other phone platforms, you'd have full control over the code, instant updates without bothering the end user.