Questions tagged as 'fragment'

1
answer

Get different Fragments content [Android]

The point is that I made a section of code where I have several Fragments in the same activity (tabbed activity) and I want to get information from the other text boxes of the previous fragments in the last fragment (because I will make a transa...
asked by 04.12.2018 / 07:06
0
answers

How can I change the font type in a fragment [Android]

How about, I have problems to change the type of source, it turns out that I create a folder called "assets" and that's where I keep my types of sources, the problem is that only fragments do not recognize this folder, instead in the activitys i...
asked by 12.11.2018 / 01:05
0
answers

How to stop the QR reader ZbarScannerView, problem with stopCamera ()

Create an app ... qr selector with zbarscannerview is in a fragment specifically in a RelativeLayout, I already get the QR code, but it freezes when I get it .. with stopCamera () does not stop it .. help please urgently thanks .. So I start the...
asked by 29.10.2018 / 13:31
2
answers

Problems when calling a Fragment from an Activity

My problem is this: I have a MyLocationActivity.java that gives me the location in google maps, the example that I have to send to call that file is to call a fragment that I have declared in my MainActivity.java and what I wan...
asked by 16.10.2018 / 20:58
1
answer

Problem with the fragments in android

Good afternoon friends, get to the point: public class MainActivity extends AppCompatActivity { Fragment currentFragment; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContent...
asked by 16.09.2018 / 00:40
1
answer

The data in my ListView is not refreshed until I press my EditText

I hope you can help me, you will see I have a hamburger menu which loads in its main activity a FRAGMENT with a LISTVIEW and an EDIT TEXT (to search the list), When it starts it fills up normally and shows the info ok, BUT when in the side menu...
asked by 07.09.2018 / 00:20
0
answers

Change selected item in NavigationView when I change the fragment

good morning. I have a problem in which I have the NavigationView template generated by Android Studio, the items in the navigation bar are associated with a fragment, the scroll between the fragments using the navigation bar works fine, but whe...
asked by 15.08.2018 / 13:49
1
answer

java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.inputmethod.InputConnection.closeConnection ()'

I have this problem when implementing a MapView on a fragment public class UbicacionMiEmpresa extends Fragment implements OnMapReadyCallback{ MapView mapView; GoogleMap mGoogleMap; View vista; @Override public void onCreat...
asked by 16.08.2018 / 01:08
0
answers

How do I avoid errors when loading the same fragment?

I am working an Android application that has: Bottom Navigation Firebase Fragments RecyclerView In a fragment I make a firebase query in real time and with the data full a recyclerView, at first everything works fine but I click again on the opt...
asked by 11.07.2018 / 06:12
1
answer

Display my start in Navigation Drawer

I try to start the navigation drawer and the first thing I visualize is the first option of the menu (The first option is called start) without the need of the user to select it. I leave the code if you can help me: public class MainActi...
asked by 04.07.2018 / 02:52