Android 7.1 샘플
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
다음 코드 샘플은 Android 7.1 (API 25)용으로 제공됩니다. Android 스튜디오에서 샘플을 다운로드하려면 File > New > Import Sample 메뉴 옵션을 선택합니다.
참고: 이러한 다운로드 가능한 프로젝트는 Gradle 및 Android 스튜디오와 함께 사용하도록 고안되었습니다.
앱 바로가기 샘플
이 샘플은 Android 7.1 (API 수준 25)에 도입된 앱 바로가기 API를 사용하는 방법을 보여줍니다. 이 API를 사용하면 애플리케이션에서 사용자가 앱의 런처 아이콘을 길게 누를 때 표시되는 인텐트 집합을 정의할 수 있습니다. 두 링크를 런타임에 동적으로 등록하는 예와 XML에 정적으로 등록하는 예가 제공됩니다.
앱 바로가기 샘플
이미지 키보드 앱 샘플
이 샘플은 Android 지원 라이브러리를 사용하여
Commit Content API를 구현하는 방법을 보여줍니다.
이 API는 IME에서 이미지 및 기타 리치 콘텐츠를 앱의 텍스트 편집기로 직접 전송하는 보편적 방법을 제공하므로 사용자가 맞춤 이모티콘, 스티커 또는 다른 애플리케이션에서 제공하는 기타 리치 콘텐츠를 사용하여 콘텐츠를 작성할 수 있습니다.
이미지 키보드 앱 샘플
이미지 키보드 IME 샘플
이 샘플은
Commit Content API 및 Android 지원 라이브러리를 사용하여 맞춤 이미지 키보드를 작성하는 방법을 보여줍니다.
이 키보드는 호환되는 앱 (Commit Content API도 사용) 내부에 표시되므로 사용자가 그림 이모티콘, 스티커 또는 기타 리치 콘텐츠를 텍스트 편집기에 삽입할 수 있습니다.
이미지 키보드 IME 샘플
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Android 7.1 Samples\n\nThe following code samples are provided for Android 7.1 (API 25). To\ndownload the samples in Android Studio, select the **File \\\u003e New \\\u003e Import Sample** menu\noption.\n\n\n**Note:** These downloadable projects are designed\nfor use with Gradle and Android Studio.\n\n### App shortcuts sample\n\n\nThis sample demonstrates how to use the [app shortcuts API](/guide/topics/ui/shortcuts)\nintroduced in Android 7.1 (API level 25). This API allows an application to define a set of\nintents which are displayed when a user long-presses on the app's launcher icon. Examples are\ngiven for registering links both statically in XML, as well as dynamically at runtime.\n\n\n[App shortcuts sample](https://github.com/android/user-interface-samples/tree/main/AppShortcuts)\n\n### Image keyboard app sample\n\n\nThis sample demonstrates how to implement the [Commit Content API](/reference/android/view/inputmethod/InputConnection#commitContent(android.view.inputmethod.InputContentInfo,%20int,%20android.os.Bundle)), using the [Android Support Library](/topic/libraries/support-library).\nThis API provides a universal way for IMEs to send images and other rich\ncontent directly to a text editor in an app, allowing users to compose\ncontent using custom emojis, stickers, or other rich content provided by\nother applications.\n\n\n[Image keyboard app sample](https://github.com/android/input-samples/tree/main/CommitContentSampleApp)\n\n### Image keyboard IME sample\n\n\nThis sample demonstrates how to write a [custom image keyboard](/preview/image-keyboard) using the [Commit Content API](/reference/android/view/inputmethod/InputConnection#commitContent(android.view.inputmethod.InputContentInfo,%20int,%20android.os.Bundle)) and the [Android Support Library](/topic/libraries/support-library).\nThis keyboard will be displayed inside compatible apps (also using the Commit\nContent API), allowing users to insert emojis, stickers, or other rich\ncontent into text editors.\n\n\n[Image keyboard IME sample](https://github.com/android/input-samples/tree/main/CommitContentSampleIME)"]]