Android Open Source - coursera-android-001 My Browser Activity

From Project

Back to project page coursera-android-001.


The source code is released under:

MIT License

If you think the Android project coursera-android-001 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package course.labs.intentslab.mybrowser;
// w ww  . j a va  2  s  .  c  o m
import android.os.Bundle;
import android.widget.TextView;

public class MyBrowserActivity extends Activity {

  protected void onCreate(Bundle savedInstanceState) {

    // Save the String passed with the intent
    String url = getIntent().getDataString();

    if (null == url)
      url = "No Data Provided";

    // Get a reference to the TextView and set the text it to the String
    TextView textView = (TextView) findViewById(;


Java Source Code List