androidandroid-manifestandroid-permissions

How can i Use External Storage in android


This is for the first time i am using external storage in android. I need some help how can i perform different operations such as how to check whether External Storage is available or not?, How to write files or pictures into storage .


Solution

  • how to check whether External Storage is available or not?

    Use Environment.getExternalStorageState().

    How to write files or pictures into storage

    Use standard Java I/O, working off a directory built using Environment.getExternalStorageDirectory().