I have a link to some page (Instagram), when I click on the link, it takes me to the link and the username to that like in the mobile browser, what should I type in order to work it in Instagram application in the mobile? If it doesn't exist, it will go to play.google/instagram in the play store
This is the link but it's not what I want
blah.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.instagram.com/blahhhh"));
startActivity(browserIntent);
}
});
try {
Intent LaunchIntent =
getPackageManager().getLaunchIntentForPackage("com.instagram.android");
startActivity(LaunchIntent);
//Here you can add more information, such as the specific profile that you want to launch, in Intent format
}
catch (Exception myIntent) {
//TODO Auto-generated catch block
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.instagram.android"));
startActivity(browserIntent);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.