jeudi 27 novembre 2014

Open URI / Webbrowser in Main Activity


Vote count:

0




I´ve try to open an URI http://ift.tt/1AVJm8A] within my Activity:



Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.example.com/" + scanContent));
startActivity(browserIntent);


Unfortunately, I get an error: "URI cannot be resolved"


Regardless of this error, the method would open the browser externally. How can I open the URI within the Activity ? Thank you



asked 40 secs ago







Open URI / Webbrowser in Main Activity

Aucun commentaire:

Enregistrer un commentaire