Questions tagged as 'java'

0
answers

Media | Player in the notification area

Well, I'm making a app that has a MediaPlayer plugin to play web radio . I would like to add, when player was clicked, a preview of it in the notifications area (I think that's the name) as well as below: InthisimageI...
asked by 26.12.2018 / 10:55
0
answers

How to simulate servers on Android [closed]

In my Android app I need a structure that works as servers, where I need to control the flow of users and stocking it. What would be the most correct way to implement this structure?     
asked by 26.12.2018 / 03:08
0
answers

how to create a generic method [closed]

I often have to do a method to fetch a table, for example getByCPF. I would like to make a generic method that I pass the column name and what I look for. getByColumn(String column, Param param){ } something like this.     
asked by 13.11.2018 / 12:27
0
answers

error saving the vector in java

This class has the function of saving the data in an excel file to an array. But you are not. Does anyone know me know why? I've already asked about the genre before but I can not edit it. public class uni { public static void main (String[]...
asked by 27.10.2018 / 22:56
1
answer

Getting response from WebService with Ksoap

I have a Web service that returns this data: <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body>...
asked by 26.10.2018 / 12:45
1
answer

SonarLint x Java GC, cancel or not object at the end of execution?

I'm passing SonarLint on a somewhat old application and fixing several "problems", but I came across a code snippet like: public void fazerAlgo(final String param) { MeuObjeto m = new MeuObjeto(); m.setVar(param.toLowerCase()); m...
asked by 25.07.2018 / 13:14
0
answers

Problem in classifying the edges of graphs

I'm doing an algorithm to sort the edges of a graph, between Type T, B, C, and F. It's giving me a wrong output, it ends vertex 3 at the same time as the 4 starts, so it does not classifying the Edge that has from 4 to 3. Main.java package...
asked by 05.09.2018 / 15:36
0
answers

How do I return when I finish / keep Timer / Schedulel?

So I'm developing a game project that uses RMI (client / server) and needed to manage the players' time-out. For example, if a player takes more than one minute to make his or her respective play, he loses. The plays run through a loop, so I...
asked by 24.09.2018 / 16:14
0
answers

Array and error handling in numbers game

The game is to discover numbers of the opponent, but not lottery type, have to use reasoning to get to the correct number. The rule is to play with 4 numbers at a time without repeating on the same line. On the array I have the following doub...
asked by 06.10.2018 / 22:47
1
answer

How to add a calendar in the Frame or Panel in Java

I'm developing a Java project that handles dates. The main idea is to place a medium-sized calendar on the main screen , dates that already have a scheduled event should have a coloration (blue, orange, etc.) and when hovering over the menu it...
asked by 13.09.2018 / 14:20