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 composeSmsMessage(phoneNumber: String, message: String) { | |
val uri = Uri.parse("smsto:$phoneNumber") | |
val intent = Intent(Intent.ACTION_SENDTO, uri) | |
intent.putExtra("sms_body", message) | |
intent.resolveActivity(packageManager)?.let { | |
startActivity(intent) | |
} | |
} |
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 dialPhoneNumber(phoneNumber: String) { | |
val intent = Intent(Intent.ACTION_DIAL) | |
intent.data = Uri.parse("tel:$phoneNumber") | |
intent.resolveActivity(packageManager)?.let { | |
startActivity(intent) | |
} | |
} | |
private fun callPhoneNumber(phoneNumber: String) { | |
val intent = Intent(Intent.ACTION_CALL) |
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 searchWeb(query: String) { | |
val intent = Intent(Intent.ACTION_WEB_SEARCH) | |
intent.putExtra(SearchManager.QUERY, query) | |
intent.resolveActivity(packageManager)?.let { | |
startActivity(intent) | |
} | |
} |
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 openWebsite(url: String) { | |
val websiteUri = Uri.parse(url) | |
val intent = Intent(Intent.ACTION_VIEW, websiteUri) | |
intent.resolveActivity(packageManager)?.let { | |
startActivity(intent) | |
} | |
} |
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
public void testGist(){ | |
System.out.println("Test Gist"); | |
} |
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
apply from: 'strip_play_services.gradle' |