Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
305 views
in Technique[技术] by (71.8m points)

special folders - Writing to internal SD card on Android

Is there any way of accessing the internal SD card on Android devices that have internal flash, internal SD and external SD cards?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

In Android 2.2 and previous, there is only one "external storage" (Environment.getExternalStorageDirectory()). The definition of where this points is up to the device manufacturer. The Compatibility Definition Document (CDD) merely mandates that it be at least 2GB, IIRC. It is not even required for "external storage" to be removable.

At this time, there are no standard APIs to get to other partitions or cards. A device manufacturer might document how to access these -- you would have to see if they have anything on their respective developer sites.

Bear in mind that on some of these devices, other partitions or cards may not be readable or writable from regular SDK applications.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.9k users

...