简体   繁体   中英

Android Content Provider Query by authority substring or by signatures

I want to get a list of content providers that exist on a device for a given authority substring. Each of the providers I will call must have the same signature.

I found that I can get all providers on a device and loop through each of them but I thought there might be a more efficient way. ( Get a list of available Content Providers )

No, the solution outlined in that answer is as good as you are going to get. The concept of "authority substring" is your invention, not a concept intrinsic to Android.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM