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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:15:47+00:00 2026-06-13T18:15:47+00:00

private Button btnLogin; private EditText txtPub; private EditText txtPriv; final Context context = this;

  • 0
private Button btnLogin;
private EditText txtPub;
private EditText txtPriv;
final Context context = this;


@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.loginfirst);

    btnLogin = (Button)findViewById(R.id.btnEnter);
    btnLogin.setOnClickListener(this);
    txtPub = (EditText)findViewById(R.id.textPublic);
    txtPriv = (EditText)findViewById(R.id.textPrivate);
}



@Override
public void onClick(View arg0) {
    Intent intent = new Intent(context, WebViewActivity.class);
    startActivity(intent);

}

in WebViewActivity.class

private WebView webView;

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

    webView = (WebView) findViewById(R.id.web_view);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.loadUrl("http://url.com/txtpub+txtprive");

}

how can I get the value of edittxt txtpub and txtpriv and put in webviewactivity class in the url above? I wanted to put the value of txtpub and txtpriv in the url. help me please

  • 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-13T18:15:49+00:00Added an answer on June 13, 2026 at 6:15 pm
    private Button btnLogin;
    private EditText txtPub;
    private EditText txtPriv;
    final Context context = this;
    String a;
    String b;
    
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.loginfirst);
    
    btnLogin = (Button)findViewById(R.id.btnEnter);
    btnLogin.setOnClickListener(this);
    txtPub = (EditText)findViewById(R.id.textPublic);
    txtPriv = (EditText)findViewById(R.id.textPrivate);
    
    a=txtPub.getText();
    b=txtPriv.getText();
    }
    
    
    
    @Override
    public void onClick(View arg0) {
    Intent intent = new Intent(context, WebViewActivity.class);
    Bundle bundleObj = new Bundle();
    
            bundleObj.putString("first", a);
            bundleObj.putString("sec", b);
    
            intent.putExtras(bundleObj);
    startActivity(intent);
    
    }
    

    in WebViewActivity.class

    private WebView webView;
    
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.webview);
    Bundle extras = getIntent().getExtras();
    String a=extras.getString("first");
    String b=extras.getString("sec");
    
    webView = (WebView) findViewById(R.id.web_view);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.loadUrl("http://url.com/" + a + b);
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Main Activity: private Button btnSubmit; private DataSource mDataSource; private Context mContext; @Override public void
click the button to call this method: private void goRegister(final boolean isUsername) { new
Here is my code: private Button.OnClickListener gotologinpage3 = new Button.OnClickListener() { public void onClick(View
Got this line of code here but its not working. private void Button_Click(object sender,
private void btnSend_Click(object sender, RoutedEventArgs e) { Button obj=(Button)sender; obj.Content=Cancel; SendImage send = new
I have an event fired when some button is being clicked private void set_Opacity(object
I have the following code behind a button in Visual Studio 2010 private void
Here's my code: public class MyActivity extends Activity implements View.OnClickListener { private Button mHorizontalButton;
package com.android.SMStest; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.telephony.SmsManager; import android.view.View; import android.widget.Button;
public class Database extends Activity { private TextView tvInfo = (TextView)findViewById(R.id.tvInfo); private Button btnInfo

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.