android app模块拆分,如何在Android上实现app子组件的模块化结构?

Android允许您将应用程序与Intents和ContentProviders松散耦合,因此应该可以实现您正在寻找的内容.困难的部分是预先计划一切,所以你有逻辑上的功能划分(所以事情很容易插在一起).

I want to keep in the database the modules that are installed/present. So I must put sometimes the modules into database, maybe by detecting if there are present at launch time. The main app will work based on these modules.

您可以为ACTION_PACKAGE_ADDED注册BroadcastReceiver,只要安装了新的应用程序,它就会触发.您的主应用程序应该能够使用它来确定何时安装其他模块.

In what format will I offer the modules?

您可能仍希望将模块打包为apks,以便将它们上传到市场.如果您希望它们不出现在启动器(应用程序抽屉)中,您可以随时删除默认的< intent-filter>并且该应用程序将无法启动(但仍可移动).

How do I have to create this using Eclipse?

您的模块仍然是独立的应用程序.

How will the user add/remove modules?

从市场或直接下载网络(如果你想).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值