我有视频和总大小约为 500 MB 的图像。我如何管理 IT?
我必须创建一个使用大量视频和视频的应用程序。图像。所有视频和视频的总大小应用程序中使用的图像大约为 500 Mb。整个应用程序取决于此视频和图像。
我知道 Android 市场仅支持最大 50 Mb。 apk 的大小。我不知道如何使用视频和视频我的应用程序中的图像。如果我将其放入drawable中,那么apk大小会增加到500 MB,并且我知道不可能将500 MB apk文件安装到移动设备上。
如果我把这个视频 &将图像发送到服务器,然后每次加载都需要花费很多时间。
任何人都可以解决这个问题,即如何在我的应用程序中管理这种大小的视频和图像。
I have to create one application which has use of lots of videos & images. Total size of all the videos & images which are used in application is approximately 500 Mb. Whole application is depend on this videos & images.
I know that android market supports only 50 Mb max. size of apk. I have no Idea that how can I use videos & images in my application. If I put it into drawable then the apk size increase to 500 MB and I know that it is not possible to install 500 MB apk file to mobile device.
If I put this videos & images to the server then It takes so much time to load every time.
Anybody have solution for this problem that How can I manage this size of video and images in my application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
解决这个问题的唯一方法是将数据放在服务器上,并在应用程序启动后将其下载到SD卡上。向市场列表中的用户解释他需要视频才能使用该应用程序,并务必检查您的用户正在使用哪种数据连接。然后,如果用户尝试通过移动连接下载 500MB,您可以发出警告。
The only way to solve this is to put the data on a server and download it to the SD-Card after startup of the App. Explain it to the user in the market listing that he needs the videos to use the App and be sure to check what kind of data connection your user is using. You can then warn the user if she tries to download the 500MB through a mobile connection.
截至 2012 年 3 月 5 日,Android Market(又名 Google Play)支持附加最多两个“扩展文件”,每个文件最大为 2 GB。您的 APK 仍必须低于 50 MB,但附加文件总共可以额外增加 4 GB。
由此产生的 SD 卡存储要求是否可接受现在由您和您的用户决定;谷歌正在让出道路,让其他“市场”来决定!
Google 关于此政策更新的公告如下:
http: //android-developers.blogspot.in/2012/03/android-apps-break-50mb-barrier.html
As of 3/5/2012, Android Market (aka Google Play) is supporting the attachment of up to two "expansion files" of up to 2 Gigabytes each. Your APK must still be under 50 MB, but the attached files can total an additional 4GB.
Whether the resulting SD card storage requirements are acceptable is now between you and your users; Google is stepping out of the way and letting the other "market" decide!
Google's announcement of this policy update appears here:
http://android-developers.blogspot.in/2012/03/android-apps-break-50mb-barrier.html
首次运行时提示用户需要下载项目并将其存储在 SD 卡上。然后引用它们,因为您知道将它们放在卡片上的位置。
Prompt the user the first time they run it that they need to download the items and store on the SD card. Then references them because you know where you put them on the card.