Questions tagged [android-fragmentactivity]

An Activity subclass introduced through the compatibility package to provide an implementation of the Fragment framework on version below Honeycomb.

An Activity subclass introduced through the compatibility package to provide an implementation of the Fragment framework on version below Honeycomb. This class doesn't work with Fragments from the SDK, it needs the Fragment related classes from the compatibility package.

More information can be found in the documentation of the FragmentActivity.

2111 questions
0
votes
2 answers

Android-> android.view.InflateException: Binary XML file line #2: Error inflating class fragment

i've tried all the solutions given in similar question, but still could not eliminate the error in inflating class fragment while using maps. Infact, my code is exactly the same as given in one of the solution of similar question but still the code…
Kishore L
  • 188
  • 1
  • 14
0
votes
1 answer

If I use AppCompatActivity, do I need to use Fragments of v4 library?

I am referring the big nerd ranch android book to learn android. When I reached chapter 7 which starts explaining fragments, It said that if I wanted my app to support devices with API < 11, I needed to use Fragments of android.support.v4 library…
0
votes
1 answer

the method show(FragmentManager, String) in the type DialogFragment is not applicable for the arguments (FragmentManager, String)

Very strange - suddenly my app wont work according to Lint that tells me something strange priceChangerFragment.show(getSupportFragmentManager(), "ttt"); where priceChangeFragment is a DialogFragment the class extends import…
java
  • 1,165
  • 1
  • 25
  • 50
0
votes
1 answer

How to go to fragment from an activity if I came to the activity form the fragement?

I came to the activity class as for need from an fragment and now I want to go back to my earlier fragment.But The fragment was came from an drawer layout.I can't understand what to do.... here is my code. @Override public View…
0
votes
1 answer

Android App - New Activity not opening

In my android app, I have a navigation drawer menu and its populated with a string array. When i click the individual strings I want to open a new activity (both are fragment activities). This does not work as I thought it would. Any other ways…
user2244896
0
votes
1 answer

Add a new activity (class + xml) premade in project

When a new project is created, a screen is shown to select pre made screens with login screen, maps screen, blank, empty, etc. Can i add a new screen to my current project selecting one of this pre made screens? or this screen is only shown in…
0
votes
2 answers

Method addToBackStack(null) is not on the property of the FragmentManager Class. Is this the proper way to go back to the previous fragment/activity?

According to the tutorials that I have read, the method addToBackStack(null) is the right way to get back to the previous fragment or activity loaded. But on my part, the addToBackStack() is missing on the ft object that holds the FragmentManager…
0
votes
1 answer

Error in Cursor in getting data from SQLiteDatabase

I want populate my ListView with the data from SQLiteDataBase but I'm having error on my cursor. I am a beginner in android programming please help. thanks. I am using fragments. . this my fragment code: package…
0
votes
0 answers

Java.lang.IllegalStateException Activity has been destroyed

I know there are lots of same question and I checked its solutions\ suggestions. However, they are not working for me. I am trying to add fragment and when I am calling fragmentTransaction.commit() it throws that exception, but that happens only…
0
votes
1 answer

The different access right to onActivityResult in FragmentActivity with Fragment

Why the function onActivityResult in FragmentActivity is protected meanwhile the function onActivityResult in Fragment is public?
sooglejay
  • 1,355
  • 1
  • 9
  • 15
0
votes
1 answer

How to update the old fragment in the Fragment list?

I need to update the old fragment in the Fragment list, so I need to clear all the old style. getSupportFragmentManager().beginTransaction().add() method could add fragment to the list, but how to clear all the fragment once for all ? Add …
Eva
  • 332
  • 2
  • 13
0
votes
1 answer

Error InflateException Android 6.0

I get de Error when i try run my app. I tried to change the class to extends Fragment and extends FragmentActivity with the imports but did not work. For I have added some additional information in my Manifest, I think you might have something that…
0
votes
0 answers

Find host activity of FragmentActivity

I have an Android class that extends a FragmentActivity public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; private double markerLat; private double markerLon; double[] toMark; public final…
Volker Petersen
  • 283
  • 2
  • 8
0
votes
1 answer

Robolectric, how to check visibility of FragmentDialog?

I have a button in my activity. Once clicked, it checks user registration status. If registered then shows a dialog otherwise starts registration activity. I set required flags that says user has registered. I perform click and expect the dialog…
Hesam
  • 52,260
  • 74
  • 224
  • 365
0
votes
1 answer

Activity with fragment and bottom layout scroll

I have an Activity with a RelativeLayout in which i have a FrameLayout where i load diferent Fragments and a bottom aligned layout with buttons. In a Fragment i load i have a ScrollView and i want to scroll the Fragment till the end but i want the…