How to change textview that is not on my screen
I am trying to load data from the cloud and then display it in a text view. This means that after the user logs in, before they decide to change to any of the other 3 screens in the app, I want to populate the textviews with the proper information. The only problem is that the view ids that are trying to be accessed are null since those fragments haven’t been loaded. When I try the same process using the view id of a on screen textview it works but on the other fragments no dice.
Could not find Fragment Constructor: Caused by java.lang.NoSuchMethodException
We are using a Fragment which extends BottomSheetDialogFragment.
Why my Context is null inside a Fragment created from FragmentStateAdapter?
I am trying to retrieve images from SQLite database (I saved the images as String
path ) to an ImageView
, using this method: