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

Back to Home Fragment when I press on back button

My MainActivity contains 4 fragments. My home-fragment is FragmentA. When I press on back button at FragmentB,C or D, I have to return back to FragmentA. If I am on FragmentA and press back button, I have to moveTasktoBack(). What is the best way…
0
votes
2 answers

Up Navigation in fragment

I am creating one android app in which i want to implement up navigation. i want to navigate to previous fragment through up navigation in actionbar. application also contain navigation drawer. i have implement following code but it does'n…
0
votes
1 answer

Working with fragments inside viewpager - android

I have problem with position in my viewpager. I have container layout for my fragments that has button. Some fragments have picture, but some of them don't. I want to show button if fragment contains image. I know there is problem with my position…
0
votes
1 answer

FATAL EXCEPTION: main Process: java.lang.IllegalStateException: Could not execute method of the activity

Been trying to get my IntroActivity.java to enter my FmMenu.java (which is a fragment) and I am getting the following error: 02-26 02:10:58.197 25189-25189/com.wlodsgn.bunbunup E/AndroidRuntime﹕ FATAL EXCEPTION: main Process:…
0
votes
2 answers

Information not passing from doInbackground to postexecute using inappbilling

I start an AsyncTask when my apps start so that user premium features will be show right away. But i am not getting info passed from doInBackground (the values after the query) to onPostExecute. I do a queryInventoryAsync that defines values are…
0
votes
2 answers

Why can't I update my view fragment phoneNumberEditText?

I am returning the phone number as a string. I verified it in my logcat. I am trying to use the phoneNumberEditText.setText(phone); to set the phone number which was defined in the class's scope private EditText phoneNumberEditText; I also tried…
0
votes
1 answer

How to get rid of this "Inconvertible" error?

I am making a simple memegenerator app where user should enter text for the bottom and top field and that text will be added on the bottom and top section of the picture. Since I want to keep the app simple I have used only one fixed image for…
0
votes
2 answers

My textview is not updating with black text

I am trying to set the text when I press the save button. But when I return to the view the text is faint grey. Initial view on Message Settings Updated view on Message Settings before I save Updated view on Message Settings after I save and…
0
votes
0 answers

How to properly launch an Activity stack from Android Notification?

The setup: I have 9 Fragments placed inside MainActivity. There is a seperate background service which has a notification active all the time while it's alive. (Playing audio) After application is closed with the home button, touching the…
0
votes
1 answer

How can I use set fragment inside my class which extends the Fragment class?

Null returned from ((MessageTextFragment)fragment).setActionButtonStateListener(bAction); Here is the SetupMessageFragment.java package com.mayday.md.fragment; import com.mayday.md.MainActivity; import com.mayday.md.R; import…
Jack Shultz
  • 2,031
  • 2
  • 30
  • 53
0
votes
1 answer

ActionBar Badge returns optionitemselected click to Activity instead of my Fragment

I have onOptionsItemSelected(MenuItem item) in my fragment. Now I'm forced to use Android-ActionItemBadge library(https://github.com/mikepenz/Android-ActionItemBadge), to add the ActionBar Notification Count. so I added the piece of code in my…
0
votes
0 answers

Why does handler handle message after fragment resumed?

I'm using a Handler for replacing Fragment on ViewGroup. It seems working fine, but handler handles other message after fragment resumed. how can I explain this situation? Here is code: private Handler mHandler = new Handler() { @Override …
0
votes
2 answers

Android fragments cant hide

I have an app in which I swap two fragments. The fragments are in a LinearLayout. Below the linearlayout I have icons (ImageViews) that when clicked hides or shows the appropriate fragment. When the app first loads, everything is fine. After I exit…
0
votes
1 answer

Android google map v2 - support fragment null poiner exception

In my Android application I have Google map in a fragment but I get null pointer exception at the following line. I have referred many stack over flow links about support fragment null pointer exception but I could not solve my…
0
votes
1 answer

Can I add Navigation Drawer to my app after I have designed the whole app ? If so, how?

I've designed this android app. Now that it's in it's final stage , I'm thinking of adding a Navigation Drawer. And I intend to add it to every activity. Is that possible somehow ? If yes , please direct me to some tutorial or something.