קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
סייר המכשירים מאפשר לכם להציג, להעתיק ולמחוק קבצים במכשיר Android. האפשרות הזו שימושית כשבודקים קבצים שהאפליקציה יוצרת או כשרוצים להעביר קבצים אל מכשיר וממנו.
כדי לעבוד עם מערכת הקבצים של מכשיר, מבצעים את הפעולות הבאות:
כדי לפתוח את Device Explorer, בוחרים באפשרות View > Tool Windows > Device Explorer (תצוגה > חלונות כלים > Device Explorer) או לוחצים על הלחצן Device Explorer (Device Explorer) בסרגל חלונות הכלים.
בוחרים מכשיר מהרשימה הנפתחת.
איך משתמשים בתוכן של המכשיר בחלון של סייר הקבצים:
לוחצים לחיצה ימנית על קובץ או על ספרייה כדי ליצור קובץ או ספרייה חדשים.
שמירה, העלאה, מחיקה או סנכרון של הקובץ או הספרייה שנבחרו במחשב.
לוחצים לחיצה כפולה על קובץ כדי לפתוח אותו ב-Android Studio.
איור 1. חלון הכלי Device Explorer.
Android Studio שומר קבצים שפותחים בסייר המכשירים בספרייה זמנית מחוץ לפרויקט. אם מבצעים שינויים בקובץ שנפתח באמצעות הכלי לבדיקת מכשירים ורוצים לשמור את השינויים בחזרה במכשיר, צריך להעלות ידנית את הגרסה ששונתה של הקובץ למכשיר.
כשבודקים את הקבצים של מכשיר, כדאי לשים לב במיוחד לספריות הבאות:
data/data/app_name/
מכיל קובצי נתונים של האפליקציה ששמורים באחסון הפנימי.
הערה: לא כל הקבצים במכשיר חומרה מוצגים בסייר המכשירים. לדוגמה, בספרייה data/data/, אי אפשר להרחיב את הרשומות שמתאימות לאפליקציות במכשיר שלא ניתן לבצע בהן ניפוי באגים.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-28 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-28 (שעון UTC)."],[],[],null,["# View on-device files with Device Explorer\n\nThe Device Explorer lets you view, copy, and delete files on an\nAndroid device. It's useful when examining files your app creates\nor if you want to transfer files to and from a device.\n| **Note:** Most device data is not visible unless you are using a rooted device or an emulator with a standard Android (AOSP) system image, not one of the Google APIs or Google Play system images. When using a connected device, be sure to [enable USB debugging](/studio/debug/dev-options#enable).\n\nTo work with a device's file system, proceed as follows:\n\n1. To open the Device Explorer, select **View \\\u003e Tool Windows \\\u003e Device\n Explorer** or click the **Device Explorer** button in the tool window bar.\n2. Select a device from the drop-down list.\n3. Interact with the device content in the file explorer window:\n - Right-click a file or directory to create a new file or directory.\n - Save, upload, delete, or synchronize the selected file or directory to your machine.\n - Double-click a file to open it in Android Studio.\n\n\n**Figure 1.** The Device Explorer tool window.\n\nAndroid Studio saves files you open in the Device Explorer in a temporary\ndirectory outside of your project. If you make modifications to a file\nopened using the Device Explorer and want to save your changes back\nto the device, you must manually upload the modified version of the file to the\ndevice.\n\nWhen exploring a device's files, the following directories are particularly\nuseful:\n\n`data/data/`\u003cvar translate=\"no\"\u003eapp_name\u003c/var\u003e`/`\n: Contains data files for your app stored on\n [internal storage](/training/data-storage#categories-locations).\n\n`sdcard/`\n: Contains user files stored on\n [external user\n storage](/training/data-storage#categories-locations) (pictures, etc.).\n\n**Note:** Not all files on a hardware device are\nvisible in the Device Explorer. For example, in the `data/data/`\ndirectory, entries corresponding to apps on the device that are not debuggable\ncan't be expanded in the Device Explorer."]]