我正在提出申请,通过在拜特阿雷拉进行压缩,将照片从摄像带上去除,但我已经读到,如果存在大量图像,超过应用预想的图像,那么从数据库读到图像会很慢,那么储存图像(内部记忆或卡片)和在名单上显示图像的最佳方式是什么?
Thanks
我正在提出申请,通过在拜特阿雷拉进行压缩,将照片从摄像带上去除,但我已经读到,如果存在大量图像,超过应用预想的图像,那么从数据库读到图像会很慢,那么储存图像(内部记忆或卡片)和在名单上显示图像的最佳方式是什么?
Thanks
Save弃你的形象。 最好的办法是使用图像Cache。
在你的数据库中保存图像将减缓你的询问,而且总体来说是坏的。
见https://stackoverflow.com/questions/10416059/pros-and-cons-of-util-image-in-sqllite>。 SO question。
最好的办法是将图像存放在SD卡内,并配备一个单独的夹。 (利用安装其他应用所需的空间,可以赢得内部记忆。)
每次你将申请内容读到文件夹中,并填写你的名单。 你们不需要为它维持一个适当的数据库。 http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html” rel=“nofollow”
最佳做法与我的意见一致
catch(Exception e)
clause will not catch it.在任何数据库中保存图像都是坏的,速度缓慢,占用更多的空间等。 了解的最佳选择是,在数据库中储存这些图像的途径或链接,以及某些储存的实际档案,如卡片或内部储存,如果这些照片是大的,或者将占用大量空间,即放在纸浆上。
I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...
I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...
I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...
I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...
To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?
When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...
I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...
I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...