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

Call requires API level 11 (current min is 8): android.app.Activity#onCreateView FragmentActivity

I got this error: "Call requires API level 11 (current min is 8): android.app.Activity#onCreateView" whenever I'm extending my class with FragmentActivity. Isn't FragmentActivity compatible with API 8? and if not, is there away to make it…
Alahlavo
  • 21
  • 1
  • 5
0
votes
1 answer

Activity or Fragment with NavigationDrawer

I have 4 modules in an application that are not related to each other. So I previously had created 4 different activities all extending to a base activity that implements the NavigationDrawer. I would like to know if it is better to use fragments…
0
votes
2 answers

Wait for Fragment to Complete

What I am attempting is to wait in my main activity until my fragment finishes, so I can execute code without causing problems in the fragment. I have tried many methods and can't get a solution. Heres some of my code from my main activity: if (null…
0
votes
1 answer

How to get EditText values from current Fragment in ViewPager to Activity in Android

I have three tabs using ViewPager. How can I get EditText value from current ViewPager Fragment when I click on ActionBar button. When I click on ActionBar icon I want current ViewPager EditText values. My Example Code Is heare
0
votes
0 answers

Opening a new activity crashes my application

I do not know if this bug is in the code that I use to open the activity, or if it lies in the activity itself. This is the code for opening the activity, please tell me if I have an error in this, or if it is something else. public void…
0
votes
3 answers

Fragment being reset after configuration change

I'm currently creating an app using a bluetooth connection. The connection is handled inside an simple object (HandleConnection). When the connection is made, my app goes into "remote" mode, which means I'm replacing my main fragment with another…
0
votes
0 answers

When a fragment is active?

We have an android app that uses fragments. Everything works fine but, there is a crash that rarely happens and which I haven't been able to reproduce. The error says: Fatal Exception: java.lang.RuntimeException Unable to start…
0
votes
3 answers

How are Activities and Fragments tied together in the lifecycle?

when i create blank Activity with fragment in android studio what is actually done ! Specifically how they attached together ? in which line of code and how this done ?
0
votes
0 answers

Pass object from activity to fragment

I am new to Android.Its my first application.I have tried searching on Internet but everyone tried to pass simple data from activity to fragment.I want to pass an whole object from activity to fragment. I know there is one solution around is just…
0
votes
1 answer

Cannot cast v4.FragmentActivity to v4.Fragment in android?

I am using android.support.v4.app for Fragment, FragmentTabHost and Fragment. My goal is to show two tabs inside a fragment itself. So I followed the following process: ListingFragment public class ListingFragment extends Fragment { private…
Amit Pal
  • 10,604
  • 26
  • 80
  • 160
0
votes
1 answer

Image Button Doesn't work in fragment

I create an android app and ı stuck ! Whatever I tried something I couldn't fix it. It does like a not button. My Fragment Activity code is public class Home extends FragmentActivity { ActionBar action; Typeface tf1; TextView…
0
votes
1 answer

FragmentPagerAdapter - Incompatible Types

Am attempting this tutorial https://www.youtube.com/watch?v=id46JCY76f0. Have followed it word for word, but have reached 16:00 into the video and this particular code is throwing me a Incompatible Type error: import android.os.Bundle; import…
0
votes
1 answer

Attaching Fragment to Activity with AndroidAnnotations?

How can I attach a Fragment to an Activity with AndroidAnnotations? I have a Activity with a layout XML. I also have a Fragment with a layout XML. How do I connect the Fragment to the Activity? The Fragment and its content/layout should be displayed…
0
votes
2 answers

Onclick of button How to replace FragmentActivity?

I have code of replace fragment on button click, but is this possible to replace FragmentActivity?? I have code of replace fragment public void OnClick() { Fragment frag = new TMSAccountFragment(CurrentViewModel); …
0
votes
2 answers

How to send selected child view data of expandable list view from fragment to parent activity?

I have one ParentActivity which has TextView tvCount, one fragment which has expandable list view. I need to update the number of children count selected in the expandable list view. In my fragment i have an adapter - mExpandableListView =…