Question

Where exactly is the IsolatedStorage on the android devices. I would have expected it to be in the /mnt/sdcard/Android/data/[packagename]/ location, but it is not. I used the File Explorer (from eclipse) to try and find it, but I can't.

If I can somehow load a html page into the WebView or play a video from IsolatedStorage, then I won't need this actual path. But, I don't want to copy the movie to a temporary location in order to play it, I might as well just store it on the SD Card.

The reason I am using IsolatedStorage is to minimize the custom code across the platforms, I am developing for the Windows Phone, which only allows for IsolatedStorage.

Was it helpful?

Solution 2

I found that IsolatedStorageFile points towards internal memory only.

I used the Context.GetFilesDir() and the Context.GetExternalFilesDir() depending on the user's selection.

OTHER TIPS

To determine the directory in which your "isolated storage" aka internal storage is kept, use the GetFilesDir() method. This method is part of the Activity base class. It is to be used for files you do not want other applications to have access to.

Other useful methods

GetFilesDir(): Gets the absolute path to the filesystem directory where your internal files are saved.

GetDir(): Creates (or opens an existing) directory within your internal storage space.

DeleteFile(): Deletes a file saved on the internal storage.

FileList(): Returns an array of files currently saved by your application.

See the android developers documentation for more details

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top