Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8236153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:03:36+00:00 2026-06-07T19:03:36+00:00

I am using the web view commands to display a webpage. My question is,

  • 0

I am using the web view commands to display a webpage. My question is, “Is there a command to actually take only a box of the webpage with a declared size zoom too it and lock the screen around it?”

Basically I’m trying to remove a server status section of the webpage and display the zoomed portion on the phone on click. Below is my web view file calling to Google, but that will change to the rel site in the future.

If possible I would like to compress this box to fit to the size of the phone screen, landscape or otherwise.

EDIT: I have done a bit of research and reading. I’m going to try to work with Jsoup. Unfortunately after reading documentation and examples of webpage “scraping” I am unable to figure out how to load webpage HTML as document -> search document for target code -> display target code on layout.

As you can see I started to try to do this in webview, and I may in the future try to do the out to layout through webview.

Any help understanding this better would b appreciated!

EDIT 2: Added some more scrape code, this seems like it could do what I want but I’m unclear on how to reference the variables in the HTML code to display.

Here is the HTML that I am working with, followed by the code I’m using:

<div class="page-header">
    <h2 class="header ">                Server Status
</h2>

            <div class="desc">
                This page lists all available Diablo III game and auction house servers, as well as the status of each – either available or undergoing maintenance.
            </div>

    <span class="clear"><!-- --></span>
        </div>



            <div class="server-status">
    <div class="db-directory">
        <div class="db-directory-inner">
                    <div class="column column-1">
                        <div class="box">
                            <h3 class="category">Americas</h3>
                                <div class="server-list">
    <div class="server">
        <div class="status-icon up" data-tooltip="Available">
        </div>
        <div class="server-name">
                Game Server
        </div>
    <span class="clear"><!-- --></span>
    </div>
                                </div>
                                    <h4 class="subcategory">Auction House</h4>
                                <div class="server-list">
    <div class="server">
        <div class="status-icon up" data-tooltip="Available">
        </div>
        <div class="server-name">
                Gold
        </div>
    <span class="clear"><!-- --></span>
    </div>
    <div class="server alt">
        <div class="status-icon up" data-tooltip="Available">
        </div>
        <div class="server-name">
                Hardcore
        </div>
    <span class="clear"><!-- --></span>
    </div>
    <div class="server">
        <div class="status-icon up" data-tooltip="Available">
        </div>
        <div class="server-name">
                USD
        </div>
    <span class="clear"><!-- --></span>
    </div>
    <div class="server alt">
        <div class="status-icon up" data-tooltip="Available">
        </div>
        <div class="server-name">
                AUD
        </div>
    <span class="clear"><!-- --></span>
    </div>
    <div class="server">
        <div class="status-icon up" data-tooltip="Available">
        </div>
        <div class="server-name">
                MXN
        </div>
    <span class="clear"><!-- --></span>
    </div>
    <div class="server alt">
        <div class="status-icon down" data-tooltip="Maintenance">
        </div>
        <div class="server-name">
                BRL
        </div>
    <span class="clear"><!-- --></span>
    </div>
    <div class="server">
        <div class="status-icon down" data-tooltip="Maintenance">
        </div>
        <div class="server-name">
                CLP
        </div>
    <span class="clear"><!-- --></span>
    </div>
    <div class="server alt">
        <div class="status-icon down" data-tooltip="Maintenance">
        </div>
        <div class="server-name">
                ARS
        </div>
    <span class="clear"><!-- --></span>
    </div>


    package d3.link;

import java.io.File;
import java.io.IOException;
import d3.link.R;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import org.jsoup.Connection;
import org.jsoup.Connection.Response;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import android.widget.TextView;


public class ServerStatusActivity extends Activity 
{

    //WebView webView;
    public static void main(String[] args) throws Exception
    {
        String url = "http://us.battle.net/d3/en/status";
        Document doc = Jsoup.connect(url).get();

        String serverstatus = Document.select().text();
        System.out.println("Server Status: " + serverstatus);

        Elements answerers = Document.select();
            for (Element answerer : answerers) 
            {
                System.out.println("Answerer: " + answerer.text());
            }

    }

    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ss);



        //webView = (WebView) findViewById(R.id.webView1);
        //webView.getSettings().setJavaScriptEnabled(true);
        //webView.getSettings().setSupportZoom(false);
        //webView.getSettings().setBuiltInZoomControls(false);
        //webView.getSettings().setLoadWithOverviewMode(true);
        //webView.getSettings().setUseWideViewPort(true);
        //webView.loadUrl("http://us.battle.net/d3/en/status");

    }


}

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:03:38+00:00Added an answer on June 7, 2026 at 7:03 pm

    Use XPath to select the server status HTML (//div[@class=”server-status”]) and then just render this part.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to load a web view using loadUrl that has query params in
I am using a webview and on that web view i have a image.
I did one sample application using WebView, in that web view the URL comes
I have successfully been using the eclipse Indigo internal browser to view my web
I have a web application where I am using asp.net tree view control to
I load a web page by using WebView in my app and there are
I've been looking at using a WebView to display an HTML5 webpage, where the
I want to view the HTML source of a web page, I've using ICSharpCode.TextEditor,
I am using the web view for showing html pages, and I want to
I have an MVC3 C#.NET web app and need to call a view using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.