以编程方式添加在android系统活动 [英] add activities programmatically in android

查看:198
本文介绍了以编程方式添加在android系统活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想补充的编程android系统中的多个活动。
我可以添加这些活动dynamicallly表现还是有android系统中的任何othersolution。

I would like to add multiple activities programmatically in android. Can i add these activities to manifest dynamicallly or is there any othersolution in android.

请分享您的宝贵建议。

推荐答案

您不能动态地添加新的活动,您的应用程序或编辑清单文件,因为这将违反Android的安全模型。清单文件的目的之一是开发者必须确定哪些活动是应用程序,以及他们被允许做的一部分。

You cannot add new activities to your app dynamically or edit the manifest file as this would be a violation of the Android security model. One purpose of the manifest file is that the developer must define which activities are part of the application and what they are allowed to do.

如果有可能编辑的安装在设备上的应用程序后这些信息,你就可以执行code用户可能永远也不会允许的。

If it would be possible to edit these information after the installation of the app on a device, you would be able to execute code the user might never have permitted.

这篇关于以编程方式添加在android系统活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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