Questions tagged as 'android-fragment'

1
answer

problem with setResult (1, intent) returns another value

I am sending yamar to an activity from a fragment to process an information but when I return the result in the resultCode of the onActivityResult returns me random values, what is this? this is the code I'm using: Intent intent...
asked by 01.09.2017 / 05:54
1
answer

Stop Audio in fragment when changing fragment with ViewPager

I have an activity called EstacionesF, where with has a ViewPager. in the ViewPager there are 12 fragments and in each fragment it contains audio, when I execute the play button and change to the next fragment, it is still heard, it only stops p...
asked by 20.08.2017 / 17:40
0
answers

Open different fragments of ViewPager from different buttons

I have this ViewPager and I want that when I click on a button I pass to a fragment of the viewpager and when I give to another one I pass to another or fragment different. package granadabrass.app.ismael.com.granadabrass.fotos; import androi...
asked by 25.07.2017 / 19:28
0
answers

Load data to a spinner of a fragment in a dialog

I have not been able to load the data I have in an array (string) to a spinner that is in a fragment which is shown when I touch a certain button. Button code in the activity AlertDialog.Builder builder = new AlertDialog.Builder(this);...
asked by 01.07.2017 / 01:12
1
answer

How to change a fragment depending on the item selected [closed]

I have a list where I have several options and win the description appears, but I do not know how I can make the fragment that contains the description change according to the item that I select.     
asked by 29.06.2017 / 16:48
1
answer

How can I show two arrays in the same fragment?

I'm trying to do a Array with different categories to show them in the same fragment , the problem is that it only shows me a Array and not both. I would like to know if it can be done like this or there is another way. Th...
asked by 27.06.2017 / 21:45
0
answers

NavigationDrawer + Google Maps problem

Hi, I have a problem pressing an option in my navigationView (R.id.create_marker) I want to create a marker in my MapFragment but I can not do it, any suggestions? public class MainActivity extends AppCompatActivity { private DrawerLayout...
asked by 22.06.2017 / 10:43
1
answer

Fragment error: Error: (55, 85) error: incompatible types: FragmentCu can not be converted to FragmentActivity

I have a problem with a fragment showing me this error:    Wrong 1st argument type. Found:   'com.bicicletas.Fragments.FragmentCuenta', required:   'android.support.v4.app.FragmentActivity' In this line I marked the error in the first...
asked by 07.06.2017 / 19:37
0
answers

Insert buttons and editText in an Android FragmentPagerAdapter

I have a FragmentPagerAdapter that loads in an activity of the app that I am developing. Right now what happened is the values of the background color that the adapter will have. Even that my intention is to make two Adapters where it contains a...
asked by 18.05.2017 / 18:51
1
answer

ListView with fragment button

I have a problem ... I load the list but the button event does not work. fragment_pedido_consultado.xml <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout...
asked by 28.05.2017 / 05:48