Questions tagged as 'java'

1
answer

Save excel file to an array

In the example below I have a class in java that will fetch data from a certain excel file. All this part of fetching the file the program does, but now needed that this data be stored in an array. I do not know how to do it. public class UniF...
asked by 26.10.2018 / 21:15
1
answer

JXL generate excel sheet with decimal value in Brazilian standard

I'm using Java and Jsf on my system and there's a screen where you have the option to generate an excel spreadsheet. The generation of the worksheet is ok. The problem I'm encountering is in columns that have numeric values of type Double. For e...
asked by 26.10.2018 / 19:16
0
answers

Error making Hibernate relationship with Java

Good afternoon guys! I have a question in Hibernate. I have the following case Person - Client - Supplier But I can not make the relationship. follow my codes New Error 18:50:34,405 DEBUG [org.hibernate.SQL] - select SEQ_C...
asked by 01.11.2018 / 18:36
1
answer

Android - Notification bar crashes when updating progress

I have an application that uses a custom download manager, I'm trying to show a progress bar in a notification, however whenever I enter the while loop I can not go down the notification bar anymore and the device starts to crash: / p> private...
asked by 28.10.2018 / 14:07
0
answers

java.lang.RuntimeException: Unable to start activity ComponentInfo {}: java.lang.NullPointerException marking my input

I'm new to android development and I'm passing a swing chat to android. The idea is to use a socket server that makes the connection. This is the third attempt to make it work ... I received the following errors: E/AndroidRuntime: FATAL EXCEPT...
asked by 28.10.2018 / 16:22
1
answer

How to change the GPS location icon in Android Studio?

I wanted to know how to change that red icon that marks the location of the GPS to put a photo located on the drawable. I just wanted to know what code I should add to get the suggested result. The code is as follows: @Override public void...
asked by 25.10.2018 / 19:16
1
answer

Image being saved with poor quality

The following code is to save the image to a certain folder, which is taken by my application, but the image is saved with a horrible quality even if it is at most "100". if (requestCode == 5) { if (resultCode == RESULT_OK) {...
asked by 25.10.2018 / 21:10
0
answers

Android - Add buttons on notification without the use of intents

I have a custom download manager in my app, it works fine, it works on a service and it can not handle it directly, so an alternative would be to add an action in the progress notification, however it uses Intents and not listeners, then how can...
asked by 02.11.2018 / 19:10
1
answer

Generating correct json with p-dropdown primeng?

I'm new to Angular and I have the following situation using the API in java: I have the "Launch" class where the NOT category is mandatory (Category class) @Entity @Table(name = "lancamento") public class Lancamento { @Id @Gener...
asked by 02.11.2018 / 04:33
1
answer

What's wrong with running the react-native app?

Hello, I'm trying to run my native react app through the    sudo react-native run-android But I always get the following error message: FAILURE: Build failed with an exception. * What went wrong: Could not determine java version from '...
asked by 02.11.2018 / 20:42