Questions tagged as 'java'

4
answers

Error executing spring security

I'm having the following error: Field authenticationManager in com.ronaldo.money.api.config.AuthorizationServerConfig required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found. A...
asked by 03.05.2018 / 22:27
1
answer

AsyncTask Android generating NullPointerException

I have this static class in an Activity where its function and download a file and save it on the user's device. I tested it on a real device in Android version 7.1.1 and 4.1.2 and it worked correctly. However, by launching the application I hav...
asked by 04.05.2018 / 23:16
1
answer

How to generate a dynamic link within a condition in Thymeleaf?

I would like to know how I can generate a link within a condition in Thymeleaf. In my situation, if the condition is not met, I wanted to create a link that would lead to a new form, in which the user could register a Director. I've been able...
asked by 06.04.2018 / 21:05
2
answers

Text View Null: void android.widget.TextView.setText (java.lang.CharSequence) 'on a null object reference

I'm getting an API data in a fragment to change the Activity txt. But when I call the function that makes this change the setText gives NullPointerException. If I call the same function on the activity screen it works, but if I call anywhere in...
asked by 06.04.2018 / 19:40
2
answers

Click on Checkbox component and enable EditText

How to enable an edittext component in the same view when clicking on the "other" checkbox component? As in the image:     
asked by 08.04.2018 / 21:36
1
answer

Open HTML via asset

How do I open html via asset? I'm trying to create a text editor for my application.     
asked by 12.04.2018 / 04:03
1
answer

Change shadow color of ViewPager

How do I make this viewpager shadow change color?     
asked by 12.04.2018 / 02:25
1
answer

Can anyone explain what a Spring Framework bean is?

Can anyone simplify what is a bean? I've read the description on Spring's own website but it did not make much sense to me what it actually is, and what it actually does. I know I have to set it up in spring-context.xml, but I do not know exa...
asked by 12.04.2018 / 00:20
1
answer

PublicKey for String

I have a server that uses RSA and an Android app. I want the server to pass its PublicKey to the Android application. I'm trying to pass PublicKey as a string, but when I send something encrypted with this key to the server and try to decipher i...
asked by 10.04.2018 / 13:31
1
answer

Dynamically change the image of an imageView (Android Studio)?

I have an imageview with two buttons, forward and backward. In a gallery of 5 photos I would like to be changing the image so that one button advances one image and the other one goes back. I know how to just jump to a specific image. Can anyone...
asked by 09.04.2018 / 18:37