Android – a link to the Vimeo application, but
•
Android
I asked what code would send the link from the application I was making to the Vimeo application; It will open the Vimeo application, but will not open the video specified in the link. Does anyone know@ H_ 403_ 1@
@H_ 403_ 1@
vimeo.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
try{
Intent browserIntent = null;
PackageManager pmi = getPackageManager();
browserIntent = pmi.getLaunchIntentForPackage("com.vimeo.android.videoapp");
browserIntent.setAction(Intent.ACTION_VIEW);
browserIntent.setData(Uri.parse("http://player.vimeo.com/video/83178705"));
startActivity(browserIntent);
}
catch(Exception e){
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://player.vimeo.com/video/83178705"));
startActivity(browserIntent);
}
}
});
Solution: @ h_ 403_ 1@
Through the following operation, it will reset all your application preferences @ H_ 403_ 1@
Go to settings - > apps, select reset app preferences from the menu, and then confirm reset app. @ h_ 403_ 1@
Then select it in settings - > Application and press the clear default button @ h in the Vimeo application_ 403_ 1@
Now try to open the video link (Vimeo link) again. Now, it will ask you to select the application to use. Then select your Vimeo application as the default application @ H_ 403_ 1@
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码