简体   繁体   English

已安装的Android应用之间的链接

[英]Link between installed Android apps

is it possible to link from one android app to another installed app? 是否可以从一个Android应用程序链接到另一个已安装的应用程序? I'm creating a set of apps which all to some extent will utilize the same content. 我正在创建一组在一定程度上都将利用相同内容的应用程序。 In the "web world" this would be handled easy by separating this content to a separate html (or similar), and all the other sites/apps would link to this one. 在“网络世界”中,将这些内容分隔为单独的html(或类似的HTML)将很容易解决,所有其他站点/应用程序都将链接到该站点/应用程序。 Unfortunately, the apps must all work offline, so linking to a web server is not an option. 不幸的是,所有应用程序都必须脱机工作,因此不能选择链接到Web服务器。 If all the "shared content" should be duplicated into each an every app, it would take up a lot of space, and be a nightmare to update. 如果所有“共享内容”都应复制到每个应用程序中,那么它将占用大量空间,并且是更新的噩梦。

Any input deeply appreciated. 任何意见深表赞赏。

If your requirement is to share data from one app to another, then what you are looking for is ContentProvider . 如果您的要求是将数据从一个应用程序共享到另一个应用程序,那么您正在寻找的是ContentProvider You can create custom ContentProvider and retrieve the data from the other app. 您可以创建自定义ContentProvider并从另一个应用程序检索数据。 The developer guide is available [here] 开发人员指南可用[此处]

Also refer this question to understand how it's implemented: 另请参阅此问题以了解其实现方式:

Hope it helps. 希望能帮助到你。

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

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