WebView/Browser Viewport Size

by Miguel Paraz » Fri, 06 Mar 2009 23:56:19 GMT

Sponsored Links
Don't you think it would be useful for the WebView or the browser to
set the viewport size? This is to show the entire html content on a
single page, and disable scrolling.

This could be done as a setting on the WebView object, or through
Javascript or meta tags in the browser app (as it is in the iPhone).


Other Threads

1. Apache STDCXX library


Has anyone ported Apache C++ Standard Library (STDCXX) onto Android?



2. HttpConnection Intermittent Poblems


My app uses a simple HttpConnection to download and parse some XML
that I host. The important code is as follows:-

                URL url = new URL(urlStr);
                URLConnection connection = url.openConnection();
                HttpURLConnection httpConnection = (HttpURLConnection)
                int responseCode = httpConnection.getResponseCode();

                if(responseCode == HttpURLConnection.HTTP_OK) {
                        // do useful stuff here
                else {
                                               // display connection
failed error message here

This works all the time on my G1 (based in UK), but a number of my
users are complaing they always see the connection failed message.
This is even though they have 3G connections and can browse the
internet, use google maps etc.

Can you see that I'm doing something obviously wrong?

Is there a more robust way to connect?

Any advice greatly appreciated,



3. Update G1

4. Android OpenCore question.....

5. MediaPlayer not running - just blank screen

6. Market "view" option disappears

7. Finance for Android - A Goo gle Developer鈥檚 Note