Hello, From an Activity, How can I retrieve code or text from a website and display to the user ? I'm having difficulties programming back to Android, now developing as for Android 6.0 and newer. Getting deprecated about http client etc.. so I need a little of help.
Can you paste me some code example including "imports" in order to when the app load and when a user click a "button1", to retrieve the text displayed from a web, say "http://yahoo.es", and show a message to the user with say the first 24 characters using Toast, so the first 24 characters of retrieved web as string. Help much appreciated in advance -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/dd774095-b679-4e19-b389-d1266f3df7a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.