I am trying to integrate Pinterest to my android application and to pin/share message with image.But I am not getting any way to do this. I downloaded the Pinterest SDK and added the jar file in my project.
Following is my code snnipet.
PinIt pinIt = new PinIt();
PinIt.setPartnerId("My ID");
pinIt.setUrl("http://placekitten.com/400/300");
pinIt.setImageUrl(m_cObjSocialTable.getPinterestImagePath());
pinIt.setDescription(pMessage);
pinIt.setListener(new PinItListener() {
@Override
public void onStart() {
super.onStart();
}
@Override
public void onComplete(boolean completed) {
super.onComplete(completed);
if (completed) {
System.out.println("Pinit complete");
}
}
@Override
public void onException(Exception e) {
super.onException(e);
System.out.println("Pinit Exception");
}
});
pinIt.doPinIt(this);
But it is not posting, in onComplete() we are getting false. Please help me on it
Thanks & Regards Tiru
UPDATE: With the actual PinIt SDK, the setDescription method is working correctly.
Unfortunately, there is not way. I mean, it should work with setDescription() but is not. That seems to be a bug on the pinterest SDK.