项目:goldcoin-android
文件:RequestCoinsFragment.java
private void updateShareIntent()
{
// update share intent
final IntentBuilder builder = IntentBuilder.from(activity);
builder.setText(determineRequeststr());
builder.setType("text/plain");
builder.setChooserTitle(R.string.request_coins_share_dialog_title);
try {
shareActionProvider.setShareIntent(builder.getIntent());
} catch (NullPointerException e) {
// Not really sure why this is happening.
// Bug #5
Log.e("Litecoin","NullPointerException when trying to start request coins intent.");
Toast.makeText(activity.getApplicationContext(),"Failed to start Request Coins activity",Toast.LENGTH_SHORT).show();
}
}
项目:templecoin-android-wallet
文件:RequestCoinsFragment.java
private void updateShareIntent()
{
// update share intent
final IntentBuilder builder = IntentBuilder.from(activity);
builder.setText(determineRequestStr(false));
builder.setType("text/plain");
builder.setChooserTitle(R.string.request_coins_share_dialog_title);
shareActionProvider.setShareIntent(builder.getIntent());
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。