简体   繁体   English

Android应用程式为其他应用程式提供核心服务

[英]Android app providing core services to other apps

This is enterprise android app, We have many applications in pipeline and we don't want to repeat some horizontal concerns like communicating to our backend servers, securing the data, single sign-on, sending current state of app etc. We are thinking if we can develop an app which takes care of all these cross cutting concerns and other apps only utilize the services provided by these apps. 这是企业级android应用程序,我们有许多应用程序正在开发中,我们不想重复一些横向问题,例如与后端服务器进行通信,保护数据,单点登录,发送应用程序的当前状态等。我们正在考虑是否我们可以开发一个能够解决所有这些交叉问题的应用程序,而其他应用程序只能利用这些应用程序提供的服务。 Is this feasible ? 这可行吗? Is this design ok or there should be other approach to solve this problem. 这种设计是否可行,还是应该采用其他方法来解决此问题。

Just pointers can be enough :) I can figure out the details. 仅仅指针就足够了:)我可以弄清楚细节。

Is this feasible ? 这可行吗?

It is technically possible. 从技术上讲这是可能的。 However: 然而:

  • When the user uninstalls this magic app, all the other apps break 当用户卸载此魔术应用程序时,所有其他应用程序都会中断

  • Securing the IPC to the magic app is doable (use signature -level permissions) but important 将IPC保护到魔术应用程序是可行的(使用signature级权限),但是很重要

Usually, you don't create an app to address "horizontal concerns" -- you create a library. 通常,您不会创建用于解决“水平问题”的应用,而是创建一个库。 This is true for most operating systems and development frameworks that I have ever encountered, anyway. 无论如何,对于我所遇到的大多数操作系统和开发框架都是如此。 In Android's case, that would either be a JAR (if it is pure code) or an Android library project (if it needs resources). 在Android的情况下,可以是JAR(如果是纯代码)或Android库项目(如果需要资源)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM