Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Intent intent = new Intent(getApplicationContext(), ActivityToLaunch.class); intent.putExtra(<oneOfThePutExtraFunctions>); PendingIntent pi = PendingIntent.getActivity(this, 0, intent, 0);
您可以使用位于以下位置的各种 Intent.PutExtra() 函数之一将额外数据添加到 Intent 中: http://developer.android.com/reference/android/content/Intent.html
然后,当您准备好启动 PendingIntent 时,请使用位于以下位置的 Send() 函数之一: http://developer.android.com/reference/android/app/PendingIntent.html
You can add extra data into an Intent by using one of the various Intent.PutExtra() functions located: http://developer.android.com/reference/android/content/Intent.html
Then, when you are ready to launch your PendingIntent, use one of the Send() functions located: http://developer.android.com/reference/android/app/PendingIntent.html
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
您可以使用位于以下位置的各种 Intent.PutExtra() 函数之一将额外数据添加到 Intent 中: http://developer.android.com/reference/android/content/Intent.html
然后,当您准备好启动 PendingIntent 时,请使用位于以下位置的 Send() 函数之一: http://developer.android.com/reference/android/app/PendingIntent.html
You can add extra data into an Intent by using one of the various Intent.PutExtra() functions located: http://developer.android.com/reference/android/content/Intent.html
Then, when you are ready to launch your PendingIntent, use one of the Send() functions located: http://developer.android.com/reference/android/app/PendingIntent.html