In android 2.1 sdk, how can I request the number and name of each album in the gallery? And is there a way to trigger the intention of allowing the user to see all the photos of a particular album in the gallery?
Thank.
To implement this yourself, you can call:
getExternalStorageDirectory ();
This will return you the SD card directory used in the Gallery. This is a file, iteratively searching for this file using listFiles () and isDirectory (); will give you a list of your desired albums.
An example of mutual file / folder search is here: (overkill)
Iterative file search
Source: https://habr.com/ru/post/1740113/More articles:number of binary search comparisons - javaHow many types of code signing certificates do I need? - code-signingToolTip covered by ToolStripItems if they have dropdowns? - c #Question Gtk style / gtkrc - gtkreply to the comment by email and post it directly on the commenting system website - phpCan tcp and http connection listeners communicate with each other or not? - httpHow to use a third-party control in view mode? - design-patternsparent asset - androidMatplotlib: building discrete values - pythonPHP FTP Download Thousands of Files - arraysAll Articles