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
1 answer

Android could not change tab icon

In my Android application, I am using FragmentTabHost. I have added 3 tabs in the tabhost now my problem is I could not change the tab icon dynamically when choose each tab. My requirement is if I select a tab other tabs icon should be changed, I…
M.A.Murali
  • 9,988
  • 36
  • 105
  • 182
0
votes
2 answers

How to pass parameter to Fragment from FragmentActivity

I have a FragmentActivity in my android application. I use a viewPager to insert tabs in the activity. So I have this code. It works. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
bircastri
  • 2,169
  • 13
  • 50
  • 119
0
votes
1 answer

my two fragments under the same activity are shown one above the other

I have an activity: public class MainActivity_with_Fragment extends RoboFragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
1 answer

Calling a Fragment from a main fragment

I have to call a fragment (Page1) from here... protected void onPostExecute(Void args) { Intent intentx; intentx = new Intent(HomeFragment.this.getActivity(),Main.class); intentx.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); …
0
votes
1 answer

offscreen viewpager fragments won't render after 1st time loaded

I have a viewpager with 5 tabs and if I go to the 5th fragment(that is the fragment loaded when I click the 5th tab or swipe to the 5th tab) and then I go to the 3rd tab the 5th fragment won't load the view anymore and if I go to the 2nd or 1st tab…
0
votes
1 answer

How to Add FragmentActivity to FrameLayout

scenario: I have the mainActivity in which it holds the default game list fragment When user clicks an item on the list it should show the FragmentActivity that contains a viewpager with two tabs inside the framelayout basically replacing the…
0
votes
2 answers

How to pass data from fragment activity to fragments

I am doing service call in FragmentActivity where I need to pass two datas(name and address) to Fragment A and Fragment B respectively. Here is my code which I tried. public class C extends FragmentActivity { // public PassDataToFragments…
0
votes
1 answer

BaseActivity or Fragment Activity

Recently, I was placed on a project with another developer and he started our project with a BaseActivity (which extends ActionBarActivity), but when the app starts it runs MainActivity (which extends BaseActivity). Activity Structure BaseActivity…
0
votes
1 answer

Save Complete Fragment and View State

I have Fragment with lots of TextViews. I put 4 of this Fragment in ViewPager Tab. I search a lot about saving Fragment state but all of them said to save individual elements data and then restore their data and reassign TextViews Values. But I need…
0
votes
1 answer

How to show element gradually

I have an ImageView and I make that element visiable by timer. Its became visable as quick as thought. But I dont know how to make it visiable gradually. For example first it`s transparent then became completely visable. How can i do that?! Here…
0
votes
1 answer

Clicking on EditText Makes Fragment Transparent for an instant

I have a Fragment that leads to another one and on the second one, there are some EditText's for the user to fill. When I first click on any EditText, the whole fragment becomes transparent for about a second and I'm able to see the previous…
0
votes
0 answers

Back Stack not working as expected

I have Activity A and B, both inherits from a BaseActivity class. Activity A handles several fragments, and from one of them Activity B is started. In the onCreate method of Activiy B I call the following method…
0
votes
0 answers

How to restart my application in Android?

I am developing an application in that I want to open url(www.google.com) with android default browser(com.android.browser). After some time I want to close or hide the browser and show my application to the user. I tried the following Broadcast…
Krishna
  • 4,892
  • 18
  • 63
  • 98
0
votes
1 answer

Async task is not working in FragmentActivity

I've a Async task in a FragmentActivity i'm using jsoup to get the html for table what i found out so far is doInBackground() is not working i.e it is not getting the html from the website the same coding is working with activity but in…
0
votes
3 answers

Android app unable to start activity componentInfo

app is suppose to display main homepage after splash screen, however, after splash timeout of X secs, the app crashed. Please help, I have attached the error and the following necessary codes. Error log: 01-04 22:48:35.548: E/AndroidRuntime(28912):…
1 2 3
99
100