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
0 answers

How can I forward touch events from Transparent activity to one below it?

I have a tutorial activity which is translucent and it gives instructions on how to use the activity below it. I want to be able to process these touch inputs in the tutorial but also forward them to the below activity. Here is the structure. Have…
0
votes
1 answer

xml layout loads but my activity doesn't respond to button clicks

I'm new at this but I already made a small app that worked the same way. I can't see what I'm doing wrong because the code looks quiet the same as my previous app. When I run it or debug my app it shows my layout on my emulator so it does load the…
0
votes
1 answer

ImageView inside a RelativeLayout unwanted line

I have a fragment with the following structure
0
votes
1 answer

How not to resume Application when creating dialog from notification

What I want: A dialog(activity with dialog Theme) with single choice list when user clicks a button on a notification. What I don't want: To resume any activity that has been placed in "recents" What happens now: When my application is closed (not…
0
votes
0 answers

How to dynamically add fragment to Google Maps V2 FragmentActivity?

I'm running google maps API V2 as FragmentActivity. May activity layout is here: activity_landing.xml
0
votes
2 answers

Navigating and sending data from activity to fragment

I created a navigation drawer. Now,navigation drawer requires all fragments. I want to send some information and move to this fragment which contains drawer from an activity. How do I implement this ? I am using…
0
votes
2 answers

How to keep informations in fragment after onBackPressed?

I'm newbie in android and I'm working with fragments. My problem: I have two fragments, "A" and "B", my fragment "A" is a complex form, the user can add and remove products, set customer information, payment method and more. My fragment "B" just…
0
votes
1 answer

How can i use list of other fragment to another fragment
I have two fragment class: Mainfragment and subfragment. I have public List l1 in Mainfragment and i have add items in this list. Now i want to access this list l1 in subfragment. i have used - subfragment sf = (subfragment)…
0
votes
2 answers

I can't call my fragment method in my activity and I want to call 2 method in 2 different fragment?

I am a beginner. I am programming a weather app in android. I want to call fragment method in activity, but it have a error And my main activity code here: public class MainActivity extends FragmentActivity { ViewPager viewpager; @Override …
0
votes
1 answer

Adding a custom Toolbar to a FragmentActivity (that uses a ViewPager)?

I'm using a ViewPager to slide across 3 screens at the moment, which is initialised in a FragmentActivity. My aim is to have a Toolbar or ActionBar that remains the same for each page in the ViewPager - apart from the title, which changes depending…
0
votes
1 answer

How to make a fragment/view inaccessible?

I want to show a transparent lock screen over a web-view and want to make the underlying web-view inaccessible when there is a lock screen at the top. However, with my current implementation the user is still able to access and scroll the web-view…
0
votes
1 answer

How to launch activity based on tab bar item?

I want to start different activities depending on the click of the tab bar item but I get a blank page as started activity in the "windows class". What I intended to do is start different activities on click of tab bar item. Tab Bar Activity…
0
votes
1 answer

Android - Adding side navigator from template

I have an existing app to which I would like to add a side navigator. I realized that Android SDK provides a template for that (by adding side navigation drawer activity from the Add menu) but not sure about how to add it the app. Here is the code…
0
votes
1 answer

FragmentView gives null on accessing childs in main activity Android

I am using multiple fragments in my main activity now I tried to access childs of each fragment but it giving me null exception when its childs are access. On clicking button1 not changing data and on clicking button2 app crashing. Here is my…
User42590
  • 2,473
  • 12
  • 44
  • 85
0
votes
1 answer

Can't write onActivityResult function inside fragment class

I have been trying to pick an image from galley and set it to an ImageView. I am successful in going to gallery and picking the image but can't set it to the ImageView. Actually, I can't write the OnActivityResult inside the Fragment class i have…