Hi I need to call the activity from a fragment, The following code is not working
public class MyFragment extends Fragment{ *switch*(number){ *case* 1: Intent intent = *new* Intent(*this*.getActivity(), ActivityOne.*class*); *startActivityForResult*(intent); *break*; *case* 2: Intent intent = *new* Intent(*this*.getActivity(), ActivityTwo.*class*); *startActivityForResult*(intent); *break*; *case* 3: Intent intent = *new* Intent(*this*.getActivity(), ActivityThree.*class*); *startActivityForResult*(intent); } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en