[Solved] calling an activity from fragment activity through Intent [closed]


the Intent constructor accepts two arguments. first argument is your Context and the second one is your Activity class. in your fragment, you can access your Context via getActivity method. here is what you should do :

Intent i = new Intent(getActivity(), MyActivity.class);

0

solved calling an activity from fragment activity through Intent [closed]