Wednesday, 15 July 2015

android - Link doesn't go to Instagram app -



android - Link doesn't go to Instagram app -

i wanted have click instagram in application i'm making, thing is, when click on it, goes browser, wanted go instagram natgeotravel application, if there no instagram application in mobile, goes browser

here code

if (uri.contains("https://www.instagram.com/" )) { string natgeotravel = "natgeotravel"; string uri1 = "instagram://page/" + natgeotravel; intent intent = new intent(intent.action_view, uri.parse(uri1)); startactivity(intent); } else { string natgeotravel= "natgeotravel"; string uri1 = "https://www.instagram.com/" + natgeotravel; intent = new intent(intent.action_view, uri.parse(uri1)); startactivity(i); } } });

i tried ! @ origin of uri still didn't work, comes msg you must log out in order reset password , sorry, weren't able load link

help :)

android eclipse instagram

No comments:

Post a Comment