Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created May 31, 2020 04:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Call the API
class LoginActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
...
signInButton.setOnClickListener { view ->
if (isNetworkConnected()) {
authenticate() //REPLACE CALL TO startActivity() WITH THIS LINE
} else {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment