日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Android >内容正文

Android

card2phone android,Installing application on SD-card in Android sdk 2.2

發布時間:2025/4/5 Android 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 card2phone android,Installing application on SD-card in Android sdk 2.2 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

問題

I am facing this problem and finding solution for this issue since last 2 weeks.

Right now i have developed an android application for the client perpose, whose size is 54 MB, from which 52 MB of only Images/Photos.

[Edit: I need to keep images in "drawable" folder ]

So i want to install it in sd-card on Android SDK 2.2 for that i have already set android:installLocation="preferExternal" in the AndroidManifest.xml file. I have created 256MB sd-card while creating an avd , heap size - 192 , ram size - 192

but it still showing me an error:

[2010-08-27 17:58:28 - demo_test]

Failed to upload demo_test.apk on

device 'emulator-5554'

[2010-08-27

17:58:28 - demo_test]

java.io.IOException: Unable to upload

file: No space left on device

[2010-08-27 17:58:28 - demo_test]

Launch canceled!

Edit:

Is this memory related issue of internal memory or external memory?

What i have to do to run application and still test with emulator?

How do i install application in sd-card in Android sdk 2.2?

回答1:

Is the sd-cards size really 256MB? I sometimes forget the suffix and end up with.. something very small.

You can also always raise the sizes to like 512, 256,266 and try again to be certain it's something else.

Also, Logcat output would be nice too.

Edit: As it seems, you cant just "install" the app on the SDcard even if you have 30+Gigabyte free on it. Installation depends also on the internal memory of the phone even in 2.2.

Example: Nexus one has 512mb internal memory. The android os takes the needed ram for the camera, gpu, kernel etc leaving a user with only around 190MB app space (which will be even lower due to apps already installed etc).

HTC Hero on the other hand has only 288mb internal memory, leaving it with a very small "app size ram".

Depending on the phone, 90mb app will install to SDcard on nexus one, but won't on Hero due to memory limitations.

The reason you are getting that error is that, after the android os takes the needed ram out of those 192MB, the "app size ram" is not enough to hold that 50+mb application.

I thought that installLocation would install directly to SD, but that is not the case.

Vidar Vestnes blog confirmed what I described above by performing a test with different app sizes on his HTC Desire..

回答2:

A better approach would be to put your resources in their own directory on the SD card. Then your app can load them when it needs.

回答3:

I suggest you try increasing the internal memory available (screenshot says 43MB), in case the .apk is being copied there first before it is installed to the SD card by the OS.

回答4:

Assuming you need the images on your device instead of on the cloud, the easiest way would be to make the app connect to a server of yours and download a zip containing all the images on its first run. Until devices get a larger "app ram size" this might be your only solution.

回答5:

You can use the following:

adb shell pm setInstallLocation 2

from the android-sdk/tools directory to force the emulator to install to your sd card, whatever its size -- preferably large enough to hold your app(s), obviously.

If you want to go back to the default installation location (phone app memory), do:

adb shell pm setInstallLocation 0

You can also use these adb commands on your phone / tablet.

Once you have set up the emulator to install to the sd card, you can then go into Settings --> Applications --> Manage Applications, choose the app you want to be on the sd card, and the "Move to SD Card" button will no longer be grayed out.

回答6:

you can check if the sd card is really mounted and enough space is available by the running

adb shell df

command in the android-sdk/tools directory

it shows you which partitions are currently mounted, how big they are and how much free space is available

來源:https://stackoverflow.com/questions/3584297/installing-application-on-sd-card-in-android-sdk-2-2

總結

以上是生活随笔為你收集整理的card2phone android,Installing application on SD-card in Android sdk 2.2的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 欧美日韩在线播放视频 | 97国产| 天堂网8 | 一区免费在线 | 色图插插插| 精品久久毛片 | 国产综合无码一区二区色蜜蜜 | 亚洲av无码成人精品区 | 婷婷亚洲五月色综合 | 色综合区| 国产一级网站 | 亚洲精品免费网站 | 国产日韩av在线播放 | 伊人影院网 | 日韩五码 | 亚洲高潮av | 91免费高清 | 国产精品51麻豆cm传媒 | 欧美日韩在线视频观看 | 交专区videossex农村 | 热99| 色翁荡息又大又硬又粗又爽 | 五月婷婷综合网 | 国产精品美女一区二区 | 日韩在线三区 | 免费大片黄在线观看视频网站 | 中文字幕国产 | 四虎永久在线视频 | 欧美亚洲在线播放 | 日本女优中文字幕 | 一区二区三区四区五区在线视频 | 99热18| 一区二区三区欧美精品 | 婷久久| 日韩一级中文字幕 | 亚洲日批 | 国产激情在线播放 | 亚洲一区二区三区视频 | 在线免费观看黄网 | 午夜婷婷色 | 日韩高清二区 | 在线看91 | 毛片网络 | 国产在线不卡一区 | www.黄在线观看 | 欧美调教视频 | 欧美性动态图 | 在线播放免费av | 亚洲伊人网站 | 国模小黎自慰gogo人体 | www国产成人 | a天堂在线观看 | av在线电影网站 | 国产农村妇女aaaaa视频 | 殴美一级视频 | 亚洲成人a∨| 猎艳山村丰满少妇 | 九九热免费精品视频 | 亚洲天堂男 | 亚洲综合第一区 | 国产91精品久久久久久久 | 成人精品久久久午夜福利 | 国产伦子伦对白视频 | 中文字幕黑丝 | 亚洲欧美婷婷 | 毛片动漫| √资源天堂中文在线 | 网站色| 99热激情| 成人依人 | 日韩免费高清一区二区 | 毛片视频网站在线观看 | 午夜嘿嘿嘿 | 天堂av观看| 91精品成人 | 色综合久久天天综合网 | 久久久久人妻精品一区二区三区 | 伊人久久视频 | 一级片在线观看视频 | 国产精品国产三级国产专区53 | 欧美啪啪网站 | 又黄又湿的网站 | 少妇全黄性生交片 | 国产少妇一区二区 | 夜色伊人 | 久草视频资源 | 成人精品亚洲人成在线 | 麻豆精品在线 | 国产黄色片在线观看 | 久久婷婷视频 | 黑料福利| 青青草国产成人av片免费 | 久久精品精品 | 亚洲天堂欧美在线 | 欧美tv| 日韩一区二区三区四区在线 | 久久综合激情网 | 国产精品一区电影 | 中文字幕人妻一区二区三区在线视频 |