As part of my software development job (for Android), I need to inspect the content of numerous HTML pages when viewed via Android's WebView.
So far, I have been able to accomplish that by dumping the HTML content to a file in /data/data/<package-name>/files/
, then using adb pull
to copy it to the PC for easier and more comfortable inspection (larger sc开发者_JAVA百科reen and a keyboard).
I would like, however, to accelerate the process by dumping that content to a file directly from my Firefox browser on my PC. I have heard of so called "User Agent Switchers" add-ons that can fool the remote site to be thinking it communicates with a different type of browser, but can this really work when not only an agent string need to be emulated but also the screen size?
Your learned advice and tips would very much appreciated.
1) Use the user agent switcher.
2) Get the mobile profile addon.
3) Resize the window to emulate screen size changes. A quick Google search finds an addon that can handle preset window resizing: https://addons.mozilla.org/en-US/firefox/addon/window-resizer/ (If this won't do, look around the addon site- there are multiple that can do this).
精彩评论