Questions tagged as 'java'

1
answer

Camera problems: Fail to connect to camera service

I have a problem with my app that uses the camera on a device. However, whenever I try to use Camera.open() it gives an exception java.lang.RuntimeException: Fail to connect to camera service . I am trying to understand this error b...
asked by 30.07.2016 / 01:29
1
answer

JAVACV with maven?

I've done the JAVACV clone link I'm trying to run the project build: clean install But when I run I encounter the following error: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Strings at org.s...
asked by 27.07.2016 / 17:51
1
answer

Custom Spinner showing resource and not text

I'm having trouble setting up a custom spinner in my application. Here is an image of how it appears: Followmycode:Adapter.javapublicclassProfissionalCategoriaAdapterextendsArrayAdapter<ProfissionalCategoria>{privateContextcontext;priv...
asked by 29.07.2016 / 13:51
1
answer

NullPointerException when connecting to server

I'm doing a server / client Java program. When I start the server class I get the error    Exception in thread "Thread-0" java.lang.NullPointerException I'll leave the code below to help me solve the problem: public class Servidor imple...
asked by 14.12.2015 / 14:08
1
answer

Android / IOS vs Java

Suppose I have an app on android or ios I have a system done in java and e to publish data that will be downloaded from the internet by the application. All of this is inside a web server How do I communicate between system and application...
asked by 08.12.2015 / 16:38
1
answer

How to remove duplicate objects in an ArrayList?

Hello I have an array of objects. but these objects end up repeating themselves, so I wanted a naneira to remove the duplicates. I've tried using hasSet, but it does not seem to work with objects. Set nova = new HashSet<>(); nova.addA...
asked by 18.05.2016 / 18:02
1
answer

Spring Boot configuration error: org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.jpaVendorAdapter

Hello I'm getting the following StackTrace below when I start Tomcat with my Web project after making the settings with Spring Boot. After I created the following classes below, I'm having this error. ERROR GRAVE: Exception sending con...
asked by 19.05.2016 / 03:32
1
answer

Error with persistence.xml and EclipseLink in glassfish

Hello guys I'm with this problem after I migrated the project to another machine, I am using GlassFish with EclipseLink in the database I use Postgres 9.4 if anyone has encountered this error might help me could not solve. I've re-done the wh...
asked by 04.11.2015 / 06:08
1
answer

Which event shows whether the android keyboard is active or not?

There is some event or method that shows if the keyboard is active on the android screen, as I need to do this check in a Fragment.     
asked by 04.11.2015 / 18:40
1
answer

Using JExcel for reading and writing

I'm making a simple algorithm, to read an excel sheet, insert some records and save the changed sheet. To write my code, I took as a basis the writing example provided with the JExcel package, so I have a method that is responsible for readin...
asked by 04.11.2015 / 01:54