Questions tagged as 'java'

2
answers

Remove data from within a String

In java I'm reading several lines from an HTML file and in it I have to pull some data and store in variables. And to remove this data I have to remove some tags and data that are within certain patterns. For example, to remove the tags I use...
asked by 09.09.2017 / 14:32
1
answer

Haversine formula for SQL SERVER

Well, I have an Android app that uses Google Maps API. On the map, I get data from a SQL Server database. I need to create a radius in KM in which I just load the data from the bank that are within this radius. This is based on the current geolo...
asked by 08.09.2017 / 03:14
1
answer

Searching for parameter by editText

I'm having trouble fetching some data from a specific parameter in my android app, in webservice I already search and using GET already with the data I want it brings me the data, but I need it when I insert a text inside my edittext and hit the...
asked by 28.08.2017 / 16:13
1
answer

Read json with the GSON library

How do I read this code with the GSON library? { "profissao": { "jornalista": [ "escritor", "legal", "fotografo" ], "programador": [ "focado", "exatas",...
asked by 28.08.2017 / 15:28
1
answer

How to notify the Jsoup function

I have to notify an action that occurs within the site, I have the following code that. Appears in a texview and wanted to notify enves of sending the name to textview. TextView txv; @Override protected void onCreate(Bundle savedInstanceState)...
asked by 26.08.2017 / 19:48
1
answer

progress bar is not updating correctly

I am developing a data synchronizer, where every 5 seconds I check if there is data to be synchronized. The synchronization part with the check time every 5 seconds is already working. However, I was unable to make the progress bar follow the pr...
asked by 25.08.2017 / 14:21
1
answer

Changing the list from an Apache excel import api

The system can generate an excel file where all the products in a serialized inventory are found. What I would like is that when this file is imported back all changes made to it are applied inside the system. Here's a minimal verifiable example...
asked by 06.12.2017 / 12:53
1
answer

KeyListener for multiple JTextFields

I created a KeyListener to check for a String typed, if it is in the database. If yes let it proceed, if not, issue an alert. The question now is that I have about 50 jTextFields . Is it possible to create a KeyListener...
asked by 03.12.2017 / 20:07
1
answer

Questions Spring Boot Web App - Android

A few weeks ago I finished the project of a web system that does basic cruds, I used Java, Maven, Spring Boot, Hibernate, Bootstrap + Thymeleaf pro frontend, etc ... And I deployed to Heroku using the bank of PostgreSQL Data Now I'm starting...
asked by 21.08.2017 / 20:22
1
answer

How to define a data structure in Json, with the name of the object at the top of the structure?

I'm working on json and I really need to get this structure: { "Identidade": [ { "numero": 1704, "numeroFinal": 1804, "id": 28 }, { "numero": 1806, "numeroFinal": 1905, "id": 28 }, { "numero...
asked by 19.09.2017 / 12:38