Questions tagged as 'java'

1
answer

Error compiling PhoneGap

When executing the command to compile the phonegap phonegap build android But it has an error: [phonegap] executing 'cordova build android'... Running command: /var/www/gabriel/phonegap/teste/platforms/android/cordova/build [Error: Fail...
asked by 28.01.2016 / 08:13
1
answer

Apply AsyncTask in code that receives double faces

I have many questions about how to apply the concept of AsyncTask . I would like to know what this code would look like in AsyncTask . Thanks in advance // Metodo da ação do botão Calcular public void Calculaar(View view) {...
asked by 19.03.2016 / 05:03
1
answer

Use of the Big Integer class in the construction of an MD5 hash

I found in another post right here from the OS the following code example for generating a hash through MD5: String message = "teste1234"; byte[] hash = MessageDigest.getInstance("MD5").digest(message.getBytes("UTF-8")); System.out.println("MD...
asked by 27.03.2016 / 20:03
2
answers

REST in Java Spring project does not work

I created a project in Spring Tool Suite to test a web system and REST, in the same project, worked to create a static html page and load in the browser, but I created a java class for GET request, but whenever I call the error code 404 and did...
asked by 27.03.2016 / 04:34
1
answer

Check double - Java

I am not able to do this check already tried everything, but it always gives me this error:    java.lang.NumberFormatException: Invalid double: "" If anyone can help, thank you. package com.calculadora; import android.content.DialogInt...
asked by 24.03.2016 / 18:42
1
answer

Encapsulation and Get and Set methods

I'm continuing my studies on object-oriented Java programming. I'm currently studying encapsulation and get and set methods and came across the following exercise:    Encapsulate the value attribute of the Ticket class.     ...
asked by 27.03.2016 / 21:01
1
answer

Retrieve WSDL from WebService NFe ASMX

How do I retrieve the WSDL from this service: link I need the WSDL to add it by Netbeans, there I can only add the WSDL and this is final asmx. EDIT : My CLasse looks like this: String nfeCabecMsg = "<nfeCabecMsg xmlns=\"http://...
asked by 10.02.2016 / 19:29
1
answer

Android - how to carry information from imageView from one class to another?

Hello, I need to transport the contents of an ImageView from one class to another, I tried Intent, but I could not get it. I have a Drawable that was edited in ImageView from the first class and I want to move this already edited content to anot...
asked by 10.12.2015 / 18:05
1
answer

Java - Main Class Execution Error [duplicate]

Good afternoon, After using Eclipse Luna and returning to Eclipse Mars, the business simply popped up and I deleted the Eclipse files to see if it worked out and re-imported the java project.    (JFrame Access): "Error: Could not find or...
asked by 10.12.2015 / 20:08
1
answer

Device incompatible with the Play Store app

Some devices, especially a tablet, are not able to download a play store app. Does anyone know what it may be blocking? <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" pa...
asked by 09.12.2015 / 17:53