Processing of file import in SDcard under Eclipse DDMS view in Android development

Source: Internet
Author: User

The first thing you need to explain is that the SDcard permission is not meant to be read in the Android application program to set SDcard permissions.

To take the problem. Instead, it refers to the permissions problem for that SDcard directory under the directory that DDMS sees.

Sometimes, when you want to import a file under the SDcard directory, suddenly find that the SDcard directory does not have permissions, its permission state is (

d-------i.e. 000). What we need to do at this time: 1. If you do not configure the ADB operating environment, the environment is configured under path

Android-sdk-windows\platform-tools Road Add to the end (Adb.exe below) 2. Open cmd command 3. Input

ADB shell (after successful entry into the root user status of ADB #) 4. You can use the LS command to see the directory under the current folder, you will find

SDcard directory under here 5. Modify the SDcard permissions, because SDcard is the state of only-read at this time, so modify the directory command with:

chmod 075 (not directly with 777, not successfully executed) Well, in DDMS you will find the SDcard directory read and Write permissions modified. Again

The import of the file can be successful.

Common errors:


1.Failed to push items null
Workaround: This time requires a reboot of eclipse or
ADB root
ADB remount
It's OK when you're done.

2.Could not find sdk_root\tools\adb.exe!
The possible reason is that the downloaded SDK version is too new. There are basically two kinds of installation strategies on the Internet: one is to download the latest version of the Android SDK;

One is to download the old SDK (which should be before 1.6), then join Eclipse and set up eclipse to update.

3.DDMS sdcard Import files Failed to push selection:read-only file system
A command in the CMD window is available:
ADB shell mount-o remount RW/

Processing of file import in SDcard under Eclipse DDMS view in Android development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.