I need to know is there any limit to use sdcard for each app? I'm trying to write video parts to scdard while camera app is recording and after 50mb (approximately not tested well) I got the error : "No space left". Although sdcard has 1.4 gb free space left. If there is a limit , how can I change or remove it?

Thanks

Edit: Full error message:

FileNotFoundException: /sdcard /20120905_180841_VIDEO_PART89.bin (No space left on device)

Here is my writing method:

private void write(byte[] DataByteArray, String DestinationFileName)
{

    OutputStream output = null;

    try {
        output = new BufferedOutputStream(new FileOutputStream(DestinationFileName)); //exception occurs here
        output.write( DataByteArray );        
    }
    catch(FileNotFoundException ex){
        Log.e(Helper.LOG_TAG, "FileNotFoundException: " + ex.getMessage());
    }
    catch(IOException ex){
        Log.e(Helper.LOG_TAG, "IOException" +  ex.getMessage() + " " + ex.getClass());
    }
    finally {
        try {
            if(output != null)
                output.close();
        } catch (IOException e) {
            Log.e(Helper.LOG_TAG, "IOException while closing output " + e.getMessage() + " " + e.getClass());
        } 
    }
有帮助吗?

解决方案

is there any limit to use sdcard for each app?

No.

I'm trying to write video parts to scdard while camera app is recording and after 50mb (approximately not tested well) I got the error : "No space left".

Make sure that you are writing to external storage.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top