pinterest - I'm trying to integrate PinIt with my app using Android Pin It SDK but it gives me Error like -
first time android app pin wenever trying go pin second time,it appears "pin failed uploaded try again"i tryong resolve still appears.
// pin pinitbutton.setdebugmode(true); pinitbutton.setpartnerid(client_id); pinitbutton pinit = (pinitbutton) findviewbyid(r.id.pin_bt); pinit.setimageresource(r.drawable.icon_pinterest); pinit.setimageurl("http://images.frandroid.com/wp-content/uploads/2012/11/test-lg-nexus-4-gauche.png"); pinit.seturl("http://images.frandroid.com/wp-content/uploads/2012/11/test-lg-nexus-4-gauche.png"); pinit.setdescription(offerdata.getoffer_description()); pinit.setlistener(_listener); pinitlistener _listener = new pinitlistener() { @override public void onstart() { super.onstart(); log.i(app_tag, "pinitlistener.onstart"); statistics(); } @override public void oncomplete(boolean completed) { super.oncomplete(completed); if(completed) log.i(app_tag, "pinitlistener.oncomplete"); else log.e(app_tag, "pinitlistener.notcomplete"); } @override public void onexception(exception e) { super.onexception(e); e.printstacktrace(); log.i(app_tag, "pinitlistener.onexception"); } }; know wrong code?
Comments
Post a Comment