Questions tagged as 'java'

1
answer

Problems with AsyncTask in second Activity

I have an app that should perform the following procedure: Main_Activity has a button , which when clicked, directs you to a second activity ( Checkdata ). This, in turn, has a textbox that gets data through a pu...
asked by 16.09.2014 / 20:58
1
answer

Retrofit = Manipulating the response

Well, I'm asking for more help from friends, but I really can not understand the dynamics. Following tutorials and explanations here of the forum I am TRYING to use Retrofit but it is not working. I have the following JSON below,...
asked by 21.12.2018 / 11:27
1
answer

Auxiliary Table with Composite PK

I have a provider table: @Entity(name = "tbl_fornecedor") public class Fornecedor extends PessoaJuridica implements Serializable, Desativar { private static final long serialVersionUID = 1L; @Id private String cnpj; /*Relaci...
asked by 13.12.2018 / 16:14
1
answer

How to customize java.io.IOException error message on Android?

When Android makes an external connection and this url is not available it returns an error. How to customize an error as in the example below: java.io.IOException: Error response: 401 Service Unavailable for something like: Erro: Serv...
asked by 15.05.2014 / 15:35
1
answer

Put an image as background in JAVA ME

How do I put an image as a background in a JAVA-ME application ?! I do not have the slightest idea how to start this, I'm new to Java. This is the class that takes care of the graphics part: /* * To change this template, choose Tools | Tem...
asked by 14.05.2014 / 19:54
3
answers

Return a "SELECT * FROM" in the JavaWeb browser

Hello everyone, I'm studying JavaWeb and I came across a boring bug !! I already researched a lot on the subject but I could not solve this error. I have this method that is pulling all data from the "contacts" table of the database and retur...
asked by 07.12.2018 / 03:35
1
answer

JScrollPane track the component that is focused

I have a screen with JSrollPane and several JTextFields . When changing textfield using the tab key, JScrollPane does not match if the textfield that receives the focus is "down the screen." I wanted it when I shifted th...
asked by 12.12.2018 / 13:48
1
answer

How to set values in Enum?

Watch Grid TherecordthatiscomingfromthedatabaseisofanEnumclass,thecorrectonewasfortheresultinthegridtobeprintednamevalueandnotV.ThisisEnum;VALOR("V", "Valor"), PERCENTUAL("P", "Percentual"), DIA("D", "Dia"), HORA("H", "Hora");...
asked by 11.12.2018 / 15:02
2
answers

Execute a procedure from a Java application

I have a procedure inside the oracle database, but I'd like to run it from a desktop java application I'm developing. How do I execute an oracle procedure with parameters in java?     
asked by 17.06.2014 / 15:32
1
answer

How to select ListView item in Java

How to use the method to work with the selected ListView item? Activity: public class ListaProntos extends Activity implements AdapterView.OnItemClickListener { ArrayList<Contact> imageArry = new ArrayList<Contact>(); ContactIma...
asked by 07.06.2014 / 01:33