简体   繁体   中英

Grabbing Info From Another App

I'm looking for information on how/if you can grab information from another app in Android. For example, if I wanted to make an app that checked which song was being played in the Music app at the moment. Is this even possible? I Googled around and searched on here but didn't find much.

Is this even possible?

Only if the app exposes an API for you to use, one that is documented and supported by the application's developer.

You can communicate with other apps via intents . What communication is possible depends on what that particular actions that app made available.

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