Questions tagged [android-internal-storage]

Android device's internal storage memory

By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). When the user uninstalls your application, these files are removed.

To create and write a private file to the internal storage:

  1. Call openFileOutput() with the name of the file and the operating mode. This returns a FileOutputStream.
  2. Write to the file with write().
  3. Close the stream with close().
181 questions
17
votes
2 answers

Saving Files in Android - For Beginners (Internal / External Storage)

I'm very new to android development and I need a beginners help please... I am creating an app that should have 2 directories, a Databases directory and an Images directory, just like Whatsapp has. I want to see those directories in the File Manager…
11
votes
1 answer

How to save/read inline images in html content to internal/extrenal memory

According to this question I used a custom ImageGatter class to display images that I'm getting from a server in TextView using Picasso public class PicassoImageGetter implements Html.ImageGetter { private TextView textView = null; …
11
votes
1 answer

Why using a FileProvider I can't open file from INTERNAL STORAGE with external apps?

I created an app which can import file in its internal storage. In order to open a file with an external app (for example PF viewer or Photos) I tried to follow these guides: the official guide, topic1, topic2, topic3 and topic4 but without…
10
votes
1 answer

Word document is always Read-Only when opened with Intent

I am trying to open and edit a word document located in my external storage in my Xamarin.Android App with MS-Word with this code: File wordFile = new File(wordFilePath); wordFile.SetWritable(true); FileInfo fileInfo = new…
6
votes
2 answers

After install app, Internal storage (Android>data) package folder not created

When I fresh install app, I notice most of the app will have a folder created in Internal Storage > Android > Data > com.example.package folder. For example its facebook app it will be something like com.facebook.xxxxx. However, one of the project I…
SY MY
  • 91
  • 1
  • 7
5
votes
1 answer

Android Intent.ACTION_SEND from Internal Storage with Content Provider

I am saving a file on internal storage. It is just a .txt file with some information about objects: FileOutputStream outputStream; String filename = "file.txt"; File cacheDir = context.getCacheDir(); File outFile = new…
5
votes
0 answers

Android Adoptable Storage - find out if internal SD is mounted

When thinking about this question I asked, I wondered: Is there really no way of finding out if a adopted SD is present? With a Motorola G3 there were two paths returned by getExternalFilesDirs() when an external SD was present, but only one (the…
4
votes
2 answers

how to download and save media files in internal storage android java

I want to download some audio files from the internet. I want to use downloadmanager to download this file but I don't know how to save these files to a specific internal storage location in android. InternalStorage/folder/filename.mp3 (so I can…
4
votes
0 answers

Android Adoptable Storage - get free Space

I have a App that uses 3 kinds of storage: The internal storage, a external SD and if Version >= 6.0 a SD which is formatted as internal. I get the external SD path by using getExternalFilesDirs(), the internal Storage by getFilesDir() and the…
3
votes
1 answer

Android 11 - creating app's directory as a shared folder under Storage root

We need to create our app's directory as a shared one under Internal storage root so that all files/images received and downloaded through our app can be viewed using any File manager, Photo gallery etc. Till Android 10, we were able to do that but…
Krishnan V S
  • 1,124
  • 1
  • 13
  • 31
3
votes
3 answers

Downloading PDF files in internal storage

I'm making the task of Android. I download the file from URL and save in internal storage/directory of android phone? my code is written below but this is external storage code I want internal storage code. public void onClick(View v) { …
3
votes
2 answers

Android download apk file and save to INTERNAL STORAGE

I have been stuck for days when developing a function that allow user to check for new app update (I use local server as my distribution point). The problem is the downloading progress seems working perfectly but I could not find the downloaded file…
3
votes
2 answers

Share text file via Intent from internal storage

I create a bunch of text files which I created like in the code below. I saved those files in internal storage. My goal now is to display it in ListView and if user gonna click on an item it should open or send the file via intent (e.g. email).…
3
votes
1 answer

Accessing internal storage in Android

I'm developing an Android app that needs to display images from the default camera folder. My problem is that I do not know how to find what is the internal default storage folder for camera photos. When I look for it connecting the phone to the PC…
Víctor Martínez
  • 854
  • 2
  • 11
  • 29
3
votes
2 answers

How to get exact capacity from storage

I want to read the exact capacity from the intern storage programmatically. I's a Samsung Galaxy S7 Edge 32GB device what I am using. In the preinstalled Samsung FileManager (In German: Eigene Dateien) it shows me the total capacity of 32GB. Even…
MSeiz5
  • 182
  • 1
  • 9
  • 28
1
2 3
12 13