Questions tagged as 'java'

3
answers

ListView with different layouts by lines, according to filtered value

I have a single table in the DB, which contains records with fields like: tipo, data, hora, cliente, historico According to the value of tipo , the cliente field is mandatory, ie vazio . To create a ListView...
asked by 30.01.2018 / 11:43
0
answers

Compress files in separate parts (no need to be just to unpack)

In my application I can compress a folder and its contents, this content is the result of manipulation of pdf, jpg and xls. But I needed to split it into pieces (the compressed file can not be larger than 10MB for example), but so that one part...
asked by 16.11.2018 / 00:40
1
answer

APP Android opens and soon stops working

I want to create an application to trigger an arduino relay. I made the code but when I pass it to my cell phone to test it it gives the following error:    App Stopped Working Follow the code. MAIN ACTIVITY: import android.support.v...
asked by 15.11.2018 / 19:55
2
answers

Error while listing SQLite direct table

asked by 15.11.2018 / 21:47
0
answers

DataTable page two erases List

I'm using Primefaces 6.2 with Hibernate 4.3 without JPA or Spring. I need to display data on the screen, where I have a Dialog and inside it a DataTable with a button that will open another Dialog. I have two problems, but I will focus on the fi...
asked by 16.11.2018 / 12:00
0
answers

QR code reader when locking a plain text

I am making an app that le QR code and should open a page on the internet, if it is a web address, if not, show a toast if it is just a text. It opens the page of good but when it is only a text it hangs. Can someone help me? follow the code...
asked by 27.11.2018 / 18:59
0
answers

error: session can not resolved

In the code below I'm getting the message: session can not resolved which prevents you from running the code snippet. package controler; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restriction...
asked by 27.11.2018 / 16:47
0
answers

When creating a contact in android perform a certain action

I created an app that lists all the contacts and sends them to the database, but now I want every time the user creates a new contact, it automatically sends them to the database. I've been looking around and seen that I'm going to use "service"...
asked by 27.11.2018 / 19:00
1
answer

How to know which list an object belongs to?

I'm having a problem, that I'm not able to know which list an object belongs to. I have to play a trick game in java, I have the player class, and each player has a list with the cards (the card is the object), however the game has 4 players. Th...
asked by 15.11.2018 / 01:25
1
answer

XML parser error with JAXB

I'm trying to make a parser in an XML file provided by a WebService with open data from incumbent senators at Federal Senate The XSD file can be found directly by this link . This xsd does not specify a root element, but many roots element...
asked by 15.11.2018 / 17:05