Questions tagged [sd-card]

SD-card (Secure Digital) is a non-volatile memory card, often used in digital cameras as well as in mobile devices.

SD-card (Secure Digital) is a non-volatile memory card, often used in digital cameras as well as in mobile devices.

More information at http://en.wikipedia.org/wiki/Secure_Digital

1441 questions
218
votes
24 answers

Find location of a removable SD card

Is there a universal way to find the location of an external SD card? Please, do not be confused with External Storage. Environment.getExternalStorageState() returns the path to the internal SD mount point, such as /mnt/sdcard. But the question is…
borisstr
  • 2,336
  • 4
  • 16
  • 15
144
votes
6 answers

Manually put files to Android emulator SD card

I'm just having trouble with getting my emulator SD card work... I created a new AVD device with a new SD card. So how to put data onto it? I found the "correct" file to be mounted on Daemon tools, but is corrupt or simply not readable... It would…
poeschlorn
  • 12,230
  • 17
  • 54
  • 65
62
votes
11 answers

Decoding bitmaps in Android with the right size

I decode bitmaps from the SD card using BitmapFactory.decodeFile. Sometimes the bitmaps are bigger than what the application needs or that the heap allows, so I use BitmapFactory.Options.inSampleSize to request a subsampled (smaller) bitmap. The…
hpique
  • 119,096
  • 131
  • 338
  • 476
61
votes
10 answers

How do I backup a database file to the SD card on Android?

I'd like to add a feature to my Android app that automatically backs up the SQLite database to the SD card. What's the best way to go about this? Are any examples or tutorials available?
CodeFusionMobile
  • 14,812
  • 25
  • 102
  • 140
58
votes
12 answers

Check whether the SD card is available or not programmatically

My app is working for mobiles which have an SD card only. So programmatically I want to check if the SD card is available or not and how to find the SD card free space. Is it possible? If yes, how do I do it?
naresh
  • 10,332
  • 25
  • 81
  • 124
58
votes
4 answers

Android how to use Environment.getExternalStorageDirectory()

How can i use Environment.getExternalStorageDirectory() to read a a stored image from the SD card or is there a better way to do it?
Moe
  • 1,547
  • 3
  • 18
  • 21
48
votes
2 answers

How does storage access change on Android 6?

Background Android had a lot of changes as to how to handle the SD-card and storage in general: API 3 - you get all access, no permission needed API 4-15 - you need to use WRITE_EXTERNAL_STORAGE, and you get all access. API 16-18 - if you wish only…
47
votes
7 answers

getExternalStorageDirectory not working

I am trying to save a file to my SDcard on my Samsung Galaxy Nexus running 4.2.2. From my app I am using Environment.getExternalStorageDirectory() But it returns /storage/emulated/0/ Which is not where my SDcard information is located to. Is…
Luke Pring
  • 992
  • 3
  • 11
  • 16
37
votes
8 answers

Android Open External Storage directory(sdcard) for storing file

I want to open external storage directory path for saving file programatically.I tried but not getting sdcard path. How can i do this?is there any solution for this?? private File path = new…
yuva ツ
  • 3,707
  • 9
  • 50
  • 78
35
votes
11 answers

How can I get the size of a folder on SD card in Android?

Is it possible to easily get the size of a folder on the SD card? I use a folder for caching of images, and would like to present the total size of all cached images. Is there a way to this other than iterating over each file? They all reside inside…
Gunnar Lium
  • 6,023
  • 9
  • 35
  • 33
32
votes
5 answers

Delete a folder on SD card

I tried File.delete() but it doesn't work. How to delete a directory on SD card? I'm working on Android 2.1.
Greenhorn
  • 769
  • 2
  • 8
  • 17
32
votes
4 answers

Removable storage (external) sdcard path by manufacturers

I've been Googling around but it is sooooo hard to find what manufacturers/models use which path for sdcard/external storage. I am NOT talking about the internal storage path which can be found by: Environment.getExternalStorageDirectory() I know…
jclova
  • 5,466
  • 16
  • 52
  • 78
31
votes
3 answers

Get sdcard directory by adb

I am making an application, which pulls files(Saved by android app) from the device sdcard by adb. The problem is that different devices, have various sdcard directories i.e: sdcard sdcard/external_sd Firstly I invented following solution: run…
Paweł
  • 363
  • 1
  • 5
  • 13
31
votes
2 answers

Android - Application (apk) Maximum size

I am going to install first application in my android phone, but having some doubts related to Android Memory (Maximum size of APK). So please help me know and solve the problems: What is maximum size of the apk that can be supported by the android…
Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
30
votes
7 answers

Eclipse console shows:'Failed to push selection: Read-only file system'when i try to push a file

I am trying to push a file to the SD Card but its showing error in console 'failed to push selection: Read-only file system'.I am using DDMS perspective in Eclipse.I generated sdcard using mksdcard command.
Amel Jose
  • 873
  • 2
  • 9
  • 22
1
2 3
95 96