上传图片在Flickr与Android [英] Upload Image on Flickr with android
本文介绍了上传图片在Flickr与Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要到Flickr与Android集成。我做了与authentication.i需要上传图片到Flickr,但我不知道该怎么做一样。 我指的文档: http://www.flickr.com/services/api/upload .api.html ,在相同的。 任何人可以帮助我
i need to integrate Flickr with android. I am done with authentication.i need to upload image to flickr but i am unaware how to do same. i refer document : http://www.flickr.com/services/api/upload.api.html for the same. Can anybody help me
推荐答案
//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);
}
};
这篇关于上传图片在Flickr与Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文