I hereby claim:
- I am cketti on github.
- I am cketti (https://keybase.io/cketti) on keybase.
- I have a public key whose fingerprint is E9B8 B841 2592 2037 5BAE 6E41 EE2F EF3A 7DA8 E289
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Intent emailIntent = new Intent(Intent.ACTION_SENDTO); | |
emailIntent.setData(Uri.parse("mailto:[email protected]")); |
String mailto = "mailto:[email protected]" + | |
"?cc=" + "[email protected]" + | |
"&subject=" + Uri.encode(subject) + | |
"&body=" + Uri.encode(bodyText); | |
Intent emailIntent = new Intent(Intent.ACTION_SENDTO); | |
emailIntent.setData(Uri.parse(mailto)); | |
try { | |
startActivity(emailIntent); |
Intent emailIntent = EmailIntentBuilder.from(context) | |
.to("[email protected]") | |
.subject("Feedback for MyAwesomeApp") | |
.build(); |
boolean success = EmailIntentBuilder.from(activity) | |
.to("[email protected]") | |
.cc("[email protected]") | |
.subject("Error report") | |
.body(buildErrorReport()) | |
.start(); |
public class CopyToClipboardActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
Uri uri = getIntent().getData(); | |
if (uri != null) { | |
copyTextToClipboard(uri.toString()); | |
Toast.makeText(this, "Link copied to clipboard", Toast.LENGTH_SHORT).show(); |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="..."> | |
<application ...> | |
... | |
<activity | |
android:name=".CopyToClipboardActivity" | |
android:exported="false" | |
android:icon="@mipmap/ic_copy_link" |
If you are annoyed that "Sources for Android 26" are not yet available via SDK manager, this might be for you:
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/base