android.content.Intent#putCharSequenceArrayListExtra ( )源码实例Demo

下面列出了android.content.Intent#putCharSequenceArrayListExtra ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: decorator-wechat   文件: MessagingBuilder.java
/** Intercept the PendingIntent in RemoteInput to update the notification with replied message upon success. */
private PendingIntent proxyDirectReply(final int cid, final MutableStatusBarNotification sbn, final PendingIntent on_reply,
		final RemoteInput remote_input, final @Nullable CharSequence[] input_history, final @Nullable String mention_prefix) {
	final Intent proxy = new Intent(mention_prefix != null ? ACTION_MENTION : ACTION_REPLY)		// Separate action to avoid PendingIntent overwrite.
			.setData(Uri.fromParts(SCHEME_KEY, sbn.getKey(), null))
			.putExtra(EXTRA_REPLY_ACTION, on_reply).putExtra(EXTRA_RESULT_KEY, remote_input.getResultKey())
			.putExtra(EXTRA_ORIGINAL_KEY, sbn.getOriginalKey()).putExtra(EXTRA_CONVERSATION_ID, cid);
	if (mention_prefix != null) proxy.putExtra(EXTRA_REPLY_PREFIX, mention_prefix);
	if (SDK_INT >= N && input_history != null)
		proxy.putCharSequenceArrayListExtra(EXTRA_REMOTE_INPUT_HISTORY, new ArrayList<>(Arrays.asList(input_history)));
	return PendingIntent.getBroadcast(mContext, 0, proxy.setPackage(mContext.getPackageName()), FLAG_UPDATE_CURRENT);
}
 
源代码2 项目: Chimee   文件: CodeConverterActivity.java
public void onDetailsClick(View view) {
    Intent intent = new Intent(this, CodeConverterDetailsActivity.class);
    intent.putCharSequenceArrayListExtra(CodeConverterDetailsActivity.DETAILS_TEXT_KEY, mParagraphs);
    startActivity(intent);
}
 
 方法所在类
 同类方法