Questions tagged as 'java'

1
answer

How to know the duration of a mp4 video in java?

I'm doing an audio and video player, with the interface I'm working on, it's EmbeddedMediaPlayer from the vlcj library. If anyone knows how to know the total duration of a video in java. Here is the link to the interface methods: link He...
asked by 22.07.2018 / 19:42
0
answers

Passing a List from one class to another in Android

I'm trying to have several values in a List and within this there will also be another list, for that create a model class and then use it with a List to save the different data. Everything is fine, I keep all the data normal, but at the moment...
asked by 22.07.2018 / 23:50
1
answer

Get value of an attribute of an object and put it in a variable in jsp

I need to get the value of an attribute of an object (user.estado) and put it inside a variable (state) of JSP and then make if statements depending on that variable. Here the code. <tbody> <tr>...
asked by 20.07.2018 / 16:36
0
answers

Java multithreading using JDBC

I am trying to make an application with threads consult a database with millions of records and basically these threads divide the database to make the query faster. The error that I am having is that in my code only one thread is executed, only...
asked by 20.07.2018 / 19:50
0
answers

Webservice invocation from Java

I have this code: ServiceClient cliente = new ServiceClient(); cliente.setTargetEPR(new EndpointReference("http://11:133:43:5776/css/ejemplo.cls")); Options options = new Options(); options.setTransportInProtocol("http"); cliente.setOptions(op...
asked by 20.07.2018 / 10:05
0
answers

How to address to an array post from the output of another array

Good I'm working on a project to manage a 21, where I have to generate a random arrangement that tells me a value int[] Cartas = new int[5]; then another one that handles me the amount of letters 'int[] CantidadCartas = new int[13];'...
asked by 20.07.2018 / 18:29
0
answers

Help with Android photofilter

Hi, I'm using the photofilter and I want to use the WaterMark filter but for it to work I need to write a parameter that is the location which asks me for a whole value and try to put numbers and I keep coming out error I hope your help and than...
asked by 20.07.2018 / 07:22
0
answers

Problems with Location Service - Android Studio

I need to take the current location of my mobile device, I have searched the web but all are managed in activity but I am doing it in a fragment so I get errors, the truth is that I am new to this. Strictly the error is given to me in the Locat...
asked by 24.07.2018 / 00:40
2
answers

Wrong 2nd argument type. Found: 'com.example.asus.vidasegura.SesionFragment', required: 'android.support.v4.app.Fragment'

I get that error when trying to call a fragment in android studio. Continuation of the error: replace(int,android.support.v4.app.Fragment) in FragmentTransaction cannot be applied to (int, com.example.asus.vidasegura.SesionFragment) Main...
asked by 24.07.2018 / 00:10
0
answers

Problems with Google Contacts Api in Java

I'm new to managing the Google Contacts app, I'm making a java desktop application to import contacts from Google, and create a project in OAuth 2.0, and I have all the credentials already, but I do not know where part of the code asks me for th...
asked by 07.08.2018 / 19:45