Top "Android-fragments" questions

Fragments represent reusable behaviors or portions of the user interface in an Android app.

How can I access getSupportFragmentManager() in a fragment?

I have a FragmentActivity and I want to use a map fragment within it. I'm having a problem getting the …

android android-fragments android-support-library android-fragmentactivity fragmentmanager
Clear back stack using fragments

I ported my Android app to honeycomb and I did a big refactor in order to use fragments. In my …

android android-fragments
Fragment Inside Fragment

I need help regarding working on fragment inside fragment, actually I am facing a problem on pressing back button. Application …

android android-fragments android-nested-fragment
How to transfer some data to another Fragment?

How to transfer some data to another Fragment likewise it was done with extras for intents?

android android-fragments
Getting the current Fragment instance in the viewpager

Below is my code which has 3 Fragment classes each embedded with each of the 3 tabs on ViewPager. I have a …

android android-fragments android-viewpager
How to close the current fragment by using Button like the back button?

I have try to close the current fragment by using Imagebutton. I am in Fragment-A and it will turn to …

android android-fragments activity-finish
ViewPager and fragments — what's the right way to store fragment's state?

Fragments seem to be very nice for separation of UI logic into some modules. But along with ViewPager its lifecycle …

android design-patterns android-fragments android-viewpager
How to convert any Object to String?

Here is my code: for (String toEmail : toEmailList) { Log.i("GMail","toEmail: "+toEmail); emailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(…

java android string android-fragments valueconverter
Dilemma: when to use Fragments vs Activities:

I know that Activities are designed to represent a single screen of my application, while Fragments are designed to be …

android android-fragments android-activity architecture