Questions tagged as 'java'

1
answer

java.lang.NumberFormatException: null what does it mean?

I'm getting an error and I do not understand where I have it, it says it is when importing the file however after reviewing everything I still do not understand.    java.lang.NumberFormatException: null This is the method to load interfac...
asked by 07.12.2017 / 14:09
3
answers

Application Title seen in the TOOLBAR

Currently I have the problem that the name of the application <string name="app_name">Banred</string> I get it in the Toolbar of the main menu and I really do not want the name to be seen My toolbar is...
asked by 21.12.2017 / 19:12
1
answer

implement performClick on android?

when I use the setOnTouchListener on a button, when I overwrite the onTouch method it tells me this    Custom View ImageView has setOnTouchListener enabled but does not replace performClick If a view that overrides onTouchEvent or uses an...
asked by 06.12.2017 / 05:04
1
answer

What does it mean :: in java?

Looking for how to sort a list of objects by a parameter I found this solution: lista.sort( Comparator.comparing(EntradaLoteVo::getFechaRecepcionLote) .thenComparingInt(EntradaLoteVo::getId)); And I'm struck by this: EntradaLo...
asked by 04.10.2017 / 17:29
1
answer

Change KEYBOARD LANGUAGE in android studio

Dearly I am currently encountering some problems at the time of some classes that vary according to the keyboard that the phone has set, there is some way through the Android studio SDK to change the default keyboard of the phone, at least while...
asked by 07.11.2017 / 14:37
2
answers

Synchronize threads in Java

I have an exercise of threads to record and read a text file in Java, but what I do not get is that the threads are synchronized. In the way I have it, the threads interfere with each other, and at the time of writing in the file the thread for...
asked by 11.11.2017 / 15:04
1
answer

Transform cardinal points in latitude and longitude in java

I have a Java program in which I use an object type that stores the puntos cardinales of a place (north, south, east and west) and I need to transform it into latitud and longitud . How can I do it? Do I need an ext...
asked by 03.11.2017 / 09:57
1
answer

Parse Geo URI in Java

I need to parse a URI of type geo. Samples: geo:79.786971,-124.399677 geo:42.374260,-71.120824?z=16 For the first sample I have the regular expression to filter that its structure is correct: ^geo:.(\-?\d+(\.\d+)?),\s...
asked by 15.11.2017 / 19:32
1
answer

SQL INNER JOIN with three tables

I have a database about movies and I want to show the name of the genres a movie is assigned to. Diagram (example values in red): - EDITED - This error comes out:    The method getString (String) is undefined for the type String...
asked by 13.11.2017 / 00:44
2
answers

factorial of a number without overflowing the long variable?

I have a code that performs permutations, and at first seems to work, the problem is that when you enter a number greater than 20 the results are erroneous and as I read and it is because they leave so many result characters that are not possibl...
asked by 01.08.2017 / 09:59