Listing an application's activity and intent-filters?

半城伤御伤魂 提交于 2019-12-10 15:54:36

问题


I am interested in activating another application's activity. I know from reading the Android SDK that it's probably better to do this with an implicit intent. However, this activity doesn't reside in an application I own, so I don't know the action and category and data flags on the intent-filter.

How can I examine an Android applications metadata like the activity classes and the intent-filters for those activities (if declared in the manifest)?

Thanks!


回答1:


I would try this.

  1. Check on openintents
  2. Contact the developer.
  3. Use android-apktool too see the app's manifest.

It might be illegal to use android-apktool. Use it under your own risk.




回答2:


There is one more solution: you could run this app and look into logcat. All intents are logged, so you could see what is called up. You won't see extra data though.



来源:https://stackoverflow.com/questions/3011454/listing-an-applications-activity-and-intent-filters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!