Android Open Source - Labs-HandHeld-Systems My Browser Activity






From Project

Back to project page Labs-HandHeld-Systems.

License

The source code is released under:

Apache License

If you think the Android project Labs-HandHeld-Systems 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 v a2s.c o  m*/
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class MyBrowserActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.my_browser_activity);

    // 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(R.id.url);
    textView.setText(url);
  }

}




Java Source Code List

course.labs.activitylab.ActivityOne.java
course.labs.activitylab.ActivityTwo.java
course.labs.dangerousapp.DangerousActivity.java
course.labs.fragmentslab.FeedFragmentData.java
course.labs.fragmentslab.FeedFragment.java
course.labs.fragmentslab.FriendsFragment.java
course.labs.fragmentslab.MainActivity.java
course.labs.intentslab.ActivityLoaderActivity.java
course.labs.intentslab.ExplicitlyLoadedActivity.java
course.labs.intentslab.mybrowser.MyBrowserActivity.java
course.labs.permissionslab.ActivityLoaderActivity.java
course.labs.permissionslab.BookmarksActivity.java
course.labs.permissionslab.GoToDangerousActivity.java
course.labs.todomanager.AddToDoActivity.java
course.labs.todomanager.ToDoItem.java
course.labs.todomanager.ToDoListAdapter.java
course.labs.todomanager.ToDoManagerActivity.java