Questions tagged as 'java'

1
answer

Android Studio preview error

My problem is that after installing and updating Android Studio, I see an error in the design tab that does not let me see the appearance of the app or the changes I made to it. PC specifications:    Intel i3 2328m    4 gb Ram    Wind...
asked by 23.06.2018 / 02:00
3
answers

Items are missing when receiving Array

Everything works correctly for me by only collecting the values of an array, but when I collect the data of the two that is what I want, I am missing data, as I can do it to have them in the same activity: @Override protected String doInBa...
asked by 03.01.2016 / 15:11
2
answers

I need to use the GPS in Android when the phone is blocked or we exit the application

I have in Android a class Map that collects the points of latitude and longitude to be able to realize several calculations like speed, etc. The fact is that being an app to monitor a cycling route, the GPS should never stop working until the...
asked by 01.11.2016 / 19:22
1
answer

Static methods vs. instance method in testing java

I have a class SystemPropertyHelper in the web service layer, which has only static methods to recover objects from the core of the application, this in order not to mix functionalities between layers, and the handling of exceptions among...
asked by 14.11.2016 / 21:25
1
answer

date format to string in java with apache from excel

I have to read the format of a cell with date to String, it works fine but the year is strange, I attach part of the code and what it shows: case Cell.CELL_TYPE_NUMERIC: SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy...
asked by 28.09.2016 / 04:54
3
answers

Heap java administration

I'm doing a copy paste, from excel to JTable . The problem is that it consumes too much memory. I have looked for solutions to do that procedure in other ways but I can not find it. If anyone knows another way to do it, I appreciate it bec...
asked by 03.10.2016 / 17:24
2
answers

Save cmd command result executed from java in a variable

Is it possible to store the result of the execution of a command from java in a variable of type string? I've tried it this way but the output of stdInput.readLine () is always NULL, something I'm doing wrong. Another question is whether it is p...
asked by 26.01.2017 / 19:31
3
answers

Show a dialogue on android

I have a problem: I want to show a dialogue that I made from a layout that has a text and a button but I do not understand because it tells me that the application stopped. Code: public class MainActivity extends AppCompatActivity { Bu...
asked by 18.12.2016 / 17:36
2
answers

Open a window from another

I have two windows that you can see in an image below. Code VistaArtistasBuscar : public class VistaArtistasBuscar extends JFrame implements ActionListener{ /** * Componentes de la ventana */ private Coordinador miCoordinador; p...
asked by 14.05.2016 / 15:24
2
answers

The JProgressBar does not appear when I execute it

I have a JFrame frmMenuPrincipal where it contains a JMenuBar and that JMenuBar contains a JMenu mConsulta and within that JMenu contains a JMenuItem miCobranza . When I click on the...
asked by 20.04.2017 / 17:55