I am having a slight problem recently with the Android's WebView.
While loading scripts (from assets), a small label at the bottom appears says loading which script. Like this :
I have seen some apps using WebView without this loading. What is a way to remove it ?
Thanks in advance !
Related
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
In my one of my android app ,I am using the WebView to render the html content. Whenever we scroll the Webview horizontally/vertically there is a jerk(shake) in the webview content.I have opened the lot of websites in android browser app. But the browser also have the same issue. But when we open the "Play Books" application, there is no jerks in scrolling.This app has the smooth scrolling. I am assuming that "Play Books" also using the android WebView. How can I achieve the smooth scrolling same as "Play Books" horizontal scrolling in the android webview. I am using android 4.0+.
Actually play books interface is made by Google where they have best programmers :(
Take a look at this it may help you Smooth scrolling in Android !!
I want to get rid of white screen from my cordova andriod application. I am calling new pages through window.document.location. First it will show white screen for couple of second then actual page comes up.
I believe jquery JS is taking time in loading on each page.
Please help.
Thanks
Rajeev Dave
use
window.open('mypagename.html");
I'm working on a project where i need to change between different Webviews on swipe. I want to apply a page curl animation to the webviews on each swipe, i.e., when we swipe on a webview it should get curled and the next webview should be displayed. Can anyone please help me regarding this.
Thanks a lot.
It's not possible (asfaik). There is a similar post here, where they suggest javascript but it only seems to work for iOS. That said you could try taking an image of the screen and putting it as an overlay of the webview and then use page curl on the image.
I've got a project using PhoneGap 1.0 and jQuery Mobile running on Android.
I'd like to achieve 2 outcomes:
When the app is loading and fetching data from the server, to put a splash screen. I've managed to put a splash screen for a defined time - but without really waiting for the data being loaded.
When the user hits the "refresh" button and the app tries to fetch data from the server - to put some "loading" screen. I wasn't able to achieve this. I've tried (http://nachbaur.com/blog/telling-your-user-that-a-phonegap-application-is-busy) but without success. I suspect it's only good for iOS.
Help would be much appreciated.
Thanks!
Try using the jQuery blockUI plugin?
http://jquery.malsup.com/block/
If you need a 'activity indicator' along with the UI block, try this:
HTML5 Canvas: How to make a loading spinner by rotating the image in degrees?
(since sadly, a simple animated GIF won't work...)
I am using jQuery BlockUI, with a simple spinner.gif image , works good on iOS, but on android the spinner freezes for some time in between. But it works! I think it is important to use less processor speed as possible .