Posts by Robson • 303 points
43 posts
-
0
votes1
answer216
viewsA: Get the Token from a JWT Api
In this case of the JWT pattern where we have an empty body return the problem is in the signature of the way this below is wrong the retrofit it will try to serialize the object…
-
-1
votes1
answer216
viewsQ: Get the Token from a JWT Api
I am having problems doing the authentication in an api with JWT standard, the token it comes in header and using the retrofit I am not getting it. The consumption of the api in Postman usually…
-
1
votes0
answers65
viewsQ: Copy Pdf s with itext fields do not appear
I have a routine that generates several pdf s with data from the database, using a template created in Openoffice, this contains several fields that are filled with data from the database, in the…
-
2
votes0
answers114
viewsQ: REST Service within a Web Application
I have a web application with Spring MVC and there is a need for a client to consume a service, so I created in the same project a resource mapped with Restcontroller, when testing the service using…
-
1
votes1
answer51
viewsA: Consumption WS Rest returns null
I made two changes to the first one I implemented Serializable and according to JSON the key/value pair the key it starts with Uppercase so I entered @Jsonproperty for each attribute…
-
1
votes1
answer51
viewsQ: Consumption WS Rest returns null
I am consuming a WS to get data from vehicles, the API that I was passed returns a JSON: { "success": true, "message": "", "result": [ { "Codigo": "1013", "Placa": "ABC1234", "Ano": 2016, "Uf":…
-
0
votes1
answer460
viewsA: Jasper with JPA connection
Gentlemen the solution to my problem was this: First - there was an error in my jrxml I had put a Pwhere parameter of string type and my query for example was the following Select <Lista dos…
-
1
votes1
answer460
viewsQ: Jasper with JPA connection
I’m in a Java Desktop project using JPA, just to send a few reports where I’m using Jasper. Reports have sql queries the user interface will only pass parameters for data filtering. I found it…
-
0
votes1
answer108
viewsA: Error while using Camera on Android 7.1
The error occurred when using the camera but it was not there, from Android 7 they began to look at the Bundle, so where had onSaveInstanceState I commented all. /*public void…
-
0
votes1
answer108
viewsQ: Error while using Camera on Android 7.1
I’m having problems in a routine to take pictures, simple routine that in Android 4.1 a 6.0 no longer have problem in 7 while trying to take a photo for the app, tried everything a week ago trying,…
-
1
votes0
answers34
viewsQ: GCM Network Manager does not perform tasks
Hello! Gentlemen I have two tasks and I notice that the same ones are not being executed, I called them in the main activity in onCreate() however if I go to another activity the tasks are not…
-
0
votes1
answer71
viewsQ: Position of the Autocomplete list
How to position the Autocompletetextview list below it? , I have seen some tutorials and simply the list starts below plus mine is at the top. <AutoCompleteTextView android:id="@+id/actViewEqp"…
-
1
votes1
answer86
viewsA: Register with Tabs
For others develop a screen with Tabs and make use of it for a registration you will need to take the data that are in the fragments of each Tab and this is not an easy task, I spent a few days to…
-
-3
votes1
answer86
viewsQ: Register with Tabs
Gentlemen I am making a registration and I chose to do using Tabs because the same is extensive ( many fields ) and involves photos, this way I can put organized information, is the registration of…
-
0
votes1
answer288
viewsA: How to pass parameters in a request with Volley
The Volley library does not work with parameters for all requests only for POST and PUT, even examples where customizations are made if you pass the GET method will no longer work if in the…
-
0
votes1
answer288
viewsQ: How to pass parameters in a request with Volley
Gentlemen I created a Custom class for the Request with Volley knowing that this form is possible to send parameters however I see that this is not what happens what can be wrong then? The code is…
-
0
votes0
answers288
viewsQ: Javamail How to change the sender’s email address?
I am making use of a very basic code for sending e-mail and I am noticing that the sender’s address differs from the one that was passed, and in the place this the email account address. I am making…
-
0
votes1
answer46
viewsQ: Android and Stream Java 8
Gentlemen I made a simple code to filter a list by passing the id and the goal would be to return an object. To make use of the stream configured the libs annimon:stream and retrolamba, I would like…
-
0
votes1
answer254
viewsQ: Image upload with Spring and Uikit
Dear implementing upload in my project, I was guided by the project of Algaworks Brewer ( upload the photo of beer), using a front-end framework Uikit The upload is being done, so I could notice…
-
0
votes0
answers120
viewsQ: Searchview with MVP
Studying the MVP standard, I refactored an activity that lists the product data, just a simple list more that I do the data filtering, the information comes from the internal database and the…
-
0
votes0
answers81
viewsQ: Listener for monetary mask and call method
I have a class to apply the monetary mask, I apply this class in editText Library. This being a field for discount I need him to do two things 1 - show the value formatted in our currency ex R$…
-
1
votes1
answer112
viewsQ: How to set the value of a spinner elegantly
Dear to an activity where we are making a change, I am setting the value of spinner(s) in a gross way for(int i = 0; i < clienteAdapter.getCount(); i++) { Cliente elemento = (Cliente)…
-
2
votes0
answers306
views -
0
votes1
answer466
viewsA: Save status of Fragments in viewPager
I did another project in which I make use of tabs with Tablayout, Viewpager calling an Activity with this approach the positioning of the device did not cause any problems in the view everything…
-
0
votes1
answer466
viewsQ: Save status of Fragments in viewPager
Whenever the device is rotated I’m losing the content of Fragments that are in three tabs, I’ve already made use of onSaveInstanceState in Activity more now I’m taking a bath because of my main…
-
0
votes1
answer197
viewsQ: Application with Navigation Drawer, Tabs and Fragments
I made an application with Navigation Drawer making use of the AS wizard, on the first screen "Mainactivity" implemented a layout with Tabslayout and Viewpager and everything is working perfectly,…
-
2
votes0
answers72
viewsQ: Application for multiple user profiles
In transport services I see two apps the provider and user app. I had a request for a development and in the scope of the project was identified several profiles, on Android I have not found or ever…
-
1
votes2
answers637
viewsQ: How to place a texView inside a Circle
Gentlemen I would like to leave richer a textView leaving it within a Circle, is a Product List with the name of the product and the value and this that would be within the circle, I tried to make a…
-
0
votes1
answer511
viewsQ: JSF dependency conflict with Maven
I created a Maven project in Eclipse with JSF 2, project has been evolving well, running on Tomcat 8 smoothly and that’s where I started implementing the reports so I put the dependencies for Jasper…
-
1
votes1
answer408
viewsA: Ionic 2 - Menu items, first item does not appear
The problem is really that the first Item is up there on the page at the top what we could solve with css more not, this would not be the correct solution. Whenever you have a Toolbar put it inside…
-
0
votes1
answer408
viewsQ: Ionic 2 - Menu items, first item does not appear
I created a Blank project in version 2 of Ionic, I added two pages keeping Homepage and Page1 and 2 and intending to show a list of the pages in the implemented menu in the code of the app. import {…
-
1
votes1
answer1752
viewsQ: Networkerror: 400 Bad Request
When sending a post I received by retrofit in the log the message Networkerror: 400 Bad Request. In Development Environment no error occurs, data is synchronized from device to Server ( Tomcat )…
-
1
votes1
answer79
viewsA: Picture arrives null on the server
The problem here has to do with the parameters of my Server, it expects three whose names are: method, parameter and file The interface has the three but in it we do not name the last @Part…
-
2
votes1
answer616
viewsQ: How to capture camera photo and delete from gallery
I’m getting the image of the camera and saving it in the bank. To get the image is very widespread code, there is nothing new. However the image is also in the gallery, and I would like to delete…
-
1
votes1
answer79
viewsQ: Picture arrives null on the server
I am sending data using the retrofit, I observe all the request until the end and I get the code 200 more on the server side the image arrives null, as I am sending the image and text arrives…
-
0
votes2
answers1348
viewsQ: Problem with Google Maps API key
Map does not open on real device using .apk generated. I made the Activity to the Map using the AS wizard for this purpose, in this mode it generates a SH1. I went to Google API where I already have…
-
2
votes1
answer300
viewsQ: Inject Dao into Converter
I’m having a java.lang.Nullpointerexception error in a Converter at the moment it will access the bank, apparently the dependency is not being injected by the CDI, there are arguments that the…
-
0
votes1
answer289
viewsQ: Postgresql reserved word problems
Dear friends, I am using locally a code downloaded from Github for educational purposes and I am having trouble deploying War, the error has to do with a reserved word from the database used in the…
-
5
votes1
answer3648
viewsQ: How to insert Access-Control-Allow-Origin in the header
Dear Friends, I am making an ajax request by JQuery.Ajax(), to consume a WS SOAP, the envelope is OK but when I make the call I get in the browser "No 'Access-Control-Allow-Origin' header is present…
-
-1
votes1
answer694
viewsQ: Why are my I.mportsscrewing up?
After a few days I opened the project, today I returned to work but when I opened the project I noticed that there was something wrong because all the classes I open indicate error by IDE, errors…
-
0
votes0
answers65
viewsQ: Edittext - more than one Listener?
I am continuing a project that makes orders on Android, and I came across the monetary format on EditText Researching I managed to find a class that is working smoothly, more because I’m talking…
-
1
votes0
answers72
viewsQ: Activity does not open after thread
I’m on an Android project and I have an Activity that doesn’t open, well starting from my main Activity I already have a button that calls another and everything occurs as expected I can make the…
-
1
votes1
answer98
viewsQ: Vaadin project error in "pom.xml"
I created a Maven project and put the dependencies, I got the bug in the pom related to dependency Servlet . <dependency> <groupId>javax.servlet</groupId>…