Home  >  Forum  >  Android
Post New Query

How to use Uri.parse in Android


joined on
March 27,2014
Asked on August 22,2015
How to use Uri.parse in Android
joined on
October 10,2013
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








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us