• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps WebView in an app

Hi,

I've added a WebView to an app and need to pass it a url which contains a passThrough parameter so the url it is directing to effectively logs automatically into the target site. However when it opens the browser this value doesn't seem to get sent across?

Anyone encountered this before or have any ideas about why it might not be working?

Thanks
 
Hi,

I've added a WebView to an app and need to pass it a url which contains a passThrough parameter so the url it is directing to effectively logs automatically into the target site. However when it opens the browser this value doesn't seem to get sent across?

Anyone encountered this before or have any ideas about why it might not be working?

Thanks
first make button in mail.xml
and assing button id "button1"
and then write this code in first activity of ur project
below extend activity


Button b1;
int request_code=1;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

//--web browser button
b1=(Button) findViewById(R.id.button1);
b1.setOnClickListener(new OnClickListener() {

public void onClick(View arg0) {
// TODO Auto-generated method stub

Intent i = new
Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://www.google.com") );
startActivity(i);


}
});
 
Back
Top Bottom