Questions tagged as 'java'

1
answer

How to open a PDF file, which is in the assets of my APP, in a PDF reader already installed on the mobile?

I have an APP that needs to open some PDF files (laws) that should come along with the application. The idea is to call Intent to open these PDF files by the PDF reader already installed on the phone. The files are in the assets. How d...
asked by 26.06.2018 / 19:27
0
answers

Subscriptions return the 'INAPP_PURCHASE_DATA' null using 'In-app Billing V3'

I'm implementing purchase of Signatures in an Android application. So far, payment orders are already set up in the Developer Google Play Console and I can debit the amount set in each of the SKUs on the credit card. At the end of this, I...
asked by 17.02.2014 / 16:12
2
answers

How to position the cursor at the beginning of the field?

How can I make a component ( JTextField , JFormattedTextField and others) when clicked / gain focus, position the cursor in the 0 position of the component, especially when the component is already filled and the user clicks...
asked by 16.06.2017 / 17:00
1
answer

How to sort a list in alphabetical order? [duplicate]

I have List<ListaUsuarios> and I want to sort it alphabetically by name My code is like this User class: public class Usuario{ private String nome; private String empresa; private int idade; private Strin...
asked by 13.11.2017 / 19:54
1
answer

Demoiselle update for JEE7

The Demoiselle framework has greatly increased productivity here in the enterprise. However, it is a limiting factor in the use of some new technologies, especially related to JEE7. My projects would benefit a lot from JEE7, but I have to cho...
asked by 24.04.2015 / 14:00
1
answer

When I use an "Endpoint" class to publish a Web Service, where is the WSDL created?

For example, I have 3 classes in my Web Service: 1 - An SEI (the Web Service Interface): package calc; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; @W...
asked by 21.04.2015 / 18:48
1
answer

Error instantiating class

I'm trying to read data from class dados on Main and it gives me error on my array : cadastro[i] = new dados(); Data class: class dados { private int numero; private String nome; private String sexo; publi...
asked by 09.08.2017 / 00:59
1
answer

How to get the current date on Android? [closed]

I'm developing an application and I need to get the current date only, I used Date data = new Date(); only that it does not work. I tried localdatetime also more was not, does anyone have any suggestions?     
asked by 21.09.2017 / 04:32
1
answer

How to decrypt encrypted e-mail on SHA-256?

I am encrypting an email and saving it in the database, how do I decrypt the same email that was encrypted. Follow the code I used to encrypt. public String getEmailCriptografado(String email){ email = email.toLowerCase(); email = N...
asked by 02.03.2016 / 19:17
3
answers

Refresh page after download

I'm working on a JSF page and need to download a .pdf. When downloading the object is changed and I would need to update it because I can not allow the same download more than once. But if I use <f:ajax> the download does not work....
asked by 24.06.2015 / 18:41