Questions tagged [internal-storage]

Referring to the Internal Storage capability of the Android API.

Referring to the Internal Storage capability of the Android API.

277 questions
122
votes
12 answers

Retrieve database or any other file from the Internal Storage using run-as

On a non-rooted android device, I can navigate to the data folder containing the database using the run-as command with my package name. Most files types I am content with just viewing, but with the database I would like to pull if from the android…
CQM
  • 42,592
  • 75
  • 224
  • 366
51
votes
8 answers

Android: how to write a file to internal storage

I am developing a simple android application and I need to write a text file in internal storage device. I know there are a lot of questions (and answers) about this matter but I really cannot understand what I am doing in the wrong way. This is the…
delca85
  • 1,176
  • 2
  • 10
  • 17
45
votes
10 answers

Android 4.4 Virtual Device Internal Storage Will Not Resize

When creating a new Android 4.4 Virtual Device using the AVD Manager, I cannot get the internal storage to be anything larger than 200MB. 512MB is the internal storage size I would like to set. I've tried: Setting the internal storage of the device…
27
votes
3 answers

How to turn a portable SD card into internal storage via ADB command?

Android 6.0 Marshmallow’s introduces Adoptable Storage, a feature that allows use a SD Card as internal storage. Is it possible to activate adoptable storage via ADB shell commands?
cassioso
  • 966
  • 1
  • 13
  • 27
14
votes
4 answers

Android - Copy files from assets to /data/data folder

I need to use some files in my app. They are kept in asset folder. I saw discussions on SO, where the files are being copied from asset folder, to /data/data/ on the internal storage, and then being used. I get the code, but what I do…
superuser
  • 625
  • 3
  • 7
  • 19
10
votes
5 answers

file path return null always in lollipop android

this is my code when i'm getting image from internal storage (gallery). In lollipop file path return always null. if (requestCode == PICK_IMAGE) { if(resultCode == RESULT_OK){ //image successfully picked // launching…
9
votes
4 answers

file.delete() from android internal storage return false

I have a method to download a image from url and save it in a folder at Internal storage public void saveDynamicImage(String url,String fileName, String folderName) { InputStream iStream; BufferedInputStream buffInputStream; …
Arundas K V
  • 801
  • 2
  • 14
  • 28
8
votes
3 answers

How to get absolute path of Internal Storage in Android

Internal Storage Path Consider the above picture. It shows the folders and file in internal storage. My problem is i am not able to get the absolute path of the internal storage. I Have tried using String path =…
Dilazak
  • 139
  • 1
  • 1
  • 11
7
votes
3 answers

Are Internal Storage Files Deleted on App Update?

It is known that: When the user uninstalls your app, the system removes all your app's files from internal storage. Does the same thing happens when the user update the app? Why Am I asking? I have a file in the raw/ folder which I move to the…
iTurki
  • 16,292
  • 20
  • 87
  • 132
7
votes
3 answers

How can I write a file to a folder of the internal storage on Android?

I have written a method which creates a file and writes data to the file and stores in the internal storage. When I get the absolute path or path of the file [I have added log messages to experiment with the operations on the File], it shows me that…
ShellZero
  • 4,415
  • 12
  • 38
  • 56
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…
4
votes
1 answer

How do I get path to /data/data folder android

I have some epub files that I saved to android internal storage. I have been using folioReader library to display this files but it keeps telling me the path destination is null. So, I checked android studio's Device File Explorer and I found the…
bensofter
  • 760
  • 1
  • 14
  • 27
4
votes
0 answers

How to get File from FileProvider URI?

I want to record a video, store it in internal storage and access the file. FileProvider creates an URI for the camera intent to record a video: File path = new File(this.getFilesDir(), "shared"); File file = new File(path,…
Manuel
  • 14,274
  • 6
  • 57
  • 130
4
votes
0 answers

Saving multiple files with the same name to android internal storage and displaying them in a list view in a different activity

Trying to get a list of files so that I can name the next file based on how many are already there. The idea is similar to downloading multiple files with the same name. Eg: filename.txt filename(1).txt filename(2).txt etc... this is the current…
mgrantnz
  • 375
  • 1
  • 4
  • 15
4
votes
4 answers

Save video to Internal Storage

I have a videoView that plays an video from a path that corresponds to a video file within the android gallery VideoView videoView1 = (VideoView)promptsView.findViewById(R.id.videoView09); String SrcPath =…
1
2 3
18 19