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?
从市场或直接下载网络(如果你想).