Questions tagged as 'java'

1
answer

Storage firebase in android studio

I'm starting in programming for android and I have a project in android studio that creates photo registration, I added the firebase and I do not know how to create the code to send this data with photo, name ... if anyone can give me an example...
asked by 18.07.2018 / 20:17
1
answer

Rendering map using API with spring boot

I'm developing a web application using spring boot and I'm trying to implement a map on the main application screen. The latitude and longitude are being picked up in the mobile application, so I'm doing a CartDTO to get submit the coordinates o...
asked by 13.07.2018 / 05:43
2
answers

thymeleaf - Spring boot - empty validation

I have this code that already works: <span class="label" th:classappend="${usuario.ativo ? 'label-success' : 'label-danger'}"> </span></td> But now I want the following: <span class="label" th:classappend="${usuar...
asked by 18.07.2018 / 19:17
1
answer

Optimize actions of Firebase Realtime Database and Firebase Storage

How can I optimize the user experience and application fluency when I am, for example, reading data from Firebase Database or even downloading Files from Storage? Using runnable's to handle processes or are there other more efficient ways to do...
asked by 17.07.2018 / 20:44
1
answer

Return an address

I'm finalizing a project where it will open an alertDialog. As soon as the user presses OK they will make a confirmation and their location will be informed by a toast. I would like to know how I can return the place where the user is.     
asked by 10.07.2018 / 01:24
2
answers

How to display marker on the map according to the selected button?

I researched and tried some alternatives, but I have not been successful so far. * I would like to display the markers according to the button pressed on the main screen. For example: A) button 1 results in displaying the map only with "local...
asked by 10.07.2018 / 15:10
2
answers

Problem in the Controller JSP class

Hello, I need help, I have the problem on my system when I send an edit command. When I click the button to edit the table row I want, the screen turns white and does not show the options to edit. In the URL it shows that the fields are passing...
asked by 30.07.2018 / 18:40
1
answer

How to stop one via external loop interference?

I have for running and when I click the button I want this for to stop. for (int i = 0; i < codigo.size(); i++) { if (codigo.get(i).contains("Para") || Stop == true){ sendCommand("paro...
asked by 28.07.2018 / 16:41
2
answers

EditText vehicle mask

I would like to know how to create a mask in an EditText in ABC-1234 format. I'm trying something like the example below, but with no success yet. public abstract class PlacaVeiculoMask { public static String PLACA_MASK = "???-####"; publ...
asked by 21.08.2018 / 20:10
1
answer

How to print CMD special characters when formatting currencies?

A few days ago I did an exercise to format currencies and I used the following code for this: String us, china, france; us = NumberFormat.getCurrencyInstance(Locale.US).format(payment); china = NumberFormat.getCurrencyInstance(Locale.CHINA).fo...
asked by 22.08.2018 / 03:11