简体   繁体   English

运行模拟器时的android内部存储文件夹

[英]android internal storage folders when running simulator

I am testing how to create directories using internal storage, but how to see in eclipse if this folder was properly created? 我正在测试如何使用内部存储创建目录,但是如何在Eclipse中查看是否正确创建了该文件夹? where is this folder created when executing simulator? 执行模拟器时,该文件夹在哪里创建? Thank you 谢谢

public class DirectoriesActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        createFolder(getBaseContext());

    }

    public static void createFolder(Context context){

            context.getDir("aplicaciones", Context.MODE_PRIVATE); //Creating an internal dir;
    }
}

If you are working in eclipse then you can see the complete file structure of installed app folder. 如果您在eclipse中工作,则可以看到已安装的应用程序文件夹的完整文件结构。

step 1: go to Windows->show view->android->file explorer 第1步:转到Windows->显示视图-> android->文件资源管理器

step 2 : expand directory data->data-> app installed package-> Here you can see created folders 步骤2:展开目录数据->数据->应用安装包->在这里您可以看到创建的文件夹

转到DDMSView-> FileExplorer-> data-> data->您的包->文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM