android.content.Intent.getCharSequenceArrayExtra()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中android.content.Intent.getCharSequenceArrayExtra()方法的一些代码示例,展示了Intent.getCharSequenceArrayExtra()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Intent.getCharSequenceArrayExtra()方法的具体详情如下:
包路径:android.content.Intent
类名称:Intent
方法名:getCharSequenceArrayExtra

Intent.getCharSequenceArrayExtra介绍

暂无

代码示例

代码示例来源:origin: pockethub/PocketHub

/**
 * Get intent extra
 *
 * @param name
 * @return char sequence array
 */
protected CharSequence[] getCharSequenceArrayExtra(final String name) {
  return getIntent().getCharSequenceArrayExtra(name);
}

代码示例来源:origin: JackWHLiu/jackknife

public static CharSequence[] getCharSequenceArrayExtra(Intent intent, String name) {
  if (intent != null || !hasExtra(intent, name)) return null;
  return intent.getCharSequenceArrayExtra(name);
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

public static CharSequence[] getCharSequenceArrayExtra(Intent intent, String name) {
  if (!hasIntent(intent) || !hasExtra(intent, name)) return null;
  return intent.getCharSequenceArrayExtra(name);
}

代码示例来源:origin: matburt/mobileorg-android

@Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
    CharSequence[] conflictedFiles = getActivity().getIntent().getCharSequenceArrayExtra(JGitWrapper.CONFLICT_FILES);
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
    builder.setTitle(R.string.sync_git_merge_files)
        .setItems(conflictedFiles, new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int which) {
            // The 'which' argument contains the index position
            // of the selected item
          }
        });
    return builder.create();
  }
}

代码示例来源:origin: jareddlc/OpenFit

CharSequence[] entries = intent.getCharSequenceArrayExtra(OpenFitIntent.EXTRA_BLUETOOTH_ENTRIES);
CharSequence[] entryValues = intent.getCharSequenceArrayExtra(OpenFitIntent.EXTRA_BLUETOOTH_ENTRIES_VALUES);

相关文章

Intent类方法