Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个为意图过滤器 IMAGE_CAPTURE (Camera) & PICK (Gallery) 注册的应用程序。
对于 Activity,我如何检测收到了哪个意图过滤器?
在 onReceive
String action = intent.getAction();
并使用它与您注册的操作进行比较。