You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done everything right, and I have the methods to be valid. Now, I'd use the getTopNews method as an example. Instead of what is there System.out.println(article.getTitle());, I created a variable which holds the ID of one of my textViews. Then set it as myText.setText(article.getTitle());. But then, it doesn't work. The text doesn't change or show any news title. To be sure, I added a toast message in the OnFailure method and when I launched the app, I saw the toast. So, I believe something's wrong somewhere.
Activity