Questions tagged as 'java'

1
answer

Problem with BufferStrategy and JPanel

Good, I'm trying to make a program in which you can use Graphics with BufferStrategy, so you can draw for example one circle on top of another and respect the order without oscillating. And also be able to use the Jpanel type components in which...
asked by 29.05.2017 / 09:10
1
answer

Send GPS coordinates to the Web Service every so often

I am trying to send coordinates from my position every so often to the web service, I have a class called " LocationService " that should do this, but at the moment of executing the application, nothing happens ... LocationService p...
asked by 30.05.2017 / 08:33
1
answer

Decrypt. AES JAVA. Two errors: Given final block not properly padded

I have to perform encryption and decryption through AES. Encryption gives me good, but it is deciphering gives me problems. There's no way, I've been a week now. This is the code: public class Cifrar { // Definición del tipo de algoritmo...
asked by 29.05.2017 / 13:54
1
answer

Session.Update in Hibernate does not update a record of type Date

Good morning, I have an application written in Java and behind it an Oracle database. The mapping is done with Hibernate. The fact is that I have a problem when I try to do an update on a table with a column of type Date. I have a class...
asked by 01.06.2017 / 20:08
2
answers

Check if there is a value in the database

I try to check a value that I enter with a EditText in the Firebase database before writing the value. For this I have the following: EditText Username; Button buttonUser; public FirebaseDatabase database; boolean flag=false; final i...
asked by 03.07.2017 / 13:52
1
answer

Google drive Android API - Retrieve file id

Good afternoon, in the morning I did this question and I managed to save an image. The problem that arises now, is that I need to recover the id that assigns drive to that image, there is a method that I found on the internet that gives me the...
asked by 13.06.2017 / 20:43
1
answer

Google drive API on android - bring an image based on your DriveId

Good morning, I'm working with the google API on Android, and I found the following code to read a text file: private void readFile(DriveId fileDriveId) { DriveFile file = fileDriveId.asDriveFile(); file.open(mGoogleApiClient...
asked by 14.06.2017 / 17:50
1
answer

How to connect to the server BDD in Hibernate?

Good, my problem is that I need to connect to the database that I have on a server. The server I have from "Hostinger", it's free but for the capacity it gives it's only for a few things like a BDD. The thing is that I'm programming with that...
asked by 14.06.2017 / 22:01
1
answer

Warning when building the Gradle of the module

I added a library of apache and it gives me a warning when building the gradle. The gradle is the following: apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.2" useLibrar...
asked by 25.07.2017 / 16:44
1
answer

Read Excel file from Java Tomcat

I'm running a web application with Java and using Tomcat 8.5 to run it locally. My application has to read an Excel file and save the data in variables. I use the POI library, and when I execute the code without going through the server...
asked by 17.05.2017 / 10:15