getActivity() where it is defined?

前端 未结 11 1956
温柔的废话
温柔的废话 2020-12-13 10:19

I\'m very new to android and I\'m following this example.

The code says we need to do these steps to get an dialog box:

AlertDialog.Builder builder =         


        
11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 10:28

    Update android API level 23.

    Use getContext() instead of getActivity().

提交回复
热议问题