📜  获取意图在片段中不起作用 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:43.083000             🧑  作者: Mango

代码示例1
// add the getActivity() before getIntent and it should work perfectly 
// inside your fragment
Bundle bundle = getActivity().getIntent().getExtras();