권장사항
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Gemini의 답변은 질문 방식에 따라 달라집니다. 다음은 Gemini의 대답을 최적화하는 방법에 관한 몇 가지 팁입니다.
- 구체적으로 작성합니다. 사용하고 싶은 특정 라이브러리, API 또는 접근 방식이 있다면 질문에 포함하세요.
check_circle
권장사항
CameraX를 사용하여 앱에 카메라 지원을 추가하려면 어떻게 해야 하나요?
cancel
금지사항
앱에 카메라 지원을 추가하려면 어떻게 해야 하나요?
- 원하는 답변의 구조를 설명합니다. Gemini가 생성한 코드를 앱에 삽입하고 특정 형식이 필요한 경우 해당 안내를 제공하세요.
check_circle
권장사항
이 코드에 주석을 삽입해 줘. 주석에는 이중 슬래시를 사용하고 각 주석은 설명하는 코드 줄 위에 배치합니다.
cancel
금지사항
이 코드에 대한 코드 주석을 작성해 줘.
- 복잡한 요청을 일련의 간단한 질문으로 분할합니다.
특히 코드를 요청할 때는 일련의 간단한 질문을 하면 전반적으로 더 포괄적인 답변을 얻을 수 있습니다.
check_circle
권장사항
1. 로그인 화면이 있는 앱의 MainActivity.kt
파일을 제공해 줘.
2. 사용자 프로필을 나타내는 클래스를 추가할 수 있나요?
3. 여러 사용자 프로필을 지원하는 코드를 추가할 수 있나요?
cancel
금지사항
여러 사용자 프로필을 지원하는 로그인 화면이 있는 앱을 만들려면 어떻게 해야 하나요?
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-31(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-31(UTC)"],[],[],null,["# Best practices\n\nGemini's answers differ based on how you ask your question. Here are some\ntips on how to optimize the answers from Gemini:\n\n- **Be specific** . If there are certain libraries, APIs, or approaches that you'd like to use, include them in your question. \n check_circle\n\n ### Do\n\n How do I add camera support to my app using CameraX? \n cancel\n\n ### Don't\n\n How do I add camera support to my app?\n- **Describe the structure of the desired answer** . If you want to insert code generated by Gemini into your app and need it in a certain format, give it those instructions. \n check_circle\n\n ### Do\n\n Insert comments into this code. Use double slashes for the comments, and put each comment above the line of code it describes. \n cancel\n\n ### Don't\n\n Write code comments for this code.\n- **Break up complex requests into a series of simpler questions** . Especially when you're asking for code, asking a series of simpler questions yields a more comprehensive answer overall. \n check_circle\n\n ### Do\n\n 1. Give me the `MainActivity.kt` file for an app with a login screen. \n 2. Can you add a class that represents a user profile? \n 3. Can you add code that supports multiple user profiles? \n cancel\n\n ### Don't\n\n How do I create an app with a login screen that supports multiple user profiles?"]]