Questions tagged as 'android'

2
answers

Error trying to load map in a fragment

I'm having a problem loading Maps, I'm using SupportMapFragment, it does not show any visible error in the code but in Logcat it shows me the following error:    java.lang.NullPointerException: Attempt to invoke virtual method 'void   com.goo...
asked by 01.11.2017 / 23:16
1
answer

Verification of a Checkbox

Hi, I have a question about a CheckBox of Acceptance of Terms of Use. I have 2 text boxes (EditText) and a CheckBox. What I need to achieve is that if the 2 text boxes are empty and the checkbox is not "checked", it will return an error message....
asked by 05.11.2017 / 22:44
2
answers

Cursor Android Studio Get data

I have the following Cursor that gets the phone number and the calendar Spinner imgpayment = (Spinner) findViewById(R.id.imgpayment); Cursor mCursor = getContentResolver().query( ContactsContract.Data.CONTENT_URI, new String[]{Cont...
asked by 23.10.2017 / 17:07
2
answers

Change the color of the floating text in a TextInputLayout

My goal is to change the color of the floating text when this field loses focus, I explain: I have a login screen, in which the background is red, so the goal is that the text is white to avoid losing, the problem is that when this field has tex...
asked by 11.10.2017 / 18:17
2
answers

Time limit, asynchronous reproduction

I am programming an audio streming app, everything works, the problem is that if one of the url is offline, it stays loading, I would like to set a time limit, for example if in 10 seconds it has not loaded, that stop trying and notify. my code:...
asked by 09.10.2017 / 14:34
1
answer

How can I access a folder in the internal memory in Android? [closed]

I can not find the way to access a folder on android. I have some images that I copy when I create my application in a route of the internal memory, I want that when pressing a button this folder is opened, but I do not know how to do it or wher...
asked by 19.09.2017 / 01:06
2
answers

Change ImageView src by the name of an Android studio image

How can I dynamically change the image of an ImageView using the name of the image? Suppose I have a blue_yellow button, a black_white button and a default button; At the same time I have an image with different backgrounds in the drawable fo...
asked by 04.02.2018 / 23:02
2
answers

Android studio does not find a dependency

android studio asks me for a class that is supposedly in a jar, but can not find it I have a class with the following imports: import com.google.gson.*; import com.sun.net.httpserver.*; import java.io.*; import java.net.*; import java.nio.char...
asked by 05.02.2018 / 16:13
1
answer

FCM with open app does not get notifications

Well as the title says, my test app with FCM does not get PUSH notifications when I have the app open, if I close the app they arrive normally, which seems strange to me since most people have problems with the app closed and not open, I leave m...
asked by 05.02.2018 / 15:26
2
answers

Android Studio: The opening quotes should be used for the 'X' attribute associated with an element type 'x'

The following error occurs to me and I do not know why:    Error: Execution failed for task ': app: processDebugManifest'.   com.android.manifmerger.ManifestMerger2 $ MergeFailureException: org.xml.sax.SAXParseException; lineNumber: 17; colum...
asked by 31.08.2017 / 13:43