I found the answer. It is needed to run media scanner so that mediafiles(photo, music, etc.) become visible in applications. Media Scanner runs automatically after phone restart. To run Media Scanner manually you just need to paste and run this part of code:
UpdateMediaIntent = new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()));
sendBroadcast(UpdateMediaIntent);
Hope, it will be helpful for somebody else too.