小编Art*_*Art的帖子

Android图片压缩无需完全加载到内存中

有没有办法压缩图像而不将其完全加载到内存中?据我了解BitmapFactory.decodeStream和类似的方法加载内存中的所有内容,只有在加载整个图片后,它才能通过压缩Bitmap.compress

我的任务是将图片从android发送到服务器

performance android image-compression

9
推荐指数
1
解决办法
235
查看次数

Docker中的Android模拟器

我试图在docker容器中启动Android模拟器,但是我收到错误:

root@686d602e6ffa:~/android-sdk-linux/tools# ./emulator            
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them
       you will have to do at least one of the following:

       - Use the '-force-32bit' option when invoking 'emulator'.
       - Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment.

       Either one will allow you to use the 32-bit binaries, but please be
       aware that these will disappear in a future Android SDK release.
       Consider moving to a 64-bit Linux system before that happens.
Run Code Online (Sandbox Code Playgroud)

但容器内的OS是(uname -a)

Ubuntu …

android jenkins docker

7
推荐指数
1
解决办法
3112
查看次数

Android文件描述符泄漏debuging

我公司有很多ui测试,可以在虚拟/真实设备上运行.运行一段时间之后测试随机崩溃,我认为这是文件描述符超出的结果:我用过

ls /proc/${PID}/fd | wc -llsof -p ${PID} 但它并没有帮助了很多-最lsof命令行的样子:

30015    u0_a104  678      sock                                    859560 socket:[859560]
30015    u0_a104  679      0000                0,8                 4539 anon_inode:[eventpoll]
30015    u0_a104  680      0000                0,8                 4539 anon_inode:[eventfd]
30015    u0_a104  681      0000                0,8                 4539 anon_inode:[eventfd]
30015    u0_a104  682      0000                0,8                 4539 anon_inode:[eventpoll]
30015    u0_a104  683      0000                0,8                 4539 anon_inode:[eventfd]
30015    u0_a104  684      0000                0,8                 4539 anon_inode:[eventpoll]
30015    u0_a104  685      0000                0,8                 4539 anon_inode:[eventfd]
Run Code Online (Sandbox Code Playgroud)

所以我的问题是:是否有任何android/java/linux instruments/utils找到泄漏

PS System.gc()没有帮助

java android file-descriptor linux-kernel

2
推荐指数
1
解决办法
2285
查看次数