Questions tagged as 'java'

0
answers

Program type already present: android.support.v4.util.TimeUtils [closed]

buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' } } apply plugin: 'com.android.application' dependencies { implementation fileTree(...
asked by 12.07.2018 / 21:10
0
answers

Put sound in app notifications

I'm having trouble with my app, I'm trying to send notifications to mobile devices, notifications come in but they do not have a sound and I need them to make the sound to get attention. I have looked at some codes, but I did not understand / co...
asked by 22.06.2018 / 16:16
1
answer

How to return a list coming from the database using AsyncTask, and then deliver to the class that will handle it?

I have an inner class that loads a list that comes from the database, but in return of doInBackground it returns the list empty. I've already tested and for is getting right, then populate the list, but when it gets down there i...
asked by 23.06.2018 / 18:52
0
answers

Remote connection with PostgreSQL only works after PING

I have a JAVA application running on one server and the database running on another. Both servers are connected and on the same network, postgreSQL is enabled to receive external connections. But when I try to connect to the database from...
asked by 03.07.2018 / 22:04
0
answers

(JAVA) Timeout for random token

I'm generating an alphanumeric token like this: SecureRandom secureRandom = new SecureRandom(); long longToken = Math.abs(secureRandom.nextLong()); String random = Long.toString(longToken, 16); I need a mechanism that defines the lifetime...
asked by 04.07.2018 / 00:43
1
answer

Log activity for synchronization capturing task data running in background

Develop an application in Cordova, which synchronizes with an online database, the sync part is all in Java. (Context of the app) I'm developing a "Log" screen for synchronization which will show the user how many records have been successful...
asked by 23.07.2018 / 19:49
1
answer

Passing JSP Objects with Hibernate

Expensive, I have the classes below. I'm having trouble creating a TreeResource, because in JSP I'm passing the parameters "Id Area" and "Description Tree", in the controller I'm getting an AreaArvoreClassification object (aac), which has...
asked by 08.06.2018 / 18:59
0
answers

How to paste an excel list into android studio and stay organized with line breaks?

List in excel CityAfonsoBezerraAlexandriaAlexandriaAlminoAfonsoAltodoRodriguesAngicosAngicosApodiApodiHowtodothisinxml As a large list, and I want for more than 2 columns, I can not put one by one, but rather paste with columns.     
asked by 12.06.2018 / 04:18
0
answers

Client requesting the same value 2 times

I'm doing a distributed system, and the client is asking for the same value multiple times. Follow class Cliente : import java.awt.HeadlessException; import java.rmi.Naming; import java.rmi.RemoteException; import javax.swing.JOptionP...
asked by 12.06.2018 / 03:48