This code takes me to the browser, I have the vimeo application, how can it go to the vimeo application?
vimeo1.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://player.vimeo.com/video/83178705?"));
startActivity(browserIntent);
}
});
EDITED
vimeo1.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
try{
Intent browserIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://player.vimeo.com/video/83178705"));
browserIntent.setPackage("com.vimeo.android.videoapp");
startActivity(browserIntent);
}
catch(Exception e){
// App is not Installed
//Navigate to Play Store or display message
}
}
});