I will release my second android application on Google Play soon.
But before relase I'm trying fix bugs.My application parse newspaper columnist article and show in application. I have 17 newspapers. Two of them bugy like same bug.
You see proggress dialog on middle. It's not mine application. It's mobile version of newspaper,Radikal...Although page loaded it is not disappear...This happen only my application and on tablet browser, there is no problem
This is Hurriyet newspaper's mobile version of site... It stuck like same. articles come after loading. But page stuck on loaded...
What problem can be ??
Note:If you want to see my application see, You can download it on omer-demirci.com/a.apk . After download click menu click gazeteler and you well see newspaper names click hurriyet or radikal
I solve the problem
Webview by default comes with JavaSript false.
enabled it and solved
webview.getSettings().setJavaScriptEnabled(true);
Related
I have a CodeName One app where I'm using the BrowserComponent to load an HTML page. This HTML page (HTMLPage1) further opens another HTML page (HTMLPage2) on the click of a button using window.open(). This works correctly in the app. This HTMLPage2 has a Close button and on clicking this button, HTMLPage2 should be closed and the control should go back to HTMLPage1. However, this is not working as expected. On clicking the Close button, nothing happens in the app and HTMLPage2 is still shown in the app. I have tried using window.close() and self.close() and neither of them work.
I found the following article on searching
Android Webview: Scripts may close only the windows that were opened by it that seems similar to the problem I am facing
Also, I have a WebView Test app (can be found on PlayStore - search for com.snc.test.WebView Test) on my mobile that lets me modify the WebView settings and launch different URL's. I used this app to check if I can successfully invoke my HTML pages through the WebView Test app. With the default settings, I ran into the same problem as described above. The Close button didn't work.
However, then I modified the setSupportMultipleWindows() property in the app and set it to true. After that, it worked correctly through the WebView Test app. On clicking Close in HTMLPage2, that page was closed and I could see HTMLPage1 again.
So, I tried checking how to set this property in CodeName One. I found that the BrowserComponent.setProperty("SupportMultipleWindows", "true") should be able to do the same thing. When I set this property and tested the app, it still didn't work.
Then I looked through the documentation of
WebSettings.setSupportMultipleWindows
According to this documentation, if set to true, WebChromeClient.onCreateWindow(WebView, boolean, boolean, Message) must be implemented by the host application.
I could not find a way to do this through CodeName One.
Am I going down the right path to tackle this problem? If not, kindly guide me.
I design new website using Joomla but this time I see something strange!
On any android device (by default browser (chrome)), it will show white screen if I refresh any pages of website.
please note it will happen only at "page refresh" events. I mean when you directly open the site with using address-bar and if you open links inside the website, it will show the page correctly, but if you refresh current page (with using "refresh button") you will see a "white screen" without any content.
I am sure that content is loaded correctly, because if you change the rotation of your tablet (or mobile) or if you tap white page and try to scroll down, website will appear!
seems there is several type of report for this problem:
https://superuser.com/questions/440416/chrome-displays-a-page-for-split-second-then-it-goes-blank
but I could not solve the problem with those solutions.
do you know any way to solve this problem?
Thanks
I got it
in Joomla by default jQuery is loaded. in Joomla 3.6.2 (that I am using), it's loading jQuery v1.12.4 by default that is stored in this directory: /media/jui/js/jquery.min.js
I just try to replace it by latest version, it solve problem but it create another one! in the console log I got a message that I can't use jQuery V3 because of bootstrap. then I downgrade to jQuery v2.2.4 (the latest version before version 3) and Hoooraaaaaaaaa, it's working now without any problem.
hope it help someone else
thanks
Hello have this problem on android webview app, trying to load responsive website in app. and getting this error in app:
Webpage is not available The webpage at https://mydomainname.com/
cud not be louded becouse.
NET::ERR_EMPTY_RESPONCE
Website works perfectly, funniest that on iphone works perfectly, and after restarting app I don't get this error, just one time after installation.
EDIT:
Im thinking of one solution, may some one help my. Im thinking of making auto refresh one time after app is lounched, do some one have code?
I'm having this little issue with PhoneGap when playing around with it:
Whenever I open an external link on my iPhone, it goes fullscreen and there is no way back but terminate the app and start again. I've read some articles and think this could be easily fixed by just calling window.open (or navigator.app.loadUrl on Android).
However, the problem continues with 3rd party library. In particular, I'm using Google Maps and the widget has little links to "Terms of Use" and something else. Tapping this link will load the Google URL full screen again.
My question is, is there any global configuration/code to either modify the in-app web browser (add header, back button and so on) or open every external links on device's default browser?
Thanks for reading and helping :)
First you study about InAppBrowser.
InAppBrowser open with close(done) button . This is not working means you also use ChildBrowser.
Reference 1
Reference 2
I am currently building an app using Flashbuilder for an Android device.
On several pages I have a spark component videodisplay or videoplayer in the pages.
For whatever reason the first time I open the app and navigate to that page the video doesn't load.
If I move off that page and go back the video shows fine.
If I then lock the screen, and then go back to the app I again navigate to a page with a video and again it doesn't display on that first showing.
Extensive websearch etc and I cannot find anybody else with the same error.
trace() shows video loads fine, both in s:videodisplay and s:videoplayer.
Any help would be brilliant.
Fixed the problem
It would appear that this is actually a bug with the AIR SDK (Bug 3354849 on Adobe Bugbase refers)
The new version of SDK (3.7) now requires the following code added to the manifest file.
<containsVideo>true</containsVideo>