Android 스튜디오에서는 앱 개발을 가속화하는 데 사용할 수 있는 적절한 코드 샘플 및 템플릿을 제공합니다. 샘플 코드를 탐색하여 앱에 맞게 다양한 구성요소를 빌드하는 방법을 알아보세요. 템플릿을 사용하여 새로운 앱 모듈, 개별 활동 또는 다른 특정 Android 프로젝트 구성요소를 만드세요.
이 페이지에서는 고품질의 Google 제공 Android 코드 샘플에 액세스하여 이를 사용하는 방법을 설명합니다.
템플릿에 관한 자세한 내용은 템플릿에서 코드 추가를 참고하세요.
Browse Samples 대화상자
샘플 브라우저를 사용하여 하나 이상의 샘플 앱을 프로젝트로 선택하고 미리 보고 가져올 수 있습니다.
File > New > Import Sample을 선택합니다.
검색창 또는 스크롤바를 사용해 샘플을 찾습니다.
관심 있는 샘플을 찾았으면 이 샘플을 강조표시하고 미리보기에서 확인합니다.
이 샘플을 프로젝트로 가져오려면 Next를 클릭한 후 Finish를 클릭합니다.
그림 1. 샘플 목록 및 미리보기가 표시된 Browse Samples 상자
GitHub를 통해 소스 코드를 찾아볼 수도 있습니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-08-10(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-08-10(UTC)"],[],[],null,["# Find sample code\n\nAndroid Studio provides a selection of code samples and templates for you to use to accelerate your\napp development. Browse sample code to learn how to build different components for your\napps. Use templates to create new app modules, individual activities, or other specific\nAndroid project components.\n\n\nThis page describes how to access and use the high-quality, Google-provided Android code samples.\nFor information about templates, see\n[Add code from a template](/studio/projects/templates).\n\nBrowse Samples dialog\n---------------------\n\n\nUse the samples browser to select, preview, and import one or more sample apps\nas projects:\n\n1. Select **File \\\u003e New \\\u003e Import Sample**.\n2. Use the search box or the scroll bar to browse the samples.\n3. When you find a sample that interests you, highlight it and take a look at the preview.\n4. If you want to import the sample as a project, click **Next** and then **Finish**.\n\n**Figure 1.** Browse Samples dialog with sample list and preview.\n\nYou can also browse the source code through GitHub."]]