Top "Fragment" questions

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

Cannot resolve method 'show(android.support.v4.app.FragmentManager, java.lang.String)

For some reason when I try to show a Dialog I get an error from dialog.show(fm, DIALOG_DATE); …

java android dialog fragment fragmentmanager
How can I call OnActivityResult inside Fragment and how it work?

I want to know is it possible on onActivityResult()to use inside Fragment and if yes then how it works …

android android-intent fragment onactivityresult
using alt in sequence diagrams for starUML

i am not able to discover how to use the alt/combined fragment correctly in starUML,as in there is …

fragment sequence alt xmi staruml
reusing fragments in a fragmentpageradapter

I have a viewpager that pages through fragments. My FragmentPagerAdapter subclass creates a new fragment in the getItem method which …

android android-fragments fragment android-compatibility
SavedInstanceState is always null in fragment

I have a fragment attached to the activity using XML (and setContentView() in activity). A have a problem because I …

android fragment bundle
How can I implement FragmentManager and FragmentTransaction to replace just a single fragment?

I have an activity with 3 fragments; a header; a body; a footer (same point as in HTML). The bodyfragment contains …

android fragment fragmenttransaction fragmentmanager
Fragment lifecycle with respect to it's activity

Situation My activity waits on an Async operation and after it hears back from async operation, it needs to pass …

android fragment android-lifecycle
Can't get Action Bar in fragment class

I have an activity with three fragment classes inside it. I get an error when trying to change the action …

android class android-actionbar fragment
Android - Fragment screen rotate

I'have 1 FragmentActivity with a ViewPager which handle 2 Fragments. public class MyFragmentActivity extends FragmentActivity{ private Fragment f1; private Fragment f2; private …

android screen-orientation fragment android-viewpager
My fragment cannot be cast to android.support.v4.app.Fragment

I created a very simple fragment to test my app and I got the following error message: 03-31 16:04:39.834: E/AndroidRuntime(7860): …

android fragment