阅读其他Android包布局从一个Android应用程序 [英] Reading layouts of other Android packages from an Android app

查看:105
本文介绍了阅读其他Android包布局从一个Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想$ C C的Andr​​oid应用程序$,那就是能够读取其他Android包布局(这些包有没有关系我的应用程序,它们可以是系统的软件包,或其他任何人包)。

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).

有没有人有任何想法我如何能做到这一点?我已经看过了SDK,但未能找到任何有关如何可以做到这一点。

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.

我的Andr​​oid应用程序可以伪装成系统,并拥有完整的root访问权限。注:这个问题是不是黑客或拆卸其他Android应用程序/包

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.

在此先感谢。

推荐答案

我不知道究竟是如何做到这一点,但尝试布局充气膨胀的布局。我认为它应该工作。

I dont know exactly how to do that but try layout inflater to inflate the layout. I think it should work.

    View headerView = View.inflate(this, pakcage_neame.R.layout.layout_id, null);

这篇关于阅读其他Android包布局从一个Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆