Created
November 2, 2018 13:09
-
-
Save AdiD253/10bf05c85d3d7c2f57062cc85c02423c 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 { | |
init { | |
System.loadLibrary("native-lib") | |
} | |
} | |
private external fun secretKey(): String | |
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(secretKey()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment