Questions tagged as 'android-fragment'

2
answers

Why can not I see a JSON query using the Volley library (Web Services)?

I'm trying to create a web service using the Volley library, only when I run my app on a physical device I do not see the data that is hosted on a free server. The data is already in JSON but it does not remain unseen, already searched on the...
asked by 05.12.2017 / 23:17
0
answers

Go from one fragment to another through a button

Good I have Navegation Drawer inside of it I have a fragment that is activated when I click on gallery (which is in the slide bar by default), inside that fragment I have a button, my question is, how can I show another new fragment by pressing...
asked by 28.11.2017 / 00:42
1
answer

Change the theme of the activity from a fragment

I need you to change the theme of my MainActivity when entering a Fragment HomeFragment.java getActivity().setTheme(R.style.SoonticketThemeMain); So far that has not worked for me This is my Activity package com.soonticket.activity;...
asked by 28.11.2017 / 08:45
0
answers

RestoreInstanceState Android Fragments

I'm making an app where the camera can be used. The thing is that I found a tutorial, but use Activity and I'm using fragments. The point is that everything works perfectly, but I realized that the onRestoreInstanceState method does not have the...
asked by 13.11.2017 / 20:07
0
answers

Access the elements of a Dialog Fragment called from a fragment

The fact is that my MainActivity is a BottomBarNavigation Activity, which has three fragments where all the elements are loaded so that the user can interact. In one of those fragments there is a list in which, when the user selects an item, the...
asked by 09.11.2017 / 12:59
1
answer

I do not get the icons that I have in my items in the menu I created in my ToolBar

I do not get the icons that I have in my menu in the menu I created and I get the following error that I guess does not let me take them out on the visa, they come out on the right side of the Preview but when I run the app does not only...
asked by 13.10.2017 / 01:26
0
answers

Destroy a [duplicate] activity

Good, I have a problem with my application, when I open an activity and it is finished doing what is required with that activity, it is passed to the other, however, if the user presses the back button of his device he returns to the previous...
asked by 05.10.2017 / 18:00
1
answer

Execute in a fragment

Good, I have the following code and I would like to know if it can be modified to be executed from a fragment, the issue is that there are parts that I do not know how to modify and that turn red in the android studio This is the code: priv...
asked by 16.10.2017 / 17:00
0
answers

Black screen when I pass Fragment

When a button is pressed the first Fragment retrieves information from a server, in some cases this information takes time due to the bad quality of the links. At the moment of the transition from the first to the second Fragment the screen turn...
asked by 29.09.2017 / 03:34
1
answer

Navigator Drawer on fragments

I am using a navigation drawer and in a fragment I have something like a menu, with different buttons which when pressing each one of those buttons takes you to a fragment with different content, to achieve this I put the code below, What happen...
asked by 04.10.2017 / 06:30