Questions tagged as 'java'

1
answer

Execute a cmd command from a Java program

Hi, I am trying to run a .bat from java, that has a command and must create a file with the output, the .bat works correctly, the problem I have when invoking it from the java program since it does not wait for it to finish and my file is create...
asked by 18.02.2018 / 11:03
1
answer

Zxing QR Codes android

I am following this answer for the use of a perzonalized layout link summarizing the amount of all libraries maven { url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo/maven-repository/" } compile '...
asked by 16.02.2018 / 16:39
1
answer

Compare several patterns with Pattern and Matcher in java

I have to read from a text file data line by line and, depending on what is on the line, apply a different pattern to recognize the information. This is a part of the file: [018-0001] type= category name= Distritos id= http://datos.madrid.e...
asked by 16.02.2018 / 22:58
1
answer

How to fill a personalized ListView dimanicamente in android?

I am trying to fill a list in Android dynamically with a FOR The ListView is filled in manually like this: Lista_productos_categoria lista_productos_categoria_data[] = new Lista_productos_categoria[]{ new Lista_productos_categ...
asked by 21.03.2018 / 19:52
0
answers

From where to run a FileWatcher on a project with spring-boot?

I already have a fileWatcher running with WatchService, it executes a task when a file is added to a predefined folder in the properties of the application. However I do not know which is the best site in the application to place it. Currently I...
asked by 21.03.2018 / 13:03
1
answer

Content ViewPager is deleted when exiting the fragmen and returning with the button back

I have several fragments which have several tabs, the problem is that when changing the fragment and returning the button behind the navigation bar, the content does not appear, only the bar appears with the titles of the tabs. This is my tab...
asked by 21.03.2018 / 19:46
2
answers

How to change the title name in the toolbar? And how do I center it?

I would like to know how to change the title of each activity (I have eight different activities) in the toolbar. I have created a toolbar.xml <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android...
asked by 21.03.2018 / 19:45
2
answers

Read a matrix from a text file txt and load it into jtextfield

If someone can help me, I'll thank them. I have a code that reads me a matrix of X by X from a text file that I have saved on my machine, I print it on the console and everything is fine. Now, I need the data from the matrix to upload them...
asked by 22.03.2018 / 03:29
0
answers

Add Menu does not let see my Android fragments

I'm starting with fragments and I have a small app with 2 fragments type tabs, I wanted to add a side menu which I could also do correctly, the error comes at the time of wanting to have the 2 things, if I put the menu the fragments they do not...
asked by 21.03.2018 / 13:39
0
answers

Performance problem in java?

Greetings to all. I would like to validate if someone else has seen an apparent problem associated with java buttons. I have a series of cores in a simple GUI and does not take the ActionPerformed at the first click (I have to press a second tim...
asked by 12.03.2018 / 02:16