Simulate Android Webview on Firefox PC?

As part of my software development work (for Android), I need to check the contents of numerous HTML pages when viewing through Android WebView.

So far, I have been able to accomplish this by dumping the HTML content into a file in /data/data/<package-name>/files/ , and then using adb pull copy it to a PC for a more convenient and convenient inspection (large screen and keyboard) .

However, I would like to speed up the process by dumping this content into a file directly from my Firefox browser on my PC. I heard about the so-called " User Agent Switchers " add-ons that can trick a remote site into thinking that it is exchanging data with another type of browser, but can it really work when you need to emulate not only the agent string, but also the screen size?

Your scientific tips and advice will be very pleased.

+4
source share
1 answer

1) Use the user agent switch.

2) Get a mobile profile addon .

3) Resize the window to emulate resizing the screen. A quick Google search finds an addon that can handle a given window resizing: https://addons.mozilla.org/en-US/firefox/addon/window-resizer/ (If this does not happen, look at the addon's site - there are several, who can do this).

+2
source

All Articles