Warning: Trying to access array offset on false in /home/selmanal/public_html/wp-content/plugins/postman-smtp/Postman/PostmanOAuthToken.php on line 45

Warning: Trying to access array offset on false in /home/selmanal/public_html/wp-content/plugins/postman-smtp/Postman/PostmanOAuthToken.php on line 46

Warning: Trying to access array offset on false in /home/selmanal/public_html/wp-content/plugins/postman-smtp/Postman/PostmanOAuthToken.php on line 47

Warning: Trying to access array offset on false in /home/selmanal/public_html/wp-content/plugins/postman-smtp/Postman/PostmanOAuthToken.php on line 48
Assets – Selman ALPDÜNDAR

Selman ALPDÜNDAR

How to read all image from sub folder of assets in android

Create new project and add an imageswitcher to activity_main.xml then open MainActivity.java firstly we need to reach assets folder in android to reach assets folder there is an assets manager basicly you can use assets manager like that

 
 AssetManager assetManager = getAssets();
/* this will read main folder of assets 
if you need read sub folder 
just add folder name before file (subfolder/filename)
*/
 InputStream inputStream= assetManager.open("File name");

Continue with reading