Questions tagged as 'java'

2
answers

Vector repeats the data of a query

my problem is that I have the following query: SELECT respuestaId, respuesta, estado, r.preguntaId FROM respuestas r, preguntas p WHERE r.preguntaId = p.preguntaId AND r.preguntaId = 1 The result of the query is 4 responses, for exa...
asked by 07.09.2017 / 03:27
1
answer

How to decrease memory consumption in Android App

Hello friends, I have a question for you. I have an android app which basically are two activities the main_activity and a details activity . The first has a recyclerView with elements and when I touch one I enter the activit...
asked by 16.06.2017 / 18:37
1
answer

How to insert data of type string in a list by means of a queue in JAVA?

I'm trying the following List <String> enrolling = new ArrayList<String>(); String name; enrolling.offer(name);     
asked by 20.04.2017 / 02:41
1
answer

Glide when rotating device does not crop properly centered on Android

Definition of ImageView <ImageView android:id="@+id/cover_image" android:layout_width="match_parent" android:layout_height="wrap_content" android:adjustViewBounds="true" android:contentDescription="@string/desc_em...
asked by 19.04.2017 / 19:47
2
answers

backup postgresql from java

I have a code implemented for backup but when it runs it does not do anything to me and it does not give any errors. I have searched the Internet for other ways to do it but all the examples are similar to the code I use (besides I tried them an...
asked by 19.04.2017 / 22:20
1
answer

Encode base64 Java image

I'm trying to convert an image to a String base64 (I need to send it via POST ) and I can not get it. I use the following instruction: String imgDS = DatatypeConverter.printBase64Binary(Files.readAllBytes(Paths.get(".\imagen.png")));...
asked by 20.04.2017 / 18:18
1
answer

Display a message with an array

I have a table that is full of information, before sending a request select the rows I want to send, when I have finished selecting the rows I click on the send button (it is sent correctly). What I want is that when the rows are sent out a s...
asked by 17.04.2017 / 22:50
2
answers

Problem of a JComboBox in a JTable

I have a table tbDocSolicitud , which is full of information from the Sql Server database and has 18 columns. In column number 13 Centro Costo Destino I added a JComboBox , called cboCentroCostoDestino , so that it ap...
asked by 18.04.2017 / 22:27
1
answer

Zoom, rotate and move inside an ImageView on Android

I am creating an image viewer, style as it takes android native, that lets expand the image, move for it, with the typical gestures: Pinch to zoom Double tap to zoom automatically By having the expanded image you can move through it Wh...
asked by 17.04.2017 / 22:54
1
answer

Error sending notifications to iOs devices

I am implementing sending notifications from a .jar, notifications in
asked by 12.04.2017 / 10:15