现在,我正在尝试使用Android PIN IT IT SDK将PINIT与我的应用集成在一起,并且它可以按预期运行。我现在可以固定图像。虽然很容易。但是如何从应用程序中固定视频?下面的URL在浏览器中打开。它可以正常工作。但是我想从我的应用程序中执行此操作

http://www.pinterest.com/pin/create/button/?media=http://images.frandroid.com/wp-content/uploads/2012/11/Test-LG-Nexus-4-Gauche.png&url=http://vimeo.com/52397255&is_video=true&title=Jingit+Intro&description=Nexus%204

就像我使用以下代码固定图像的方式一样

PinItButton pinIt = (PinItButton) findViewById(R.id.pin_it);
pinIt.setImageUrl("http://placekitten.com/400/300");
pinIt.setUrl("http://placekitten.com"); // optional
pinIt.setDescription("A place kitten!"); // optional
有帮助吗?

解决方案

尝试这个

PinItButton pinIt = (PinItButton) findViewById(R.id.pin_it);
pinIt.setImageUrl("http://images.frandroid.com/wp-content/uploads/2012/11/Test-LG-Nexus-4-Gauche.png");
pinIt.setUrl("http://vimeo.com/52397255");
pinIt.setDescription("Nexus 4");
pinIt.doPinIt(this);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top