java.lang.illegalstateexception could not find a method (view) in the activity class android fragment
问题 in my program, i am using a gridview with some images, i want to show a menu when user tapped on an image in gridview, and then select an action to do from the menu showed. here is my codes: package Kazemi.Alireza.scada; import android.annotation.SuppressLint; import android.app.Dialog; import android.app.FragmentManager; import android.content.Context; import android.graphics.Typeface; import android.graphics.drawable.AnimationDrawable; import android.os.Bundle; import android.support.v4.app