Is there a way to programmatically detect UI components of an Android app?
I want to take the source, or preferably just the .apk file, and find o开发者_运维知识库ut all the UI components of an Android application (ex. XML layout).
Is there any way to accomplish this task?
Thanks.
You can use apktool or APK Manager (that uses apktool) for reverse engineering.
And Hierarchy Viewer is an SDK tool for layout debugging.
Layoutopt with the Android SDK will let you do this. You can connect to a device/emulator with the app in question running and see how its screens are laid out and such.
精彩评论