Questions tagged as 'java'

2
answers

How to get ID3 tags from an MP3 file?

How to get the arguments that contain a mp3 file using JAVA code, that is, the information such as the year, title, singer, year ... ? The issue is that what I want is to edit those values or objects ID3 by programming it with java, I...
asked by 01.07.2016 / 20:33
2
answers

Listview a Textview on android

Developing a mobile app in android-studio I have a ListView and I want to get the event in which when I select an Item from the list I show a certain String in a TextView . For example: Selection in Item A presents...
asked by 26.06.2016 / 16:54
1
answer

Long to Float in Java?

Good morning, I have the following problem I get in a variable of type Long a conversion of milliseconds to hours, but I need to store them in a Float type variable. tiempos.setFechaHoraFinal(fechaActual); tiemposFacade.edit(tiempos);...
asked by 11.09.2017 / 15:28
2
answers

Thread concurrency problem. Thread Race Exercise. JAVA

My problem is as follows, I have a runner class, the only thing he does is a method run (thread) that simulates the distance traveled and is saved in the variable distance that is a summation of the result of the Math.Random();...
asked by 26.04.2018 / 19:43
2
answers

Get the device owner's contact on Android

In the Contacts application, the first one shown is the owner's. Is it possible to extract contact information from the owner of the device? I have searched for all the contacts available from the provider ContactsContract.Contacts...
asked by 18.09.2017 / 20:52
2
answers

Doubt with hashmap [closed]

I have the following list: List<DatosAutores> datosAutor= new ArrayList<DatosAutores>(); datosAutor.add(new DatosAutores("157","Joaquín Ordóñez Sedeño","[email protected]","Anuario Mexicano de Derecho Internacional","4027","Dere...
asked by 09.01.2016 / 00:43
3
answers

Mascara does not show decimals with 0

I have this class that I use as a Number Mask public class Mask implements TextWatcher { private DecimalFormat df; private DecimalFormat dfnd; private boolean hasFractionalPart; private EditText et; public Mask(EditText...
asked by 14.09.2017 / 17:32
2
answers

Read repeated characters

I need to make a code where I read a text or characters that I enter tell me which is the most repeated I already have my code, it reads me the characters but when it comes to saying which is the most repeated, it bursts public static void mai...
asked by 06.06.2017 / 19:05
1
answer

JDK 8 of 32 and 64 bits

Good morning, everyone. I have a question not exactly about programming. I just changed my operating system windows 7 from 32 bits to windows 7 from 64 bits. I use netbeans to program in java, obviously I had to save all my projects and install...
asked by 21.04.2017 / 23:34
1
answer

Validate data entry

You could help me with the implementation of a java code for data validation, for example, by typing a String "1234" , or "12.34" , or "12.34\n" or "\n" , or well that does not exceed the number of digits required (I do...
asked by 25.04.2017 / 16:30