第一次我的Android应用程序引脚,但无论何时我试图去第二次引脚,它出现“Pin无法上传再试一次”我试图解决它但仍然出现。
// pin it
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");
}
};
Does anyone know what is wrong with this code?