Application | Activity | Service | ContentProvider | BroadcastReceiver | |
---|---|---|---|---|---|
Show a Dialog | NO | YES | NO | NO | NO |
Start an Activity | NO1 | YES | NO1 | NO1 | NO |
Layout Inflation | NO2 | YES | NO2 | NO2 | NO |
Start a Service | YES | YES | YES | YES | YES |
Bind to a Service | YES | YES | YES | YES | NO |
Send a Broadcast | YES | YES | YES | YES | YES |
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
git fetch --prune | |
for branch in $(git branch -r --no-merged origin/staging | sed s/origin\\///g | grep -v HEAD); do | |
printf "%-32s %s\n" "$(git show -s --format=%an origin/$branch)" $branch; | |
done | sort |
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
/** | |
* This function open email compose view and post HTML body | |
**/ | |
// val body = Html.fromHtml(fragment.resources.getString(R.string.email_body)) | |
fun navToEmailCompose(email: String, subject: String, body: String) { | |
val intent = Intent(Intent.ACTION_SENDTO, | |
Uri.parse("mailto:${email}")) | |
intent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject) | |
intent.putExtra(android.content.Intent.EXTRA_TEXT, body) | |
startActivity(Intent.createChooser(intent, "Email")) |