[[["易于理解","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"]],["最后更新时间 (UTC):2025-08-10。"],[],[],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."]]