Posts by Wellington Costa • 348 points
11 posts
-
1
votes1
answer47
viewsA: Error in executing activity_main.xml image
It seems in your file build.gradle of your module app dependence com.android.support:support-annotations declared more than once and with different versions. Apparently, you have this dependency…
-
2
votes2
answers418
viewsA: Spring - @Autowire a List with elements
As Leonardo Lima commented, the UnsatisfiedDependencyException happens because Spring didn’t find any Bean of the kind List<RegistrationRule>. For this, you can declare a method that returns…
-
0
votes1
answer196
viewsA: How to save images from an android Imageview to a Mysql database using a java web service Rest
You could turn your image into an array of bytes and transfer it to the web service and save it to the database as a binary.
-
1
votes1
answer77
viewsA: Do fragments work as an Activity?
The idea of Fragment is to represent behavior or a user interface within a Activity. In a Activity you can have several Fragment. And you can even use Fragment in other Activity. With this, you can…
-
2
votes1
answer177
viewsA: Nullpointerexception when calling method return in another class
The exception is because your attribute resp apparently null. You could return the logged in user id directly, as in the code below: @RequestMapping(value = "/usuarioEntidade", consumes =…
-
0
votes2
answers66
viewsA: How to create message sending method in Tabs?
You can use the class Bundle and pass an instance of that class to your Fragmentin the act of his Intent. Example: Bundle bundle = new Bundle(); bundle.putString("foo", "bar"); // chave e valor,…
androidanswered Wellington Costa 348 -
6
votes3
answers915
viewsA: Random without repetition
Try to store your values in one Set<Integer>. The type of data Set is a list that does not store repeated values. With this you will ensure that the stored values do not repeat. PS: Integer is…
-
1
votes2
answers521
viewsA: Connecting Elephantsql with java
I believe your connection URL is not correct. Try this: Substitute ENDERECO, PORTA, NOME_DO_BANCO, SEU_USUARIO and SUA_SENHA at the right values. private static final String DRIVER =…
-
0
votes1
answer221
viewsA: Autoload no Javascript
You can use the npm or the Bower to manage the dependencies of your project. I hope I’ve helped.…
-
1
votes1
answer1074
viewsA: 2 files properties on Spring Boot
1. Add the profiles of dev and Prod in your file pom.xml <profiles> <profile> <id>dev</id> <properties> <spring.profile>dev</spring.profile>…
-
3
votes1
answer37
viewsA: Android: Use component id as key in Array
Maybe it is some problem related to the index of the list, which in this case is the id of the element Imagebutton. Try to use a Map< int, Bitmap > to add its elements. For each Entry of Map…