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

The function is called twice when the surface is touched

I have a fragment with touchable or clickable layout, i do not know why when i touch the fragment's layout and left my finger the funtion ""retrieveMQTTConnAssets()"" is caled twice "once when i touch the surface and keep touching and second time…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
0
votes
1 answer

Re-create fragment properly

I want to re-create Fragment. After I did something like fragmentTransaction.detach(someFragment); fragmentTransaction.attach(someFragment); fragmentTransaction.commit(); onAttach is not being called but only onCreateView, which means that…
Taras
  • 2,526
  • 3
  • 33
  • 63
0
votes
1 answer

Navigation drawer and swipe tabs: problems with fragment and fragmentactivity

I am using navigationDrawer, which has 3 fragments. In one of Fragments I want to use swipe tabs, which has 2 fragments. The problem is that fragment of navDrawer extends Fragment public class Verses extends Fragment { } But it swipe tabs It needs…
0
votes
2 answers

How to set onClickListener for button in a Fragment

I just started to use the Fragment e the Swipe Views. I wanted to redo my project but I have a problem in setting the various interactions with buttons and images via the method onClickListener() this is the xml code of the fragment/activity with…
0
votes
1 answer

How to make android remote PowerPoint control app?

I want to make an app to control PowerPoint via Wifi or Bluetooth. Just an easy app like "click button" to go to the next Slide or the previous Slide. I googled and searched on stackoverflow, but could still not find a way to do it. Can you show me…
0
votes
1 answer

How to save Current language In Multi Language?

I am making a multilanguage android project. I did it, but when I closed the app, it was back to default language. I was googling and searched some topics on stackoverflow. They say, I have to save the current language with SharedPreferences. I…
0
votes
2 answers

Error with multilanguage in android?

I'm making multi language for my android project. Everything is perfect. Except when I close the application and start it again, it turns back to the previous language. For Example: I have 2 languages Vietnamese and English. When I start it's…
0
votes
2 answers

what is better min-sdk version 2.3 or 3.0 for android fragment based app?

I am creating an fragment based app So I want to know which one is better.If I choose 2.3 then what what problem will faced?
Dishant
  • 19
  • 3
0
votes
1 answer

Android: NullPointerException Unable to load database into listview within a fragment

I've been searching for a while trying to find how to populate a listview with information from the MySQLite database. Now when I think I finally found some information I come up with NullPointers. Here is my code (HomeFragment.java) : package…
0
votes
1 answer

How to list data in the Swipeable Tabs that comes via JSON

I have a scenario where there are three tabs:- Products Jobs Services I have parsed the json but I could'nt understand why the data are not getting displayed. The Code of Swipeable Tabs is given below- public class Post extends NavDrawerActivity…
0
votes
2 answers

Android Application Null Pointer Unable to start Activity ComponentInfo

if anyone could help with this that would be great! I keep getting a null pointer error which is odd because the application was working fine a few minutes ago and I cannot see what is wrong, it crashes on launch. If you need anything else that will…
0
votes
1 answer

Error:(72, 42) error: incompatible types: FragmentActivity cannot be converted to Fragment

I am having so issues with my project, i am getting the error: Error:(72, 42) error: incompatible types: FragmentActivity cannot be converted to Fragment. Could anyone assist me on this issues? This is one of my Fragments public class…
0
votes
2 answers

What callback exists for a FragmentActivity, ie. onAllFragmentsHaveBeenCreated()?

I am trying to find a callback for my FragmentActivity that happens 'after' all of the fragments have called 'onCreateView'. The reason for this is that my Fragment implement my interface: public interface LifeCycleFragment { public void…
Kamilski81
  • 14,409
  • 33
  • 108
  • 161
0
votes
3 answers

How to replace current fragment view with another fragment view

I have MainActivity as listViewFragment = new ListViewFragment(); getFragmentManager().beginTransaction().add(R.id.fragmentSensors, listViewFragment).commit(); Then I have ListViewFragment and ListViewAdapter class defined which works fine. …
0
votes
0 answers

DialogFragement state loss in FragmentActivity in Android

I have a FragmentActivity and this class is subclassed into various activities that I am displaying on various tabs and the user can switch between these tabs. I have a service running as well. In pause state my application continues to work and if…