Posts by Juliano Silveira • 126 points
23 posts
-
0
votes1
answer161
viewsQ: Set the width of a Textview by the maximum number of characters
I’m creating a layout_item for my Listview, but I want all elements to be aligned, but some Textview can have size variation (they take the value of a numeral that can vary from 0 to 1000) so I’m…
-
0
votes1
answer84
viewsQ: Insert a counter into Listview
I am using a Cursoradapter to fill my listview, within each item of my listview there are two buttons, one to add and one to decrease the value, and a textView to display this value, I wanted to…
-
0
votes1
answer187
viewsQ: Convert Gson to List<Object>
I’m starting to learn how to use the Gson library in my code and need to create a list of objects from a Json file. Json:…
-
0
votes0
answers93
viewsQ: Cursor.getColumnIndex() returns -1
I’m trying to accomplish a select in the database of Android, but every time I try, it ends up generating error. By debug discover that one of the columns, when performing the getColumnIndex() is…
-
1
votes1
answer303
viewsQ: Receive Json with empty arguments
I created an API to receive database data via json for my android application, but some columns of my table get null, generating an empty json argument that is generating error in my application,…
-
0
votes0
answers37
viewsQ: how to consult Distance Matrix with geocoder together?
I am developing an application that uses the google API to display the registered places on the map along with the distance of each location as follows. mMap.addMaker(new…
-
0
votes0
answers93
viewsQ: Evidar the change of special characters in URI writing
I’m using the google maps API in my project but I’m having a small problem. to mount the URL I am using a URI that concatenates with buildUpon like this in the example below. Uri uriBase =…
-
0
votes2
answers273
viewsQ: comparing a variable with a vector or list
Usually to perform a conditional using an array or a list and need to perform a for and perform the if line by line in this way. //sendo item uma string e listaItens um List<String> for(String…
-
-1
votes1
answer236
viewsQ: What is the best way to work with responsive images?
I am in doubt in my project which is the best way to work with DIRECT HTML responsive images, in Html5 the tag has the srcset attribute that allows this change using the prefix "w" when selecting…
-
1
votes1
answer1510
viewsQ: How to get your own location (Latlng) in Android Studio
I need to set my own location on my map to calculate the route from where I am to where I want to go. I can create a marker for the destination, but I do not know how to ask android my own location…
-
0
votes1
answer138
viewsQ: Position an Image View by mobile accelerometer
I want to create a game on using android studio where my image view positions according to the movement I perform on mobile. For example: When starting the application the image appears in the…
-
0
votes1
answer174
viewsQ: Factory error when using @Embeddable in JPA
I need to create a composite key on my system, after researching a little discover that I should implement @Embeddable, even fine, I added the class on my system implementing the keys, but when I…
-
0
votes1
answer58
viewsQ: Problem when performing a select with JPA
I’m facing a bug I can’t figure out a solution. When I do a persist and then select the received and normal result, but when doing an update and after that select instead of displaying the updated…
-
1
votes1
answer421
viewsQ: Display confirmation when trying to close a Jinternalframe
I’m creating a program using JInternalFrame, but would like to request a confirmation in case the user click the close button "Closable". For that, I’m trying to overwrite the methods…
-
1
votes1
answer254
viewsQ: Compressing and organizing Json
I have been studying Json recently to use in my projects to replace database in some cases, in my tests I found a doubt. depending on the project I may end up repeating some values in certain items…
-
0
votes2
answers530
viewsA: Phpmailer error: Hostnet configuration
For anyone who finds the same problem I do. Php file: <?php // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use…
-
0
votes2
answers530
viewsQ: Phpmailer error: Hostnet configuration
follows the used code taken from the latest version of github I found <?php // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function…
-
-1
votes1
answer289
viewsQ: Synchronize the server database with a localhost
I need to synchronize two databases so that the information of both are equal due to problems of instability of the internet. researching found the replication that exists in phpmyadmin, but as I…
-
0
votes1
answer350
viewsA: Invalid SQL (INNER JOIN) indenter error
try to make a Join for each relationship, like. select E.employee_id, E.first_name||' '||E.last_name "Nome", D.department_name, J.job_title, JH.start_date, JH.end_date from employees E inner join…
-
1
votes1
answer510
viewsQ: Create iReport variable for database
I need to create a report of the selected month with the information contained in the database, for this I intend to create a variable in iReport that receives the month (by netbens) which will be…
-
0
votes1
answer290
viewsQ: Work with Date in Mysql, JPA
I’m using JPA and creating an entity to store one date within the database. So far so good, the problem is that I need to display the database information according to the month of my date. Do you…
-
3
votes1
answer541
viewsQ: Questions with mask in Jformattedtextfield
Working with JFormattedTextField, I had two problems for which I found nothing that helps me to solve. The example in this case would be a JFormattedTextField for CPF. First problem: the mask. When…
-
1
votes0
answers139
viewsQ: Overwrite php functions
I am working on the security of my site and would like to know if a malicious user can override some php function of my site if by chance he finds out what the name of this function?