Questions tagged as 'java'

2
answers

Activity giving crash

When I start the Activity "Data" the screen turns white the program crashes, but if you comment the whole program of the same does not crash, however the screen goes blank and what is in .xml does not appear. What am I doing wrong and how should...
asked by 26.08.2017 / 21:23
1
answer

What command do I use to update my code every 2 seconds?

I'm developing an app in Android Studio that takes the location of the device and returns me in latitude and longitude, I use it later to make a bookmark. However, if I install the application on my Smartphone in one neighborhood and go to anoth...
asked by 18.10.2017 / 14:23
1
answer

Protect HTTP Requests with Android

I have an application on Android, which requests Servlet or JSP files that return JSON. For example, in my application the user logs in and can add requests, when adding requests, it is added via Servlet in JSON format, so it requests an http...
asked by 06.11.2016 / 13:06
3
answers

How to connect my android application to an external database [duplicate]

I have a site with some tables in the mysql database. The site is already connected to the database. I have an application in Android Studio and would like to connect the application with the external database (mysql on the site). Other tha...
asked by 02.04.2018 / 04:11
1
answer

Java Web Service SOAP with objects

Hello, I'm learning to use web-services and I stopped with a problem, maybe it's a silly thing, but I did not find a solution, I'm hosting my application in Heroku and I'll leave the relevant information here, but first I must explain what I woul...
asked by 31.12.2017 / 07:27
1
answer

Start a Windows 10 service by Java code

In Windows 7 I used the following method to start a Windows service in Java: static final String CMD_START = "cmd /c net start \""; public static int startService(String serviceName) throws Exception { return execCmd(CMD_START + serviceName...
asked by 04.08.2015 / 14:41
1
answer

Does not save the photo in the Android folder

I have a problem saving the photo to the Android images folder. It simply does not save the picture, that is, it does not execute TRY of ActivityResult . You even get to ImageView : // CAPTURAR FOTO BOTÃO TIRAR FOTO public...
asked by 08.06.2015 / 16:10
1
answer

Can I use Css within a Swing application?

Is it possible to style a java application made in Swing using css or javascript?     
asked by 19.12.2016 / 17:42
1
answer

Doubt technology for building WebApi Rest in Java [closed]

I'm posting this topic to check by your experience what technology you are using to build WebApi Rest in Java. What libraries? What techniques? What are the advantages and disadvantages of technology? I am a beginner in this subject and wo...
asked by 30.09.2016 / 03:01
1
answer

How to display objects from a list? [duplicate]

I have the PessoaDAO class which has the following method: public List<Pessoa> BuscarTodos() { List<Pessoa> list = null; EntityManager em = getEM(); try { list = em.createQuery("select t from Pessoa t").ge...
asked by 07.10.2018 / 19:57