Questions tagged as 'java'

1
answer

Create web application that runs JUnit test cases in java files that will be submitted by a page?

I'm trying to create an application similar to an online judge, but all I want is that after submitting a java file through an html page or jsp, the application runs a certain JUnit test case in that java file and shows the results in a new page...
asked by 22.02.2016 / 17:02
1
answer

What do you do to make sure the service is not terminated by Android?

I have a service that runs in the background to pick up the location and go recording in a text. The service starts along with android through BroadcastReceiver. It works perfectly, but after about 12 hours of service running, the android ends a...
asked by 04.03.2016 / 02:11
1
answer

Check if simulated Locations are active

I'm developing an application that will use GPS to log a route. There are apps ( an example ) that simulate your location. This is done through a development option: I wonder if it is possible to know if this option is active?...
asked by 03.03.2016 / 21:38
3
answers

How do I know which servers are waiting for connection on my network?

I'm developing a multiplayer (LAN) game with Sockets in JAVA. Players will start a lobby, and in that lobby there will be a list of servers (game rooms) waiting for connections. How can I list the servers on my network so players can connect?...
asked by 28.09.2015 / 20:02
1
answer

Error opening a jar on the command line

I have the following code and I am using a library to list the citizen's card fields. How much do I try to run in DOS does not work. import java.io.*; import pteidlib.*; public class main { public String nome; public String...
asked by 01.10.2015 / 13:19
1
answer

Consume a RESTful service with angular js

I've done a project in eclipse with a service rest in java, if I run it directly in the browser my service it returns me my right data: http://localhost:8080/Agenda/rest/Agenda/getLista Now I want to consume and display in a table with ang...
asked by 27.09.2015 / 15:57
3
answers

How can I increment a day to a date in Java?

What is the best way to increment a date of type DD/MM/YYYY ?     
asked by 27.08.2015 / 17:01
1
answer

Facebook login on desktop applications

I would like to know if there is a Facebook API for desktop applications, so that I can integrate with it, login using facebook account etc. I made the registration and created my application in the site of facebook developers, then he asked me...
asked by 02.09.2015 / 21:35
1
answer

Error returning list to activity

I made an implementation on Android to return all Bluetooth devices (paired and connected) in a list. It worked correctly to return paired devices. For the connected ones it worked also, if I go through the debug mode I see that the application...
asked by 09.08.2015 / 00:32
1
answer

Problems in netbeans with connection to Postgres

I have a database called BANK_DE_TESTES in Postgres and it has some random tables. In netbeans when I try to use the Master / Detail Samples Form to use JPA to create a simple crud it does not work saying that the bank I have specified does not...
asked by 19.12.2015 / 19:49