Last active
December 2, 2018 21:57
-
-
Save sambaiz/11318049 to your computer and use it in GitHub Desktop.
Kotlin Android
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
val i = Intent(getApplicationContext() as Context, javaClass<MainActivity2>()) | |
startActivity(i) |
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
private fun getApiKey() : String? { | |
val appliInfo : ApplicationInfo? = | |
getPackageManager()?.getApplicationInfo(getPackageName(), PackageManager.GET_META_DATA) | |
return appliInfo?.metaData?.getString("fb_api_key") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment