Top "Fragment" questions

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

Fragment methods: attach(), detach(), remove(), replace(), popBackStack()

I am very confused between these functions and their purposes. What I have observed that using replace() replaces the existing …

android android-fragments fragment back-stack
Programmatically adding fragment to framelayout in android

I am trying to build a UI combining both static and dynamic elements. For this, I have divided my activity …

android fragment android-framelayout
how to get a fragment added in an XML layout

I have a layout which includes a fragment as follows: <fragment android:id="@+id/mainImagesList" android:name="com.guc.…

android fragment
Fragment activity catch onKeyDown and use in fragment

I have Fragment activity with pager: List<Fragment> fragments = new Vector<Fragment>(); fragments.add(Fragment.instantiate(…

android android-activity fragment onkeydown
On showing dialog i get "Can not perform this action after onSaveInstanceState"

Some users are reporting, if they use the quick action in the notification bar, they are getting a force close. …

android dialog fragment
Fragment is transparent and shows Activity below

My Android application launches into BeginActivity which is a subclass of SherlockFragmentActivity and shows it's first view using: @Override public …

android actionbarsherlock fragment
Fragment inner class should be static

I have a FragmentActivity class with inner class that should display Dialog. But I am required to make it static. …

android fragment android-dialogfragment
v4 getFragmentManager with Activity - Incompatible types

I have a simple activity which runs as expected. import android.app.Activity; import android.app.FragmentManager; // import android.support.…

android android-activity fragment
android - do you ever have to add fragments to the manifest

Im using a fragment that is supposed to display a webview. When I try to instantiate it from the class …

android manifest fragment
How to determine fragment restored from backstack

Been searching for this issue for a while to no avail now: How to determine fragment is being restored from …

android acl fragment android-support-library android-compatibility