Embed a mobile emulator on a website?

Basically, I wonder if it’s possible to create functionality similar to this site: http://www.howtogomo.com/en/#gomo-meter

I want to add some kind of feature on my website that will allow visitors to check how their websites look on a mobile device such as iPhone or Android.

+4
source share
2 answers

You can run the android sdk emulator from an Android server, and then use the android debug bridge to run the following command

adb shell

am start -a android.intent.action.VIEW -d /fooobar.com / ...

then follow the following blog http://android.amberfog.com/?p=168 to take a screenshot.

0
source

No. This site appears to display the server side website and then sends the image of this browser.

If you are only interested in Android and iPhone (and similar smartphones with webkit-based browsers), you can try a similar approach to http://iphonetester.com . This uses a frame built-in to simulate the size (in pixels) of the iPhone. Please note that although these browsers can be based on webkit, this does not mean that their implementation is the same - see http://www.quirksmode.org/webkit.html for dispersion different webkit based browsers.

This will not work if you want to deviate from other non-website based browsers.

0
source

Source: https://habr.com/ru/post/1382559/


All Articles