增加Android可用内存

本文提供了一种方法来增加Android设备的堆内存大小,解决在开发涉及大量图片的应用时遇到的内存不足问题。通过adb shell命令进行系统目录权限修改,将build.prop文件复制到本地进行编辑,并替换回设备,最终重启设备生效。同时,介绍了Android模拟器的端口映射方法,确保修改在真实设备上有效。

In the development of TV applications, especially when dealing with images were more likely to feel the Android heap is too small. android heap can be changed as follows

Adb shell

2. Mount-o remount rw / system / / modify the permissions in the system directory

3.adb pull / system / build.prop d :/ /build.prop / / export file

4 edit d intraday D :/ build.prop in the final plus dalvk.vm.heapsize = 32m / / modify the heap size to save

5.adb push d :/ build.prop / system / build.prop / / replacement to the original file

6. Restart the machine

This method has no effect on the simulator

 

the port mapping of the the androi simulator pc

Start the emulator emulator-5554

2. Telnet localhost 5554

3.redir add udp: 4567:4567 / / pc-4567 port mapping to the emulator port 4567

Sponsored Links
 
注:文章转载于 http://www.idevlife.com/73633/

转载于:https://www.cnblogs.com/poe-blog/p/3197826.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值