Questions tagged as 'java'

1
answer

Access resources spring image

I have the following scenario: Ihavethesrping-servlet.xmlfilewiththefollowingconfiguration: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://ww...
asked by 22.02.2018 / 15:11
2
answers

How to execute request again after having accepted permission on android?

I have a button that when pressed it should open the phone call mode with a dynamic number. This method requires the CALL_PHONE permission. And when it is pressed the first time, it opens a dialog asking if I authorize the requested permiss...
asked by 12.03.2018 / 09:35
1
answer

The setText method does not insert the text correctly inside a repeat loop

I created a method that shows a loop of repetition, and inside it I get the product of the variable set by the counter, like a table and such. But when it arrives in TextSet, it does not show the 10 textSet that was to show, but only the last...
asked by 04.03.2018 / 03:04
2
answers

Error trying to scan an array

I'm trying to scan the array inside the loop, as per the code below: import java.util.Scanner; public class RapidoPora { public static void main(String[] args) { int[] nota = new int[10]; for(int c = 0; c < 11; c+...
asked by 04.03.2018 / 20:32
1
answer

Calendar returns object with 1 additional month

I have an Android application that tests whether data stored in a database has exceeded the time limit to perform a new data capture through a particular function. I was able to add the values of the database to the Calendar object, but the obje...
asked by 02.02.2018 / 06:52
1
answer

Consume WebService in delphi

I created a REST webservice using JAVA, however I need to make a client in Delphi consume this webservice, I tried to make several video classes I found through google, but none was useful. I created a simple webservice to test this communica...
asked by 01.02.2018 / 17:39
2
answers

Data sent from one activity to another arrives null

My Activity I am displaying the database data in the listview @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tela_visualizar_clientes); final Lis...
asked by 05.03.2018 / 20:32
1
answer

Error creating hibernate tables

I'm getting the following Exception when creating the tables in my application: Hibernate: create table UserConfig (id bigint not null, dateReg datetime, status varchar(255), accountActivationCurrentToken varchar(10000), forgotPasswordC...
asked by 06.02.2018 / 18:11
1
answer

Doubt return API Json Android

I recently read a lot about getting data through an API on Android, but I can not seem to get what's being returned in Json from a specific API shown below. { "Sumario": { "Termo": "teste", "Tipo": "teste", "Editora...
asked by 06.02.2018 / 17:38
1
answer

Insert image in Ireport

I'm trying to insert an image in Ireport 3.7.5. When I drag the Image field to the page and place the static url with the image address, it works, but when I put it in Image Expression like this: System.getProperty("user.dir") + "\fotos...
asked by 22.01.2018 / 21:29