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 6104789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:52:55+00:00 2026-05-23T13:52:55+00:00

I want the user to input their search query into a search widget and

  • 0

I want the user to input their search query into a search widget and then have the search results displayed to them and then when they click on a url that they want, I need to be able to save that url for use in other parts of my application.

Is this possible, and if not what are some of the restrictions preventing this?


EDIT — I figured I’d add the code for my activity that has the webview.

public class State extends Activity {
     @Override
     public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final boolean customTitleSupport = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
        setContentView(R.layout.state);

        if( customTitleSupport ){
            getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title );
        }

        final TextView myTitleText = (TextView)findViewById(R.id.my_title);
        if( myTitleText != null ){
            myTitleText.setText(R.string.app_name);
        }

        WebView stateBrowser = (WebView)findViewById(R.id.state_search);
        stateBrowser.loadUrl("http://www.google.com/");
    }
}
  • 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-05-23T13:52:56+00:00Added an answer on May 23, 2026 at 1:52 pm

    you need to use something called WebViewClient

    public class WebViewTestActivity extends Activity implements
            View.OnClickListener {
        /** Called when the activity is first created. */
        Button btn = null;
        WebView myWebView =null;
        EditText et =null;
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
            btn = (Button) findViewById(R.id.button1);
            btn.setOnClickListener(this);
            et = (EditText) findViewById(R.id.editText1);
            myWebView = (WebView) findViewById(R.id.webview);
    // WebViewClient in use.
            myWebView.setWebViewClient(new WebViewClient(){
                @Override
                public void onPageFinished(WebView view, String url) {
                    super.onPageFinished(view, url);
                    et.setText(url);
                }
            });
        }
    
        @Override
        public void onClick(View source) {
            if (btn.getText().equals("Go!")) {
                myWebView.loadUrl(et.getText().toString());
            }
        }
    
    }
    

    `

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

Sidebar

Related Questions

I have an unsorted UL list displaying search results. I want the user to
I have an an ajax request that looks like this, $('input.fakecheck').click(function(){ alert(deleteing....); $.ajax({ url:/search,
I'm unsure what the user will enter but I want to break their input
I want to let the user input their own town/city and country, so I
Say I want to have a simple web app that takes some user input,
I want to get user input for my OpenGL ES 2.0 application, but there
i want to use user input in jquery dialog input box to be used
I want to get user input in one page, store that in a php
I want to read user input from STDIN and process the preliminary input while
want to ask user to input something but not want to wait forever. There

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.