If you are annoyed that "Sources for Android 26" are not yet available via SDK manager, this might be for you:
- Collect source files
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/baseIf 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| <?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" |
| 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(); |
| boolean success = EmailIntentBuilder.from(activity) | |
| .to("[email protected]") | |
| .cc("[email protected]") | |
| .subject("Error report") | |
| .body(buildErrorReport()) | |
| .start(); |
| Intent emailIntent = EmailIntentBuilder.from(context) | |
| .to("[email protected]") | |
| .subject("Feedback for MyAwesomeApp") | |
| .build(); |
| 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 = new Intent(Intent.ACTION_SENDTO); | |
| emailIntent.setData(Uri.parse("mailto:[email protected]")); |
I hereby claim:
To claim this, I am signing this object: