Questions tagged as 'java'

1
answer

Remove repeated elements from a multidimensional vector

I'm making a code to be able to remove duplicate rows from a vector with customer records. This vector is " tabela[1000][3] " So I have for example: 1ºlinha - "joao" " rua: asasdfasdfs" "cep: 21412354125" 2ºlinha - "matheus" " rua...
asked by 18.01.2018 / 09:49
1
answer

How to display only objects set to true in a new activity

I have here an arraylist that is shown in a listview, when I give a long click a dialog is displayed and contains the favorite option that when it is selected the object is marked as true, how do I display only the items marked in my ActivityFav...
asked by 17.01.2018 / 23:05
1
answer

EditTexts in wrong position

I'm creating a list of EditTexts programmatically. In all I give a margin of 20dp and put one below the other. The problem is that textbox2 always stays above 1, the other textboxes are in the perfect position. follows the code written to create...
asked by 11.01.2018 / 17:04
0
answers

Apache Commons Email base64 Image

I have a software to send emails that use apache commons email to send mail html, I have in the database also a string that represents a base64 image example data:image/png;base64,iVBORw0K .... I tried to use the html img tag to send t...
asked by 16.01.2018 / 20:48
1
answer

Problems generating OAuth access token with HttpURLConnection

I'm trying to make a request for a webservice that uses OAuth to generate an access token. But even though the request returns the Http 200 code, json appears only as {"errors": {"internal": ["500"]}} , below the code: NOTE: I did the same p...
asked by 16.01.2018 / 19:28
7
answers

How to protect the source code?

I'm thinking of making an application to sell, I'd like to know how to protect my source code to keep my software safe. I have seen that the Java bytecodes, stored in the .class file are easily converted back to .java using the...
asked by 25.02.2014 / 16:07
1
answer

Spring Security Permissions

I am developing a system for my college CBT. I am creating the authentication part of users. I wonder if anyone has a simple example of setting up Spring Security for users who have more than one permission, that is, a user who can access more t...
asked by 10.01.2018 / 12:05
1
answer

Problem in table name during hibernate creation

I am "annotating" an entity Menu using hibernate / jpa, and Menu contains a ShareActivity
asked by 10.01.2018 / 12:48
0
answers

Firebase authentication problem

I'm using Firebase for authentication and database of my app, everything was perfectly fine until (I'm going to say exactly what happened because I do not know if it's related or not) I start to tinker with the map that has in the app, trying to...
asked by 23.01.2018 / 06:24
0
answers

POST scraper error Itaú

I'm doing a JAVA Scraper for Itaú's mobile site and I have the error below: Asperthecode,I'mgettingtheGETtogetasessionandthenthePOSTwiththerequiredparametersandheaders(thesameonesdoneinPython henriquebastos ). I believe this is the default r...
asked by 22.01.2018 / 23:32