Questions tagged as 'java'

0
answers

Location of the file where data is saved in the Parse library

I'm doing maintenance for an android project that was developed using the parse library to make the persistence layer. link I have not found in the API, where the file used to write the information is located. Has anyone worked with this li...
asked by 06.02.2017 / 10:56
0
answers

Create a JPQL and set the entity at runtime

Good evening. I would like to know if there is a way to do a JPQL query and set the entity at runtime, without having to concatenate or interpolate String. Example using interpolation: public long getRecords(String entity){ String q...
asked by 05.02.2017 / 04:10
0
answers

tag p: commandButton does not do what's in the managedBean

I'm starting now on the jfs primefaces and I'm having trouble. My commandButton is not executing the method that is in the managedBean and is not firing anything on the console when it clicks on it (even when I put it there for it to shoot) .......
asked by 05.02.2017 / 02:18
1
answer

NFC emulator for android

I have an android phone without NFC and I need to program an application that handles this tool. Is there an emulator that simulates NFC on my phone so I can test my programs?     
asked by 06.02.2017 / 11:59
1
answer

Problem when receiving, via Intent, a file shared by another app

I'm having trouble opening the shared file via Intent . I can correctly receive the path to the file but my app terminates execution. And unfortunately I am not able to capture the error generated. My code: @Override protected void...
asked by 11.01.2017 / 12:43
1
answer

Doubt about threads

I have two classes. One has thread for downloading email attachments and the other has thread for converting files xml to csv . I gave a start in these two threads to another classe . The% of% of ema...
asked by 27.01.2017 / 16:38
0
answers

Error making associations in XML with hibernate

I'm having trouble making many-to-one associations. Any help thanks    Exception in thread "AWT-EventQueue-0" org.hibernate.MappingException: An association from the table material refers to an unmapped class: Client Class package...
asked by 27.01.2017 / 21:16
1
answer

ActionBar dynamic text size

How to put the text in the actionbar with dynamic size? I need to set in different sizes of text and have to frame dynamically. public void setarTituloActionBar(String nome){ setTitle(nome); } The set is 100%.     
asked by 23.01.2017 / 13:01
1
answer

Input Formatting

I'm working on the transport problem. Only that all my entries are delimited by a ENTER I would like to 1.ler two integers (separated by space) 2. Give a ENTER 3.Read a nxm array formatted correctly; I would also like t...
asked by 20.01.2017 / 18:32
2
answers

Assigning Value to an Array Out of Method

I need to assign a value to an Array and throw it out of a method, but for this I need to get the values that are obtained through this method, to later use this Array obtained in other methods or classes. The print inside the method appears cor...
asked by 26.12.2016 / 23:32