Questions tagged [fragmentmanager]

FragmentManager is an interface for interacting with Fragment objects inside an Activity in Android. While the FragmentManager API was introduced in HONEYCOMB, a version of the API at is also available for use on older platforms through FragmentActivity. For more information about using fragments, read the Fragments developer guide.

700 questions
-2
votes
4 answers

start a Fragment from an activity that extends from ListActivity

my problem is that i am trying to start a fragment from an activity that extends from ListActivity i tryed this solution : FragmentManager fragmentManager = getSupportFragmentManager(); fragmentManager.popBackStackImmediate(null,…
-2
votes
1 answer

Issues with fragments

I started creating my app with min SDK 15 and I used the v4 support library for the fragments and the fragment manager and fragment transaction etc. When I decided to use card animations, I figured I had to switch to using the fragments without the…
-3
votes
2 answers

adding fragment to a activty from second activity

I have 2 activity and 2 fragment. In first activity there are 2 buttons and onClick of those buttons i want to add separate fragments to second activity. Like on click of btn1 open fragment 1 and onclick of btn2 open fragment 2 and attach to the…
-3
votes
4 answers

Cannot resolve method getSupportFragmentManager()

I found the message Cannot resolve method 'getSupportFragmentManager ( )' I want to add a fragment in an activity here is my code package com.formation.testfragment; import android.app.Activity; import android.support.v4.app.Fragment; import…
Bassem Jlassi
  • 187
  • 5
  • 11
-3
votes
1 answer

Caused by: java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to com.appeaser.sublimepickerlibrary.SublimePicker

I am trying to load fragment inside FrameLayout but gets following exception/crash activity_main.xml
-3
votes
2 answers

How do i set values to Textviews,edittext or charts in fragment?

Before i begin,let me say that i've already checked all the links regarding this and the inflater init method doesn't work for me unfortunately Fragment.java public View onCreateView(LayoutInflater inflater1, ViewGroup container, Bundle…
John
  • 3
  • 2
-3
votes
2 answers

Is there a way to listen to FragmentTransactions of a FragmentManager?

I have an app with several Fragments which interact to each other. Sometimes I have to add a Fragment, sometimes I replace it. Is there a way to listen to FragmentTransactions completed, so I can keep track of every time a Fragment is…
Teo Inke
  • 5,928
  • 4
  • 38
  • 37
-4
votes
1 answer

android.support.v4.app.FragmentManagerImpl.execPendingActions .How to fix it

java.lang.NullPointerException: at android.support.v4.app.BackStackRecord.run (BackStackRecord.java:770) at android.support.v4.app.FragmentManagerImpl.execPendingActions (FragmentManager.java:1682) at…
Arjun
  • 53
  • 8
-4
votes
2 answers

how to set default fragment android studio?

Hello every body i made a weather application and i have 3 tabs i want to make tab 2 the default tab when i run the app that's my code : public class SectionsPagerAdapter extends FragmentPagerAdapter { public…
-4
votes
2 answers

Communicating with fragment NullPointerException

I'm very new to Android UI, I've been looking for a place I can learn the basic structure of UI and how communication and layouts should work. But regardless. My problem comes from me trying to change the value of a TextView within a fragment. I…
1 2 3
46
47