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

Will Activity onpause be called when switching between fragments

Right now I have 2 activities. When the second activity is running, the first activity onpause is clicked which means I have to unregister all the listeners (which is not what I want when the app is running, I just wanted them unregistered when the…
Snake
  • 14,228
  • 27
  • 117
  • 250
0
votes
1 answer

SupportFragmentManager replace not working

FIXED I outsourced the Bluetooth scanning to a separate thread which was a failure. :D Having fixed this the code now works. Thanks for all support! ORIGINAL QUESTION I'm having troubles with exchanging dynamically added fragments (I use the support…
0
votes
1 answer

Android hell: MediaRecorder.Start() always throws IllegalStateException

I have this camera app that previews alright but whenever I try to record it gives me an illegalstatexception like my MediaRecorder isn't setup properly but it is. I must note that I am using an emulator for this with both front and back cams…
0
votes
1 answer

Appropriate way to restart a navigation drawer fragment activity?

Well I am working on an app that after several tries I am not able to restore after it get destroyed by another app with higher priority or higher need of resources so now I am choosing to close it and restart the whole activity but I am facing…
0
votes
1 answer

Google Drive Api implementation from SherlockFragmentActivity action bar

I have the following scenario in my app - SherlockFragmentActivity hosting a ViewPager containing 3 individual fragments. There is a sherlockactionbar on top, with backup and restore options, which should basically backup the app data to google…
0
votes
1 answer

Starting an activity from a fragment error

I want to start an activity from a fragment .... This is my code import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.ShareCompat.IntentBuilder; import android.util.Log; import…
George Zoiade
  • 73
  • 1
  • 3
  • 11
0
votes
2 answers

Display two fragments on a tablet screen

I want to host two fragments at the same time, but so far my code isn't working. This is my specific problem and i don't kow what is wrong, and why it won't start. Here is my code:
0
votes
1 answer

set tab color, divider and text alignment in android

How to set text alignment and divider color in an tabhost widget. mTabHost = (FragmentTabHost) findViewById(android.R.id.tabhost); mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent); Bundle b = new Bundle(); …
yuva ツ
  • 3,707
  • 9
  • 50
  • 78
0
votes
1 answer

Java class extends from multiple classes

I was having some problem when trying extend more than one class in Android development. So basically what I am trying to do is I got a navigation drawer: customAdapter = new CustomExpandAdapter(this, listParent,…
QWERTY
  • 2,303
  • 9
  • 44
  • 85
0
votes
2 answers

Access the variable of a fragment from a ActionBarActivity

I used the example that incorporates Android Studio to make an example of a NavigationDrawer in Android. I made some small modifications to the code to perform various operations from the main activity. package…
0
votes
1 answer

How to using android's camera surfaceView and overlaying view in Fragment?

In my application I want ot use surfaceview to show the PreView from the camera, and show some tips on the view. I needn't to storage the image.I want to use FragmentActivity to achieve that. I am a novice, can you give me any tutorial? Thank you~
0
votes
1 answer

Android Google Maps API2 Crash

The Google Maps API keeps on crashing for me even though I have added the required keys, meta-data and permissions as well as the uses-feature tag that allows OpenGL. I am really at a loss here so please review my manifest to see if there's…
ssj3goku878
  • 745
  • 3
  • 14
  • 43
0
votes
2 answers

How to display a textView from onAttach

i am checking te fragments lifecycle, and i placed a textView inside each callback "onAttache, onViewCreated, ...etc", but the probelm is the fragment layout is defined at onCreateView() and the later subsequent callbacks and not in onAttch. my…
0
votes
2 answers

open Fragment from ActionBarActivity

I have an ActionBarDrawerToggle which contains many fragments for example RootFragment LoginFragment RegistrationFragment from RootFragment i navigate to another activity like Intent activity = new…
sger
  • 719
  • 2
  • 12
  • 26
1 2 3
99
100