You should do it with getActivity().startActivity(myIntent)
More Related Contents:
- Passing Data Between Fragments to Activity
- Prevent activity from being destroyed as long as possible
- Android app crashes by switching the activity
- How to stop EditText from gaining focus when an activity starts in Android?
- Communicating between a fragment and an activity – best practices
- How do I disable orientation change on Android?
- How to set ringtone in Android from my activity?
- How do I pass an object from one activity to another on Android? [duplicate]
- Soft keyboard open and close listener in an activity in Android
- How to bring an activity to foreground (top of stack)?
- Error while Running Android Application – Could not initialize OpenglES emulation, use ‘-gpu off’ to disable it
- Android – How to pass HashMap between activities?
- How to make notification intent resume rather than making a new intent?
- Launch Skype from an App Programmatically & Pass Number – Android
- Finish parent and current activity in Android
- How to call methods of a Service from activity?
- Trying to UNINSTALL_SHORTCUT but shortcut won’t go away
- Difference between extending LifecycleActivity,Activity,ActionbarActivity & AppCompactActivity?
- App always starts fresh from root activity instead of resuming background state (Known Bug)
- Using an Android library project Activity within another project
- how to use getListView() in Activity?
- Why does FLAG_ACTIVITY_CLEAR_TOP not work?
- Android: onSaveInstanceState not being called from activity
- how to know the calling activity in android
- ‘setHasOptionsMenu(Boolean): Unit’ is deprecated. Deprecated in Java
- Using startActivityForResult, how to get requestCode in child activity?
- Finish old activity and start a new one or vice versa
- Admob on Multiple Activities?
- Preference items being automatically re-set?
- How to dismiss a DialogFragment when pressing outside the dialog?