Top "Fragment" questions

**DO NOT USE**: fragment is an ambiguous tag, used to refer to numerous technologies.

How to start Fragment from Activity?

I have one Fragment: ProductsFragments extends Fragment and one Activity AdminMenuActivity extends ActionBarActivity I want to call ProductsFragments from AdminMenuActivity. …

android fragment android-fragmentactivity
ViewPager update fragment on swipe

i have a problem that i have been struggling with for the past 2 days. I am building an app that …

android exception android-viewpager refresh fragment
Call parent's activity from a fragment

If I'm inside a Fragment how can I call a parent's activity?

android android-activity fragment
commitAllowingStateLoss() in fragment activities

my app uses fragment activities, it is in portrait mode only and there is no way to rotate the screen. …

android fragment android-fragmentactivity
Android Spinner Dropdown arrow not displaying

my background for my fragment is white, and the arrow for the spinner does not display unless I click on …

android xml layout fragment spinner
Save/Restore fragments state android

I am trying to create an app that uses Jack Wharton's ViewPager library (here) using only images for every page (…

android android-viewpager fragment savestate
Access Fragment View from Activity's onCreate

I am in the process of making my first app for Android, and I have a Fragment that gets added …

android fragment oncreate findviewbyid
When to use the attach and detach methods of FragmentTransaction

I just went through the documentation of the attach() and detach() methods of FragmentTransaction: attach(): Re-attach a fragment after it …

android fragment fragmenttransaction
How to set Unit Test to Fragment in Android

I want to unit test an Android Fragment class. Can I set up a test using AndroidTestCase or do I …

android unit-testing android-fragments fragment activityunittestcase
Integrating youtube to fragment

My Activity extends another activity and consists of navigation drawer where each item opens a new fragment.I want to …

android android-fragments youtube fragment