Questions tagged as 'java'

1
answer

How can I place a LoadPage in Selenium globally

Good day, I'm automating a web application (With JAVA-Selenium), since I have to wait between pages, I'm using the Thread.sleep but it makes me a bad practice because I'm putting it between each line of code, I'd like to know if there is an exte...
asked by 16.06.2017 / 17:04
1
answer

Send Text to My Band 2

I would like to send a text from an application in Android to MiBand 2 , I have managed to send numbers in the form of beats, but I do not know how to send text. contants.java public class Consts {//this is common for all BTLE devices. see...
asked by 12.06.2017 / 12:49
0
answers

How to devour a GitHubUser object from the onResponse method, using retrofit2-Android Studio

I want to apply a facade (or façade) pattern to not directly access the retrofit methods from the main activity and I need to return objects. How can I do it? My facade method would be something like this: public GitHubUser getUser(String u...
asked by 12.06.2017 / 06:00
0
answers

Prevent Netbeans from replacing assignments with getters

Sometimes I have in Java something like the following: public class MiClase { Objeto objeto; Objeto objeto2; public void foo() { objeto = new Objet(); objeto2 = objeto; } public Objeto getObjeto2() {...
asked by 02.06.2017 / 23:02
0
answers

Standalone Spinners on expandable android studio list

Good morning, I'm starting to work with expandable lists but I run into the following problem: 1. I have the following expandable list When clicking on one of the questions, this question is displayed with a spinner to select the correc...
asked by 02.06.2017 / 20:37
2
answers

How to make a report or query by range of dates in java?

Good day, I would like to know how to make a report using range of dates (start date, end date) in the GUI Method ... Any help? - process public class GestionReporteVentas implements ReporteVentasInterface{ @Override public ArrayList<Re...
asked by 03.06.2017 / 01:28
0
answers

Difference between persist () and save () hibernate?

I'm wanting to save an External User this is my controller that interacts with the BD The thing that when I want to save a UsuarioExterno with all your documents I see this error.    org.hibernate.PersistentObjectException...
asked by 22.06.2017 / 01:26
0
answers

How to redirect a jsp page to another with servlets in java

Good, my problem is that I have an error in the handling of servlets and I do not know the cause, I am working with servlets, and from "index.jsp" to "egresado.jsp" it works great, but there, when the client does some process to save in the data...
asked by 05.06.2017 / 20:56
1
answer

What is the best way to get the location?

I am doing a "Tracking" app or follow-up, to get the location I use LocationListener within a service, I run the app on the device but sometimes I can notice that the location is somewhat erratic and even sometimes does not receive updates (the...
asked by 06.06.2017 / 02:56
1
answer

How to make the user enter the name of the file that will be used? Java

Good afternoon this program compresses folders in zip, I would like to know how I can do so that the program asks me the name of the folder that is going to be compressed and compresses only the one that the user enters his name and the zip file...
asked by 05.06.2017 / 19:49