2) Does it work? What do I need to improve?
3) What I need to import library for this code?
4) I know that I need to add permission to "AndroidManifest":
<uses-permission android:name="android.permission.WRITE_EXTERNAL_ST ORAGE" />