Android
ragingsweet
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Attacking memory problems on Android
Attacking memory problems on AndroidYay, my first post on Android :) Immediately attacking a difficult one: memory problems.You might not run into them that quickly, but when you do, with a bit...原创 2012-04-23 22:38:09 · 660 阅读 · 0 评论 -
How to avoid OutOfMemory Error / OOM (The Ugly Truth Revealed)
ERROR/dalvikvm-heap(4204): 691456-byte external allocation too large for this process.01-25 22:13:18.694: ERROR/(4204): VM won't let us allocate 691456 bytes 01-25 22:13:18.694If you have ever go...原创 2012-03-13 23:38:38 · 168 阅读 · 0 评论 -
Reduce Bitmap size using BitmapFactory.Options.inSampleSize
In the post "Load ImageView with JPG file in SD Card", the ImageView is loaded with bitmap in full-size. It cost too much resources for a mobile device, and easy to make the app closed unexpectly.We c...原创 2012-03-13 23:32:23 · 148 阅读 · 0 评论 -
解決在 Android 中使用 Bitmap 造成 Out of memory 的方法~
因為Android本身的限制,在2.x版中使用 Bitmap 只要遇到稍大一點的圖,很容易就會遇到 out of memory 的狀況,在經過一陣搜尋之後,一直沒有很好的方法,有很多網站介紹的方法是把原圖 subsample,但對於圖片quality有要求的程式來說,這可是不被接受的解法,搞了半天,最後只好直接把 Android 的 source code 拿出來瞧瞧看看是否有什麼機會解決這...原创 2012-03-13 23:30:38 · 119 阅读 · 0 评论 -
android BitmapFactory的OutOfMemoryError: bitmap size exceeds VM budget解决方案
使用android提供的BitmapFactory解码一张图片时,有时会遇到该错误,即:java.lang.OutOfMemoryError: bitmap size exceeds VM budget。这往往是由于图片过大造成的。要想正常使用,一种方式是分配更少的内存空间来存储,即在载入图片的时候以牺牲图片质量为代价,将图片进行放缩,这也是不少人现在为避免以上的OOM所采用的解决方法。但是...原创 2012-03-13 23:28:01 · 126 阅读 · 0 评论 -
About Bitmap allocated
Bitmap data is not allocated in the VM heap. There is a reference to it in the VM heap (which is small), but the actual data is allocated in the Native heap by the underlying Skia graphics library....原创 2012-03-13 23:08:38 · 166 阅读 · 0 评论 -
The Java Thread Pool
A thread pool helps to constrain the number of threads that may be running in an application at any one time. As threads require system resources, having too many threads executing simultaneously w...原创 2012-03-03 00:55:50 · 211 阅读 · 0 评论 -
SQLITE Best practice
Recently I’ve been doing quite a bit of work with the Android Sqlite database. Mostly with the android piece of ormlite.The Android examples cover some basic Sqlite usage, but they really don’t ...原创 2012-02-15 23:02:45 · 163 阅读 · 0 评论 -
Prof Android app dev:Creating Applications and Activiies
每个APP都泡在一个单独的DALVIK虚拟机实例上使用一个单独的进程。 安卓应用程序由一系列松散耦合的组件构成,application manifest描述了这些组件之间的关系。app metadata包含了所需的硬件和平台要求。 以下六大组件组成了安卓应用程序: Activities 应用程序的展示层,应用程序的每一屏都是一个Activity类的扩展。Activity使...原创 2011-12-08 18:35:38 · 211 阅读 · 0 评论 -
Prof Android app dev: Introduction and Get started
对于Android来说,所有的应用程序都是平等的,第三方和原生安卓程序使用相同的API并执行在相同的运行时中,即使是拨号和主界面,用户都可以删除,替代任何原生程序而使用第三方的程序代替, Android Software Stack一个Linux内核和一个C/C++ libraries的集合通过application framework暴露出去 Linux内核:包括硬件驱动,进...原创 2011-11-28 17:36:53 · 123 阅读 · 0 评论 -
ViewPager and Fragments
Android: ViewPager and Fragments Part IIWhat are the different ways to get a reference to the currently visible fragment page in a ViewPager?First SolutionYou can set a unique tag on e...原创 2012-03-25 20:11:18 · 231 阅读 · 0 评论
分享