Trying to use startActionMode in fragment but got this error at
mMode = startActionMode(new AnActionModeOfEpicProportions()); LINE 55

How to slove this? ActionMode not supported in Fragment?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are trying to invoke an instance method of an Activity from a static Fragment (i.e. one that is separate from the instance of the Activity). Remembrer that you can always access the activity that contains your fragment using
getActivity(). So:A cleaner approach would be to declare an interface class to manage the communication between fragments and activities.