1

How to launch vimeo intent from android application. I tired using the following link....

http://player.vimeo.com/video/VIDEO_ID

But it is getting crashed from Vimeo application with the following error :

11-28 17:46:12.076: E/Vimeo(4144): **uncaught exception**
11-28 17:46:12.076: E/Vimeo(4144): **java.lang.ClassNotFoundException: com.vimeo.android.lib.ui.player.LaunchFullScreenVideoPlayerFullScreenVideoPlayer**
11-28 17:46:12.076: E/Vimeo(4144):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
11-28 17:46:12.076: E/Vimeo(4144):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
11-28 17:46:12.076: E/Vimeo(4144):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
11-28 17:46:12.076: E/Vimeo(4144):  at android.app.Instrumentation.newActivity(Instrumentation.java:1053)
11-28 17:46:12.076: E/Vimeo(4144):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
11-28 17:46:12.076: E/Vimeo(4144):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
11-28 17:46:12.076: E/Vimeo(4144):  at android.app.ActivityThread.access$600(ActivityThread.java:130)
11-28 17:46:12.076: E/Vimeo(4144):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
11-28 17:46:12.076: E/Vimeo(4144):  at android.os.Handler.dispatchMessage(Handler.java:99)
11-28 17:46:12.076: E/Vimeo(4144):  at android.os.Looper.loop(Looper.java:137)
11-28 17:46:12.076: E/Vimeo(4144):  at android.app.ActivityThread.main(ActivityThread.java:4745)
11-28 17:46:12.076: E/Vimeo(4144):  at java.lang.reflect.Method.invokeNative(Native Method)
11-28 17:46:12.076: E/Vimeo(4144):  at java.lang.reflect.Method.invoke(Method.java:511)
11-28 17:46:12.076: E/Vimeo(4144):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
11-28 17:46:12.076: E/Vimeo(4144):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
11-28 17:46:12.076: E/Vimeo(4144):  at dalvik.system.NativeStart.main(Native Method)

Please suggest me... Thanks in advance... :)

4

2 回答 2

1

这个问题超级老了,基于最近更新的 Vimeo Android App(2015 年 12 月重新推出)添加了新答案。您现在可以深度链接到官方 Vimeo Android 应用程序。您可以手动执行此操作,也可以使用vimeo-deeplink库。即使您不使用该库,也请查看其 README 文件以获取有关 Vimeo 应用程序深度链接 API 的描述。

您可能还对Vimeo Android SDK感兴趣。

注意:我在 Vimeo 工作

于 2016-03-28T20:26:23.933 回答
0

试试这个,它将导航到 Vimeo 应用程序。

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){
   // App is not Installed
   //Navigate to Play Store or display message
   Toast.makeText(MainActivity.this, "In Catch Block", Toast.LENGTH_SHORT).show();
}
于 2016-03-04T06:16:09.230 回答