如何从服务器发送媒体Android应用程序? [英] How to send media from server to android app?

查看:125
本文介绍了如何从服务器发送媒体Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android应用程序。我想从我的服务器发送图像和视频,以我的Andr​​oid应用程序。 GCM只允许发送4KB数据,但媒体文件一般尺寸较大,所以如何做到这一点?

I am working on an Android app. I want to send images and videos from my server to my Android app. GCM allows only 4kb of data to be sent, but media files are generally of larger size so how to do this?

推荐答案

其实,我写了这两个博客的帖子。该<一href="http://blog.andromo.com/2012/tutorial-using-airbop-to-push-images-for-bigpicturestyle-notifications/"相对=nofollow>第一个演示如何使用URL发送一个链接,有效载荷,然后下载文件。

I actually wrote two blogs posts on this. The first one shows how to send a link in the payload and then download the files using the URL.

href="http://blog.andromo.com/2012/tutorial-using-airbop-to-send-images-in-the-message-payload/" rel="nofollow">第二显示了如何发送小图像作为4K有效载荷的一部分。

The second shows how to send small images as part of the 4K payload.

这篇关于如何从服务器发送媒体Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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