【发布时间】:2026-02-08 08:15:01
【问题描述】:
我正在尝试通过我的设备使用 NFC 硬件。但是,问题是当我注册 Activity 以接收 Intent 时:
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);
我在 Activity 而不是 Fragment 中收到结果。有没有办法在 Fragment 中处理这个结果?
提前致谢!
【问题讨论】:
标签: android android-activity fragment nfc