Questions tagged as 'android'

2
answers

Activate the BroadcastReceiver after a certain time

My goal is that the BroadcastReceiver does NOT activate when the app is installed, as it does, but waits for a button to be pressed and after pressing that button it waits for an X time and starts to perform its functions. In this case you must...
asked by 24.02.2018 / 23:39
1
answer

Cordova - add platform

Develop a small application for cordova, but when I add the platform I get the following error. I do not know if I'm omitting something. and if I continue with the cordova build I get this (which I imagine is due to the previous error)...
asked by 26.02.2018 / 16:10
1
answer

Parse JSON objects with random names

I'm trying to pair objects JSON with GSON I'm used to knowing the names of the objects, I create the classes and I just have to call those classes to use the objects and build custom adapters and finally fill lists or other views easily with...
asked by 31.01.2018 / 21:38
2
answers

Pass a json object from one activity to another

I have the following problem I am trying to bring a list of items that I get from a json , from a activity through a controlador q you request it to a class that has the json . Inside the code that I am attaching what I...
asked by 31.01.2018 / 00:39
2
answers

Recover the text of an EditText in a DialogFragment?

I am working with DialogFragment to be able to show a dialog box where I request two data that are captured by two EditText, the progblem is when I want to recover what is written in those EditText, how can I recover the contents of those EditTe...
asked by 31.01.2018 / 21:11
1
answer

Xamarin Android - Get GPS date

I have a question to ask. I have an app that works as a work attendance clock, and when making the entry or exit, I get the GPS data, these are: Latitude Length Date and time. The detail I have is that if you change the time of the de...
asked by 13.04.2018 / 00:49
1
answer

java.lang.RuntimeException: Unable to start activity ComponentInfo

I do not understand why these errors came out I saw in google that it was because I had a code above setContentView() but I removed all the code from that java file and I just left the design and still did not close the application. Re...
asked by 09.02.2018 / 19:19
2
answers

Change hexadecimal of colors.xml android studio

I have an activity in which I need to change the color to several elements, so doing it one by one can be a bit tedious. These elements share a common denominator that is the color from the corresponding resource. Is it possible to change the...
asked by 29.01.2018 / 03:13
2
answers

Android Does Sharedpreferences save null?

Good morning everyone! I'm making an app using Android Studio. It is very simple, it has a numeric field to enter a número de cliente and a button of confirmar that based on the number entered brings you the puntos of that c...
asked by 25.01.2018 / 00:45
1
answer

Avoid leaving the gridview hidden when there are no results in the search

In my app, implement a SearchView. I managed to make it work perfectly but I had several doubts when I saw it work: I need a mechanism for when there are no results I show a textview that there is not ... so I did the following searchView.s...
asked by 25.01.2018 / 06:12