Questions tagged as 'android'

1
answer

How to fix: keytool error Keystore was tampered with, or password was incorrect

When trying to know the Sha-1 fingerprint of the keystore of my studio android project, for production, it is showing me this error, the alias and the passwords are correct: I'm doing it on the console from the location: C:\Program Fi...
asked by 06.04.2018 / 18:23
1
answer

Problem with date format

I am working on a mobile application in which I keep data in my device database, one of those fields is the date and time but when I want to insert these fields from my application to Oracle, it marks me an error the format of the date which I h...
asked by 20.03.2018 / 21:59
1
answer

Records in .txt file [duplicated]

I'm trying to save some words contained in a variable text in a .txt file by clicking on a button . The drawback is that you should be saving a sequence of what you put in the variable text , but only save what you put it in the last exe...
asked by 13.03.2018 / 16:22
2
answers

As a condition if an EditText is empty or not within an Intent.EXTRA_TEXT on Android?

I have a function that sends an email, the data that goes inside the mail are loaded by the user in the app, they are a series of fields of EditText , now what I need to do is within this Intent.EXTRA_TEXT condition if a field is em...
asked by 13.03.2018 / 18:02
2
answers

getIntentExtra returns default value

Hello everyone I am new to android and I am trying to pass an integer from activity A to B and I do it in the following way: Intent intent = new Intent(this, newClass.class); intent.putExtra("entero1", 5); startActivity(intent); A...
asked by 11.03.2018 / 18:36
1
answer

Compare values between two HashMap

I have two HashMap in my code HashMap<Long, Double> partesTrabajoIdHorasDb = new HashMap<>();//ID+horas HashMap<Long, Double> partesTrabajoIdHorasLocal = new HashMap<>(); The first Hashmap    par...
asked by 06.03.2018 / 17:09
1
answer

call a method from a DialogFragment

As I can call a method from DilogFragment , the problem is that in this DialogFragment I use it to generate a dialog box where I enter two data that is stored in a file until that part I have no problem, it is saved correctly everyt...
asked by 27.02.2018 / 19:28
1
answer

Sensors in Android. I can not get them to show

I have a program in which I must show in some textview the information of the sensors that is obtained from the device, but they are not shown. This is my code: private ListView miListView; private SensorManager miSensorManager; private S...
asked by 26.02.2018 / 22:40
1
answer

The data is not shown in my table and the window is closed when trying to open it (it is a fragment)

This is my Logcat W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView I/Timeline: Tim...
asked by 27.02.2018 / 14:04
1
answer

Select query in database firebase Android

I have the following database in firebase Now I want to bring the titles of the cities depending on their zone number I tried to bring the data and put it in a TextView but so far it shows nothing DatabaseReference myRef = Firebase...
asked by 19.03.2018 / 15:55