如何从另一个应用程序加载资源? [英] How can I load resources from another app?

查看:27
本文介绍了如何从另一个应用程序加载资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款 Android 应用,我们将在 Android 电子市场上销售单独的内容.由于 Android 没有 iOS 那样的应用内购买模式,我逐渐明白这是为 Android 应用销售附加内容(但不是功能)的理想方式.

I'm developing an Android app for which we will be selling separate content in the Android Market. Since Android lacks an in-app purchasing model as iOS has, I have come to understand that this is the ideal way of selling additional content (but NOT functionality) for Android apps.

所以问题是,假设我知道资源的确切名称、应用 ID 等,我如何实际从其他 Android 应用加载原始资源?

So the question is, how do I actually load raw resources from other Android apps, assuming that I know the exact name of the resource, app ID, etc.?

推荐答案

内容提供者是应用向他人提供其内容的标准方式.

Content Providers are the standard way for apps to make their content available to others.

这篇关于如何从另一个应用程序加载资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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