Yeah I'm using an alert Dialog
This is my listView click listener in the dialog at the moment
Using java Syntax Highlighting
lv.setOnItemClickListener(new OnItemClickListener()
{
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
Object o = lv.getItemAtPosition(position);
ClassWithUrlParameter fullObject = (ClassWithUrlParameter)o;
Intent i = new Intent(HomeMenu.this, WebView.class);
i.putExtra("url", fullObject.getUrl());
startActivity(i);
}
});
Parsed in 0.032 seconds, using
GeSHi 1.0.8.4
then in the WebView.class I have
Using java Syntax Highlighting
String url = getIntent().getStringExtra("url");
webview.loadUrl(url);
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
and my button to start the webview looks like this
Using java Syntax Highlighting
webviewbutton.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent webViewIntent = new Intent(HomeMenu.this, WebView.class);
startActivity(webViewIntent);
}});
Parsed in 0.033 seconds, using
GeSHi 1.0.8.4
I'm not sure exactly what your saying with the startActvity etc, I've never touched on that. Could u show me with my code please?