Is StorageVolume available as a public API?
I found it’s used in a project but I can’t find it in a documentation.
Thank you
Is StorageVolume available as a public API? I found it’s used in a project
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I had this problem while trying to update the CMUpdater app in cyanogenmod 10.
In Eclipse, right-click on the project name and choose New -> Folder, name it android-source (or whatever) and click the Advanced button and choose “Link to alternate location (Linked Folder)” and Browse for the directory
/your-drive/android/system/frameworks/base/core/java
(Check that android/os/storage/StorageVolume.java is there first)
Click Finish.
The folder will be added to the list of files and folders on the left.
Right-click on your project and go to Properties -> Java Build Path -> Source tab
Click Add Folder… and choose the new folder you just made.
Now the import line shouldn’t be red anymore. On the other hand, there will be tons of errors in the sources in the folder you just made. You won’t be able to build the app from eclipse. On a command line, go to /andriod/system and type
(Only the first time)
. build/envsetup.sh
breakfast your-device-codename
(Every time to build)
mmm path/to/your/app
Also, read this: http://source.android.com/source/using-eclipse.html