Questions tagged as 'android-fragment'

1
answer

No Open the Fragment, I thunders when I open it with a button

I am new to the use of Fragments, and I have a doubt, I do not know why when I click on a button, I do not open the Fragment that I invoke .. I already look for several solutions but I continue with the same thing, I thunders here I leave the co...
asked by 13.12.2018 / 19:30
0
answers

Bluetooth in ActivityMain for different Fragments

I have an application that uses TabbedActivity with 3 Fragments where the intention is to show data received by bluetooth. My idea is to put in the main class the reception of the data that I will keep in Lists and those Lists to pass them to...
asked by 05.12.2018 / 20:32
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

Fragments life cycle - Error

Good day My application consists of an activity where a Fragment (F) is initially loaded getSupportFragmentManager() .beginTransaction() .add(R.id.content_frame, newFragment).commit(); F contains 3 buttons, each of t...
asked by 02.12.2018 / 15:00
1
answer

Problem when moving from one Fragmen to another Fragment

I have some Fragment classes in which I have added some buttons to go from one Fragmen to another Fragmen. I have commented that for the transitions between Fragment we use FragmentTransaction and instead of getFragmentManager...
asked by 05.12.2018 / 15:34
1
answer

Error sending an Integer data from one fragment to another

I'm doing an App where I show a catalog of products. Every time I go into one, I select any product I skip a NullPointerException when what should happen is that it goes from fragment with the list of products to fragment wi...
asked by 26.11.2018 / 15:56
1
answer

Error running compositeDisposable in an Android fragment

I hope you can help me :) I've been stuck in this and some time. I am running an app that fills Mysql with data and when I try the method in an Activity it works normally, but when I execute it in a fragment it gives me an error when I execute i...
asked by 15.11.2018 / 16:52
0
answers

How to generate a TimePicker from a fragment?

How I need to generate a Time Picker from a fragment, the problem is that the TimePicker that I've seen (examples) are generated from an Activity, and it turns out that for the fragment is not the same, I need to store a period of time and in th...
asked by 12.11.2018 / 08:09
0
answers

Android Studio - How to extract the id from the main container of an activity?

How can I make the BlankFragment.java extract the id from the main container of the fragment_blank? BlankFragment.java public class BlankFragment extends Fragment { // TODO: Rename parameter arguments, choose names that match // the fragmen...
asked by 14.11.2018 / 22:49
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