0

我需要将 Flickr 与 android 集成。我完成了身份验证。我需要将图像上传到 flickr,但我不知道如何做同样的事情。我参考文件:http ://www.flickr.com/services/api/upload.api.html相同。有谁能够帮我

4

1 回答 1

3

在此处输入图像描述

//change your key and secreat key
private static final String API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; //$NON-NLS-1$
public static final String API_SEC = "xxxxxxxxxxxxx"; //$NON-NLS-1$

View.OnClickListener mFlickrClickListener = new View.OnClickListener() {

    @Override
    public void onClick(View v) {
        if (fileUri == null) {
            Toast.makeText(getApplicationContext(), "Please pick photo",
                    Toast.LENGTH_SHORT).show();

            return;
        }

        Intent intent = new Intent(getApplicationContext(),
                FlickrjActivity.class);
        intent.putExtra("flickImagePath", fileUri.getAbsolutePath());
        startActivity(intent);
    }
};
于 2013-03-22T09:27:03.883 回答