Skip to content

Instantly share code, notes, and snippets.

@AdiD253
Last active November 2, 2018 11:56
Show Gist options
  • Save AdiD253/5983cb5d9772c9ae75a8c70614c95f11 to your computer and use it in GitHub Desktop.
Save AdiD253/5983cb5d9772c9ae75a8c70614c95f11 to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
companion object {
private const val SECRET_TOKEN = "jb&1a=U51-ng2="
}
private val superService by lazy {
SuperService()
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
connectToWebservice()
}
private fun connectToWebservice() {
superService.connect(SECRET_TOKEN)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment