Opening a website activity in auto adjustable width to suit the device

jogindersingh1234's Avatar

jogindersingh1234

17 Apr, 2012 09:22 AM

In the HTML Archive activity there is one following note.

NOTE: For best results, we recommend adding the following HTML 'meta' tag to the document 'head' of each of your HTML files:

Can we do something similar with website activity so that the website opens in a screen adjusted way?

  1. Support Staff 1 Posted by Colin on 17 Apr, 2012 02:06 PM

    Colin's Avatar

    Certainly. The website activity and Android attempt to scale non-mobile designed sites as best they can. Usually it looks very good. However, some sites are very mobile-unfriendly - the web designer of the site could add mobile meta-tags as you mentioned, or make a very mobile friendly version of their site. Unfortunately, that's out of our control... But you can certainly suggest it to the site owner!

    Good luck,
    Colin

  2. Colin closed this discussion on 17 Apr, 2012 02:06 PM.

  3. jogindersingh1234 re-opened this discussion on 17 Apr, 2012 05:19 PM

  4. 2 Posted by jogindersingh12... on 17 Apr, 2012 05:19 PM

    jogindersingh1234's Avatar

    Thanks for your quick reply. Just one quick question. Can we append some script to the website link so that it opens in screen adjusted manner. Currently, a website in which i am interested opens up in zoomed out fashion on my android device. Once I double tap the screen, it looks file. However, I dont want users of my application to do the same. I want it to open up correctly in first go.

  5. 3 Posted by Mark Mruss on 17 Apr, 2012 05:47 PM

    Mark Mruss's Avatar

    Hi,

    You Should take a look at this article: http://designbycode.tumblr.com/post/1127120282/pixel-perfect-androi...

    You may want to add the following to your websites HTML code:

    <meta name="viewport"
    content="user-scalable=no,
    width=device-width,
    target-densitydpi=device-dpi">
    

    If you are using someone elses website, as Darryl mentioned, then I would see if they have a mobile version of their site available or if they could add the meta tags.

    As far as a script to intercept the loading, I'm sorry but I do not believe that this is possible.

    Best of luck,

    Mark Mruss

  6. 4 Posted by jogindersingh12... on 17 Apr, 2012 06:27 PM

    jogindersingh1234's Avatar

    Thanks Mark

  7. Colin closed this discussion on 17 Apr, 2012 10:20 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

20 Oct, 2014 01:49 PM
20 Oct, 2014 01:22 PM
20 Oct, 2014 12:46 PM
20 Oct, 2014 12:41 PM
20 Oct, 2014 12:20 PM