Questions tagged as 'android-fragment'

6
answers

Do not go back to a previous activity

The fact is that I want that when the application is executed for the first time, the first activity of PresentacionActivity is shown and that when the user press continue button go to the next activity, start the MainActivity. After this, that...
asked by 17.09.2018 / 17:09
1
answer

How to send data from one Fragment to another Fragment?

I have created an application where I create 3 Fragments which I visualize with tabs and I want to send information from one fragment to another .. but I do not know what I'm wrong with as it does not mark a code error, but when I click on it bu...
asked by 14.10.2018 / 17:53
2
answers

Problem with Gridview shows com.mac.fablab.fablab.Objetocurso@53683d4c

I have a problem with the ArrayAdapter inside a Fragment, apparently if I display the number of objects inside my ArrayList but it shows me the following: This is my Fragement_2.Java file public class Fragment_2 extends Fragment { Lis...
asked by 27.08.2017 / 19:15
2
answers

WebView in a fragment Android Studio

I'm trying to show a web page in a web container, WebView, I've already done it but in a normal activity, now I want to do it but in a fragment, since I'm using a Navigation Drawer. I previously had the following code which worked well for me....
asked by 06.06.2017 / 21:01
1
answer

android activity call to fragment

I have an activity from which I upload a fragment or another by clicking on a notification. The code is as follows: public class Repeating_activity extends AppCompatActivity { @Override public void onCreate(@Nullable Bundle savedInstanceState)...
asked by 28.05.2018 / 11:47
1
answer

Go from an activity to a fragment

I am creating an application in which the user starts from a fragment, he is redirected to an activity where he introduces a series of data and I want him to return to the fragment from which he left. But at the time of returning to the fragment...
asked by 05.04.2018 / 17:41
3
answers

AndroidStudio error implementing GoogleMaps

Good morning and thanks in advance, I am implementing google maps in an application and the following petardazo appears: InflateException: Binary XML file line # 6: Binary XML file line # 6: Error inflating class fragment, I took a whole day giv...
asked by 19.12.2017 / 10:31
1
answer

Error: Attempt to invoke virtual method 'java.io.FileOutputStream

I have an error that I do not understand because it shows, I have two classes one is the class called Dialogue that extends from a DialogFragment, in this class I have a method called onClickSavePersona , this class uses it to create a dialog b...
asked by 05.03.2018 / 15:45
1
answer

I can not have getSupportFragmentManager ()

' import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.view.LayoutInflater; import android.view.View; import andro...
asked by 17.01.2017 / 23:07
2
answers

Why is the error, in this fragment?

Good morning classmates, I am working with fragments because I am implementing a TabHost, but it seems that many things could fit when working with the fragments, I got the error that appears in the following image implement the fragmen...
asked by 22.03.2017 / 16:33