Create folder and make ES File Explorer add icon of my app

烈酒焚心 提交于 2019-12-01 17:48:29

问题


I want to associate folder with my application, like WhatsApp and Viber does.
I tried to create folder

File folder = new File(Environment.getExternalStorageDirectory().getPath() + "/MyAppName");
folder.mkdir();

But that MyAppName folder is not associated with my app and ES File Explorer can't recognize "what app created the folder?", I want ES File Explorer add the icon of my app to the folder.

What is the way that some apps use for create folders and let ES File Explorer recognize the folders?


回答1:


All folders on Android are normal folders, ES File Explorer not uses any recognition system, people associates folders and every association is sent to ES File Explorer's database and majority of associations wins and finnaly folder is assigned with icon.



来源:https://stackoverflow.com/questions/30686248/create-folder-and-make-es-file-explorer-add-icon-of-my-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!