Java 类android.support.v4.app.ShareCompat.IntentBuilder 实例源码

项目: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());
}