All Things Techie With Huge, Unstructured, Intuitive Leaps

Android Development Call A New Activity From ItemDetailFragment

I had to quickly look this up, so others might too.  How do you call a new activity from a fragment or the ItemDetailFragment?  Get the parent.  Like this:

Intent myIntent = new Intent(getActivity(), NameYourClass.class);

Hope this helps someone.

No comments:

Post a Comment