Reputation: 1863
I want to code an Android application, that is capable of reading the layouts of other Android packages (these other packages have no relation to my application. They could be system packages, or packages from anyone else).
Does anyone have any idea how I can achieve this? I have looked in the SDK, but was unable to find anything related to how this can be achieved.
My Android application can masquerade as the System, and has full root access. Note: This question is not about hacking or disassembling other Android applications/packages.
Thanks in advance.
Upvotes: 1
Views: 1193
Reputation: 3966
I don't know exactly how to do that, but try layout inflater to inflate the layout. I think it should work.
View headerView = View.inflate(this, package_name.R.layout.layout_id, null);
Upvotes: 2