在应用程序之间共享文件 [英] Share files between applications

查看:119
本文介绍了在应用程序之间共享文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以分享一个又一个应用程序相关的数据。说我有apk2资源/原材料文件夹中的音乐文件。我可以使用相同的文件中apk1。

Can i share one application related data with another. Say I have a music file in resources/raw folder of apk2. Can I use the same file in apk1.

THX ...

推荐答案

如果您的应用程序都使用相同的证书签名,并且具有相同的 安卓sharedUserId 在清单中声明,他们可以分享他们可以读取数据/写信给对方的数据目录。他们甚至可以共享一个过程,如果你希望他们(见安卓过程)。

If your apps are signed with the same certificate and have the same android:sharedUserId declared in the manifest, they can share data in that they can read/write to each others' data directories. They can even share a process if you'd like them to (see android:process).

这篇关于在应用程序之间共享文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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