Questions tagged as 'android-fragment'

0
answers

Call error

I'm using Fragment and making adaptations, as in getIntent() ... Inserting it getActivity() as it was explained by a user, other times it was informed was useful and worked, but this time a error just in the line where I try...
asked by 19.01.2016 / 22:21
0
answers

Pass ActionbarActivity to Fragments

In order to use an activity in navigation drawer a activity needs ta extend fragments, and my ta extend action bar And in my action bar, have the codes of a remote database, how do I get the action bar for fragments? I created another class and...
asked by 30.08.2015 / 19:22
1
answer

How to differentiate in which viewpager this is when I try to get a print with a floating button?

I have a view with several fragments, I added a floating button to get print from the screen, but I would like to know how to differentiate each fragment to put different names in the photos. I have the code below, which takes the photo but o...
asked by 25.08.2015 / 16:38
0
answers

Attempt to invoke virtual method on a null object reference AsyncTask fragment

I've been in this for several days and I still do not understand why this error, I have an AsyncTask that pulls Urls from a database / p> I want to get the url and set the imageView gives an error on this line imageviewArray[n]...
asked by 19.10.2015 / 22:53
1
answer

When browsing in screens of fragment and return, the screen turns white

I have in MainActivity 3 (three) Fragments (HomeFragment, ChannelFragment and SearchFragment), with change made through click-only tabs. Inside the HomeFragment I have two (2) Fragments (VideosFragment and PlaylistFragment), this one with change...
asked by 25.03.2016 / 02:42
0
answers

Load an activity inside a fragment with tabHost

I'm starting with android studio reading some things and watching some videos on youtube, basically what I want to do is a calculation program to make my life easier on my service, some simple accounts I've already been able to do (I only...
asked by 18.07.2015 / 03:10
1
answer

Error when reopening Map in fragment within DrawerList

I'm developing an Android Application and am having a problem navigating between Fragments. I created a drawerList and in it I have some fragments, in one of these fragments I have a map, when initially accessing this fragment, its components...
asked by 08.01.2015 / 14:32
1
answer

How can I switch tabs using a spinner?

I would like to implement the tab change for a spinner that I added inside the toolbar. public class MainActivity extends FragmentActivity { /** * The {@link android.support.v4.view.PagerAdapter} that will provide * fragments for each o...
asked by 05.12.2014 / 03:21
0
answers

How to use another class for the same layout

It is as follows: I made adaptations in the codes to work the Slider Menu style so I had to use the Fragment interface, as shown in the code below, but in this same layout in this case it is called the xml "fragment_listen", the problem is that...
asked by 04.11.2014 / 22:06
1
answer

Retrieve fragment data

I have an Activity with 4 tabs, in each tab I load a different Fragment, in each fragment I have a fomulario, and in the last I have the Register button, when I click on Register I want to get the data of all the other fragments, I thought creat...
asked by 28.07.2014 / 19:43