Force tablet browser to use mobile sites - android

In Android, I need to test my app against a variety of websites. My app needs to view the site's mobile content and not its full desktop content. In Google Chrome for the desktop you can set the user-agent to fake the browser to be seen as a mobile device. But the browser in Android may indicate to the site that it's a desktop size. Is there some way to force Android's browser to retrieve only mobile content?

Is this what you need?
Are you using a Webview?
http://developer.android.com/reference/android/webkit/WebSettings.html#setUserAgentString(java.lang.String)

Related

embedded google sheet not editable on mobile devices

I have a google sheet which I want to be editable from my web app (embedded using an iframe) and I have set the correct permissions.
The code is like this
<iframe width="1300" height="800" seamless frameborder="0" scrolling="no" src="https://docs.google.com/spreadsheets/d/10V-_rutEKaQ19yVmMFz2Fs4f4rdibfKIivLIwTBVp6g/edit?usp=sharing"></iframe>
While everything is OK on my PC and Linux laptop, for some reason editing is not possible on mobile devices (both Android and iOS).
The only way I can edit the sheet on mobile devices is by opening it directly with the google sheets app.
Any ideas?
It works only if I specifically in mobile Chrome request desktop version of the site with embedded document. After that desktop version of site is reloaded and I am able to edit document inside browser.
I tried to find a way to specify in worpdress explicitly to always load "desktop version only" on mobile, but without luck.

How to set web app always to load desktop version?

I'v developed web application that is not full responsive for mobile devices. So is there any possibility to set my app that always loads like desktop version?

Testing a Web application with an emulator

i am currently a mobile web application with jquery mobile. Is there a way of testing the application with an emulator that works for ipad, ios, blackberry, android, symbian and other major os on my local machine without connecting to the internet or using a real phone or hardware.
You may be interested in the ripple project. Currently its a chrome extension for emulating different devices. Sure it has shortcomings but it can be very useful for certain situations.
http://ripple.incubator.apache.org/
To avoid connecting to the internet: run your server on localhost
To avoid using actual hardware, use the emulators that come with the SDKs for the platforms you're interested in. But at first, just use the computer browser; I'd recommend Safari, as it is based on WebKit, like iOS and Android use.
One thing I tend to do is use FireFox with user agent switcher plugin. This allows you to configure a series of user-agent identifiers in your browser to 'fool' your jQuery mobile website into thinking it's dealing with particular devices.
if all you want is to load a mobile url and see how it looks on different phones you could try this site
http://www.synthphone.com/

Android browsers supports webkit css?

I want my website to be able to display some webkit based css properties.
Do android browsers support web kit?
I mean all browser available for android like basic browser and oter browser available in market
Do android browsers support web kit?
Not all of them. For example, Firefox for the desktop does not use WebKit; Firefox Mobile does not use WebKit.

How to test android based mobile pages on web browsers with the help of plugins?

I want to test android mobile based pages on browsers like chrome or mozilla. Is there any plugins available so I can directly test them on these browsers without running them on device or emulator?
I created this chrome extension to help test. It's not a perfect replacement for actual device testing, but it's a start.
https://chrome.google.com/webstore/detail/mobile-tester/elmekokodcohlommfikpmojheggnbelo?utm_source=chrome-ntp-icon
This site shows you one possible way to do it.
http://techie-buzz.com/tips-and-tricks/emulate-mobile-browser-in-firefox.html
Once you have your user agent set you can just resize the window to be phone screen sized.
On Mozilla Firefox, you can use Selenium IDE to emulate clicks, typing and other actions. Personally, I have never tested it for mobile web applications.
http://seleniumhq.org/

Categories

Resources