Tag Archives: browser

14,135 views

Open url with browser if button clicked Android example.

Button, setOnClickListener, Intent.ACTION_VIEW, startActivity Android example.   Button mIdButtonHome = (Button)findViewById(R.id.idButtonHome); mIdButtonHome.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent browserIntent = new Intent( Intent.ACTION_VIEW, Uri.parse("http://android.okhelp.cz/category/software/")); startActivity(browserIntent); } });

Posted in Android Examples Code | Tagged , , , , | Comments Off on Open url with browser if button clicked Android example.