android-sdcard Questions
27
Solved
Samsung Galaxy S3 has an external SD card slot, which is mounted to /mnt/extSdCard.
How can I get this path by something like Environment.getExternalStorageDirectory()?
This will return mnt/sdcar...
Instep asked 1/7, 2012 at 9:48
5
Solved
I want to get the list of all Storage Devices which are connected to the Android device.
For eg- Internal Storage(Storage in which all the folders such as Downloads, DCIM etc are present), SD Car...
Neb asked 23/1, 2018 at 9:28
7
I am new to Android development.
I need to read a text file from the SD card and display that text file.
Is there any way to view a text file directly in Android or else how can I read and display...
Tradesman asked 25/5, 2010 at 7:12
5
Solved
One part of my current project is downloading images from URL then saving to SDCard. But the problem is all of saved images in sdcard is displayed in android gallery page. What I want is "I don't w...
Eluviation asked 23/7, 2013 at 2:22
14
Solved
I want to get the size of free memory on internal/external storage of my device programmatically. I'm using this piece of code :
StatFs stat = new StatFs(Environment.getExternalStorageDirectory()....
Haldis asked 15/11, 2011 at 8:28
13
Solved
I want to get file name from sdcard file path.
e.g. :/storage/sdcard0/DCIM/Camera/1414240995236.jpg I want get 1414240995236.jpg
I have written the code to fetch the same but it is not working. Pl...
Runofthemill asked 26/10, 2014 at 5:28
2
I was trying to save text file using below code
try {
FileOutputStream fos = new FileOutputStream(TXT_FILE_NAME, true);
FileWriter fWriter;
try {
fWriter = new FileWriter(fos.getFD());
fWri...
Posit asked 24/5, 2020 at 10:8
7
Solved
I have a very simple mediaplayer that play background. It calls file from the apk, but I want it to play from any directory like as music or sdcard.
Here is my code:
private MediaPlayer mpintro;
....
Manstopper asked 23/5, 2013 at 13:18
8
Most of the new android devices have an internal sdcard and an external sdcard. I want to make a file explorer app but I can't find out how to get the path to use in my app because
File file = En...
Lessen asked 13/11, 2012 at 12:46
3
Crash : java.lang.IllegalArgumentException Volume external_primary not found
When querying for tracks from media store, I am getting this crash in some Android 10 devices (Most of them are from Xia...
Microfarad asked 27/7, 2020 at 8:3
0
For public media folders instead of Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) we can use:
values.put(MediaStore.Media.RELATIVE_PATH, Environment.DIRECTORY_DCIM)
uri...
Diacritical asked 16/8, 2021 at 19:50
1
I am trying to allow my app to be able to be moved to an SD card. So far, I have added the attribute, android:installLocation="auto", to my manifest file.
When I try moving storage option from in...
Birdella asked 13/11, 2017 at 21:49
9
Solved
I had found some crashes while running the application in android device, which is not showing in emulator. So i need to save the Logcat in a text file in my device's memory or SD card. Could you p...
Degraw asked 24/10, 2013 at 12:16
5
Solved
I want to save a json file with all the application data (something similar to preference) but im not sure what is the limit size, because if the app cant use this file it will not function probabl...
Holding asked 8/2, 2012 at 17:31
4
I have a HTML file along with some images that I would wish to open on my Android phone. The reason is that I want to access that file even if I am offline. I have my HTML file on an external SD Ca...
Dominant asked 18/1, 2021 at 15:30
2
In my app I gain sd card write permission using the following intent. If the user selects the sd card folder from the system file explorer then I have sd card write access.
Intent intent = new In...
Sclerodermatous asked 27/3, 2016 at 0:3
6
Alright, I've searched and searched and no one has my exact answer, or I missed it. I'm having my users select a directory by:
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
startAc...
Briefing asked 21/1, 2016 at 15:29
11
Solved
I thought this would be easy but as it turns out unfortunately it's not.
What I have:
I have a folder called "myFolder" on my external storage (not sd card because it's a Nexus 4, but that should...
Tengdin asked 18/6, 2013 at 10:0
5
Solved
I need to save the pictures taken with my app in an specific folder. I've read many solutions to this problem but I couldn't make any of them work so I ask for help.
MainActivity.java
public void...
Thunderstone asked 2/8, 2013 at 7:5
14
When starting my android application, I need to create a directory on the sd card, for a small number of users this fails and I can't figure out the reason for it...
(I've found similar problems ca...
Valenta asked 31/10, 2010 at 8:25
16
Solved
I have written a code to record audio and save it to below file location.
private String getFilename() {
String filepath = Environment.getExternalStorageDirectory().getPath();
File file = new Fi...
Deponent asked 14/7, 2015 at 6:21
8
I am using the Exoplayer Demo app and want to preload a MP4 video from SD card.
I have tried out the implementation from this post, but it does not work. There is no such class called DemoUtil.jav...
Wonderment asked 27/2, 2016 at 20:32
2
Solved
I have an app on Google Play market and I added android:installLocation="preferExternal" to manifest.xml file and released long time ago. Now I would like to add Android home screen widget, so I ne...
Dainedainty asked 25/3, 2013 at 16:32
3
Solved
Is there a way to limit the result retrieved from mediastore using managedQuery function on Android. Since I currently have a grid that displaying all photos found on the sd card but it is too inte...
Paranoiac asked 10/5, 2011 at 13:1
3
Solved
I am using this code but my onActivityResult never gets called. I used to make the request without passing the extra intent to save the image to an SD card and that worked fine - onActivityResult()...
Venose asked 29/1, 2014 at 3:24
1 Next >
© 2022 - 2024 — McMap. All rights reserved.