我正在尝试使用Android Pin It SDK将PinIt与我的应用程序集成,但它给了我错误

时间:2015-04-29 12:03:20

标签: android pinterest

第一次我的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?

0 个答案:

没有答案
相关问题