File Access - Getting total Counts of Images in my Gallery (iPhone/Android)

Is there any way to get the total counts of Pictures in my Gallery? We need to preview the total counts in my gallery. We can't find what API method to be used for it.

For example,

My Gallery - 30 Photos

I hope someone from can clarify this one. Thanks!!!


This isn't an API we currently expose in the platform. As Alex said, there's not really a drop-in OS-provided API for that information.

If it was really critical for your app, you could probably create something workable by enumerating the Assets Library on iOS, and querying the MediaStore on Android (e.g. see our multi-image picker plugin) from a native plugin.

Need Your Help

Permission denied when 'mongod' command is run after successful installation

osx mongodb

I successfully installed mongodb, then I get this error after running the mongod command:

Foreign Key class_name


So, this is my first time using foreign keys, and though I think they are working properly, I don't understand the class_name portion in the syntax. Is that the class_name that the table being refe...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.