Home  >  Forum  >  Android
Post New Query

How to use Uri.parse in Android



Asked on August 22, 2015
How to use Uri.parse in Android


Replied on August 26, 2015
Uri.parse is used for different purpose.

1. Make Phone Call using Implicit Intent

Intent implicit = new Intent(Intent.ACTION_CALL, Uri.parse("tel:9999887766"));
startActivity(implicit);

2. Open URL in Browser using Implicit Intent

Intent implicit = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.concretepage.com"));
startActivity(implicit);



Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us