官方api public static PendingIntent getActivity (Context context, int requestCode, Intent intent, int flags) Added in API level 1 Retrieve a PendingIntent that will start a new activity, like calling Context.startActivity(Intent). Note that the activity will be started outside of the context of an existing activity, so you must use the Intent.FLAG_ACTIVITY_NEW_TASK launch flag in the Intent. 你的flag要设置成Intent.FLAG_ACTIVITY_NEW_TASK
Android Notification设置PendingIntent后点击没有跳转
最新推荐文章于 2025-01-20 14:57:19 发布