Posts by Matheus Fróes • 86 points
4 posts
-
0
votes1
answer760
viewsA: Request permission to access Android internal storage by a Fragment
The class Fragment(android.support.v4.app.Fragment) has a method requestPermissions(@NonNull String[] permissions, int requestCode) Example: @Override public void onViewCreated(@NonNull View view,…
-
2
votes1
answer426
viewsA: Change the color of textview using switch
First to receive the check/uncheck event from Switch you need to implement the interface OnCheckedChangeListener through the method setOnCheckedChangeListener, within that callback you have access…
androidanswered Matheus Fróes 86 -
1
votes1
answer472
viewsA: Send Recycleview Data to Activity
There are several ways to do this. First you need to receive the click event RecyclerView in Activity and then you can pass this value on Intent to another Activity. To detect the event click on an…
-
4
votes1
answer5258
viewsA: How to take the value of a Spinner and continue the form
Hello, instead of getOnItemSelectedListener() use getSelectedItem() which returns an object, or getSelectedItemPosition() which returns the position of the list of the item that was chosen by the…