1

Passing String to Fragment

view story
linux-howto

http://stackoverflow.com – I have an EditText view in my MainActivity that the user can input a url. This MainActivity also contains a fragment which will hold a WebView. I have it set up so that when the fragment is displayed the url will load in the WebView. However I don't know how I can pass the String to the Fragment? Below is the Main Activity code: public class MainActivity extends FragmentActivity { Button goBtn; EditText urlInput; String url; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); goBtn = (Butt (HowTos)