android - Open URI / Webbrowser in Main Activity -


i´ve tried open uri www.example.com/[scancontent] within activity:

intent browserintent = new intent(intent.action_view, uri.parse("http://www.example.com/" + scancontent)); startactivity(browserintent); 

unfortunately, got error: "uri cannot resolved"

regardless of error, method open browser externally. how can open uri within activity ? thank you

do this

string url = "http://www.example.com"; intent = new intent(intent.action_view); i.setdata(uri.parse(url)); startactivity(i); 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -