Back to project page AndroidNoobCode.
The source code is released under:
GNU General Public License
If you think the Android project AndroidNoobCode listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package course.labs.intentslab.mybrowser; //from w w w .j av a 2 s .c om 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); } }