I'm using webview to display content from certain URL.
Check 2nd and 3rd links by opening separately in your computer browser from here
2nd link
and
3rd link
.
2nd and 3rd links works fine in computer browser but when I try to load them in webView, it is not getting properly displayed.
in 2nd link, link is getting opened, but charts are not getting displayed while in 3rd link nothing is getting displayed at all.
3rd link also contains a chart made using 2nd link.
Is this problem occurring because of any limitation of android emulator?
Note that I TRIED WITH 4.0 EMULATOR, BUT I GET THE SAME OUTPUT...
ANY HELP WILL BE LIFE-SAVER !!!
Screen Shot
It appears the links are all using SVG. That is introduced in 3.2 as a quick google shows: https://www.google.com/search?q=android+svg+browser+support&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
This is not supported in 2.2, I would recommend using a simulator version of honeycomb, 3.2 or IceCreamSandwich.
One of the common reasons for the web page to appear crumpled in mobile is because they are designed for browser width and height and not mobile versions.Simple example: See the difference in facebook page on browser and on phone. It fits properly because it the mobile version ( m.facebook.com,m.google.com).If you can , then get the mobile version of the webpage.
Related
We have written a library that at some point gets a list of play.google.com app links.
We have always opened these links in a webview as we dont want the user to leave the current app unless they absolutely have to.
On regression we have noticed that a few devices (Samsung s3 4.1.2 / Note2 4.3) when trying to open the links will now show the message:
"This browser is no longer supported"
My guess is the store site is blocking based on user-agent or something (the same message gets shown if the link is opened in the internet and Chrome apps but not firefox).
Other devices are working fine though with the webview going to the correct page.
Does anyone know the criteria or any other information about what is being blocked? We would like to know the scope of devices effected before making changes.
We can change our links to market links and open the play store app but links coming from 3rd party sources will still be urls. While we can pass those links to another app rather than a webview, if the user chooses chrome/internet it still wont work. And as mentioned before we don't want to leave the app unless we have to.
Appreciate any information or links on this subject.
Thanks
I think it's probably the user-agent set on the webview. Try changing it:
webview.getSettings().setUserAgentString("user-agent-string");
Here you can get a link of a bunch of user-agents:
http://www.useragentstring.com/pages/useragentstring.php
I have created an app with PhoneGap 2.0.0 for Android on Eclipse but when I try run the application either on an emulator or my phone(signed application with no errors) it only shows up the static html pages. When I go to a page where I have used iFrame to load another webpage into it, it simply crashes.
This is the screen I get on the emulator and the same message is displayed on my phone as well(SE Xperia X10)
Screenshot of Emulator with The error :
After showing the message the app crashes instantly. Please let me know if I need to add any other permissions or add other settings or make any changes for this to function because the iFrame functions properly outside Phonegap on browser(including phone/desktop browsers)
At least some versions of PhoneGap use an iframe to communicate with the native layer.
I'm most familiar with the iOS version, where there are definite bugs in the browser's support of iframes ( https://issues.apache.org/jira/browse/CB-593 ). I don't know if there is a similar system level issue on android, but there could easily be some part of your code that doesn't expect that second iframe to be there.
I have installed facebook comments in my Joomla website but in android and iOS devices view is messed up, you can see only like 10% of comment box
I've tried searching possible solutions but I've found no luck. Another point is that if you set android browser to desktop mode, it works superb, but on simple mode, random thing appears.
To be clear pic is taken with android ICS 4.04 joomla 1.5 version. To preview site is jeffrivera.com
Facebook comments look fine on TechCrunch, so I suspect its your website's formatting that is making it look weird. Got a link to your site? Can you also paste the relevant HTML that contains the Facebook Comments plugin?
I have a full Jquery Mobile app the currently builds and looks fine in multiple browsers. I am currently working on getting the version ported using phonegap for android. As it loads up on the phone, it has several images that are loaded depending on localStorage (I originally used cookies but found some android devices aren't too friendly with that). Now, almost all of these triggers load images fine, except the last page. A certain set of images won't load, and I get the error (when running in an emulator Unknown chromium error: -6. Others on the page use the same process and have no problem, and all the images are referred to locally.
Why would this be happening and what can I do to fix this?
Turns out in the android browser, under phonegap, file names are case-sensitive. So it wasn't able to load things with capital letters and such.
I want to show wml page on android. I have designed small wml page. I am using Apache server to deploy the pages. But the page is not displaying. It is displaying just like xml page. I have added some line to mime.types which is given in following site
http://e-articles.info/e/a/title/How-To-Configure-Apache-or-IIS-Web-Server-to-Work-with-WML-~-Openwave-SDK/
Still it is not working on android emulator... any idea??
AFAIK, Android's edition of WebKit does not support WML. It is possible you can find some third-party WML app.
Im having a similar issue. I just finished our new website using WordPress. The site comes up but in XML format. The WordPress theme didn't load nor did any pictures. I used WordPress and a similar template to create another site and that is coming up fine. The only thing I can think of I did 301 redirects and maybe that is effecting the new site's display on Android devices.