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

My detail fragment still exists when I'm in portrait

In a master detail flow, when I go from landscape to portrait, my detail fragment is still there. What's the best place and time (lifecycle callback) to get rid of it? I only have to get rid of it because my menu items and actionbar title are coming…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
0
votes
2 answers

Open new Fragment from FragmentActivity

I have MainActivity that extends FragmentActivity and I also have ConnectionListFragment that contains List of connection ID's. And when user tap on connection ID I want to open new LogFragment (that extends Fragment) and give more details about…
0
votes
2 answers

Error while using findViewById in fragment

i am a learner and stuck at a point. i've tried to find the relevant answer but could not find any helpful answer. i am trying to make an activity which has a FRAME LAYOUT. now at first i am trying to display an image for 2 seconds then it should…
0
votes
0 answers

How to create a Spinner and have it show different fragments?

After looking at http://developer.android.com/guide/topics/ui/controls/spinner.html, I want to know if it is possible to have Spinner show a different fragment for each item that is selected? So for example, if my Spinner has 2 options to choose…
0
votes
1 answer

How to handle activity/fragment lifecycle when dealing with dynamical network loaded data

I'm facing the following problem: I have a web service of a social network that allows to query a user uploaded videos. The web service signature is: getUserVideos(String username, int quantity, int offset) I need to create a gallery with the…
Addev
  • 31,819
  • 51
  • 183
  • 302
0
votes
1 answer

how to change fragments when the first fragment is a map activity

I have a map activity, which also contains a navigation drawer layout with items in the drawer. I want to be able to click an item in the drawer, and the item i choose opens an activity. I tried using startActivity to call the class in a separate…
0
votes
2 answers

ListView in ListFragment keeps accumulating data

I am unable to refresh my ListView in ListFragment with new data. Instead the new data is added to the previous. The time period is from 6AM to 5PM for each entity. Then new data is appended to the list restarting at 6AM for another entity. The data…
0
votes
1 answer

MY fragments would not show

Please help! I have three fragments that need to be shown on the gallery page, but my app keeps crashing. This is the gallery.java page import android.app.Activity; import android.app.Fragment; import android.app.FragmentManager; import…
0
votes
1 answer

show three fragments on one activity

I am trying to show three different fragments on an Activity but when I run my code, my app crashes and the logical does not find any error. what could be the problem? This is my java file which contains the three fragments import…
0
votes
0 answers

OnActivityResult from class

There is a class, Photo: public class Photo { Uri mUri; Activity ac; public static final int PHOTO_INTENT_REQUEST_CODE = 100; Photo(Activity ac) { this.ac = ac; } boolean Photo_for_registration(){ mUri =…
0
votes
1 answer

Need to call onResume for each fragment inside ViewPager

I have to solve this problem in rapid way because in two hours I have to send my project to my professor. I have a fragmentviewpager with 5 fragment inside a fragment. Inside every fragment I have a table and it update with some data from json file…
0
votes
1 answer

Viewpager gets the wrong page

I have looked in several topics like this but didn't see how to fix my problem I have a resturant for say.. with dynamic number of categories.. I put all the categories in a list.. and create fragments by from those categories so I cant just case 0…
0
votes
1 answer

ListFragment error: Content view not yet created

i have this message error in my listFragment, i've tried some solutions proposed in other topics about the same issue but it still doesn't work. I don't get the error at the first time but after some navigation between the fragments.. Here is the…
0
votes
1 answer

Android View with Tabs without having an activity

I have a background service running, displaying some views as system_overlay to provide aditional information for the currently active app. To configure the hud display i want to show the user another overlay view to change some parameters. The…
Fabian N.
  • 3,807
  • 2
  • 23
  • 46
0
votes
2 answers

Getting java.lang.IllegalStateException in Main.mp.isPlaying()

i have created a mediaplayer in a fragment. I initialized it like this: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Main.mp = new MediaPlayer(); } First i was facing…
Developer
  • 385
  • 1
  • 3
  • 18