Last active
November 2, 2018 11:56
-
-
Save AdiD253/5983cb5d9772c9ae75a8c70614c95f11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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