分享post后,twitter中是否有使用fabric in android的回调方法?
Is there any callback method in twitter using fabric in android after sharing the post?
我已将以下代码用于 post 推特中的推文,用于自定义登录按钮
File file = captureScreen();
TweetComposer.Builder builder = new TweetComposer.Builder(getActivity())
.text("just setting up my Fabric.")
.image(Uri.fromFile(file));
builder.show();
用图片分享post没问题,有没有成功的回调方法提示用户。
提前致谢。
使用下面的代码->
Intent i = new TweetComposer.Builder(this)
.text(content)
.url(new URL(url))
.createIntent();
startActivityForResult(i, Constants.REQUEST_CODE_TWITTER);
@Override
protected void onActivityResult(final int requestCode, final int resultCode, final Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_CODE_TWITTER) {
if (resultCode == RESULT_OK) {
// do your stuff
}
}
}
我已将以下代码用于 post 推特中的推文,用于自定义登录按钮
File file = captureScreen();
TweetComposer.Builder builder = new TweetComposer.Builder(getActivity())
.text("just setting up my Fabric.")
.image(Uri.fromFile(file));
builder.show();
用图片分享post没问题,有没有成功的回调方法提示用户。
提前致谢。
使用下面的代码->
Intent i = new TweetComposer.Builder(this)
.text(content)
.url(new URL(url))
.createIntent();
startActivityForResult(i, Constants.REQUEST_CODE_TWITTER);
@Override
protected void onActivityResult(final int requestCode, final int resultCode, final Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_CODE_TWITTER) {
if (resultCode == RESULT_OK) {
// do your stuff
}
}
}