Questions tagged as 'android-fragment'

4
answers

Difference between Fragment and FragmentActivity

Well, the title is pretty clear, what is the difference between Fragment and FragmentActivity? I would like to know to know which is the best option for the following case: I have two fragments and in a main activity (with a NavigationView) i...
asked by 29.11.2016 / 17:23
2
answers

When starting Navigation Drawer enter with a fragment directly

it's just that, I'm creating an app which has a login (main activity) and a record, when I pass this process, I enter a Navigation Drawer activity I have the fragments but it is blank, when I step on it the options of that menu are loaded the fr...
asked by 25.11.2016 / 19:59
1
answer

BroadCast Receiver java.lang.NullPointerException

I'm doing an Android application for a barcode grabber, basically what the application does is: From a navigation menu I select a winery that takes me to a fragment and in this fragment I have a spinner and two text view, I select a spinner p...
asked by 25.10.2016 / 17:06
2
answers

Go from one fragment to another when selecting an item from a RecyclerView

I'm working with Tabs Fragments. Within the first fragment I receive Data from Firebase and show it with a recyclerview, I use the ItemClickSupport class for the onItemClicked method. This is my code: ItemClickSupport.addTo(recycler).setOnI...
asked by 18.01.2017 / 06:14
1
answer

Error with Fragments: "java.lang.IllegalStateException: FragmentManager is already executing transactions"

I'm having a small problem when creating fragments, it's that I get an Exception as if getSupportFragmentManager was already running. The error:    E / AndroidRuntime: FATAL EXCEPTION: main                     Process: jhon.casique.baccus,...
asked by 22.10.2016 / 18:15
1
answer

Android: Activity with rounded edges

I am trying to make my main activity, which handles fragments, have rounded edges, a clear example is this image How could I do that? I was trying with this that I found on the same page LINK . <?xml version="1.0" encoding="utf-8"...
asked by 16.08.2018 / 21:53
1
answer

Sending an image by WhatsApp

I want to send an image by whatsapp to a specific phone number without having to access the image gallery and within the contact's chat. Now what I do is the following: Intent intent = new intent(); intent.setaction(Intent.ACTION_SE...
asked by 20.06.2017 / 09:13
3
answers

Change from one fragment to another by means of a button

What I try to do is move from one fragment to another when a button is pressed, the code I am using is: public class DimensionFragment extends Fragment { Button Bmeters, Bfeet; @Override public View onCreateView(Layo...
asked by 26.04.2017 / 18:19
1
answer

error running the app in android studio: "is not valid file-based resource name character"

good simply the app did not want to run anymore, and this is the code that comes out, and try to REMOVE all the fragments (that's what I did and still nothing) Error:Error: 'C' is not a valid file-based resource name character: File-based reso...
asked by 05.12.2016 / 21:56
1
answer

How to close an external application from my application

I will simplify the question: I want to launch an external application at a time that I developed. Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.mariana"); startActivity(launchIntent); and with this code I ope...
asked by 26.12.2017 / 19:08