我可以在手机中找到存储的文件?

时间:2016-02-22 07:32:24

标签: android file

我的应用将文件保存在文件夹文件中。但我无法在电话中找到这些文件。有什么问题?

 File file = new File(getFilesDir() + DIR_NAME + fileName + ".txt");
                        if (!file.getParentFile().exists()) {
                            file.getParentFile().mkdirs();
                        }
                    }

                    fos = new FileOutputStream(file);
                    osw = new OutputStreamWriter(fos, "UTF-8");
                    osw.write(editText.getText().toString());

1 个答案:

答案 0 :(得分:0)

% data
A = imread('ngc6543a.jpg');
I = rgb2gray(A);

% zero map
I_zero_map = (I == 0); % store the location of the zero
shape_I = size(I); % store the original shape of your matrix

% build hist without the zeros
I_temp = I(:); % copy I with a vector shape
I_temp(I_temp == 0) = []; % remove the zeros from the vector
I_temp = histeq(I_temp); % perform histogram equalisation

% reshape the matrice by adding the zeros
for ii = find(I_zero_map(:))'
    I_temp = [I_temp(1:ii-1); 0; I_temp(ii: end)]; % add the original zeros
end
I = reshape(I_temp, shape_I) % reshape to the original size
  

<强> android.os.Environment.getExternalStorageDirectory()   用于检查手机内存中的文件。

相关问题