![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
转贴
ragingsweet
这个作者很懒,什么都没留下…
展开
-
Linux DLNA
Linux DLNA2011-08-22 黑日白月 Posted in Featured, Movie Player, Music Player, Network, Reviews, ServerRSSDLNA 是 “Digital Living Network Alliance 数字生活网络联盟”的缩写。随着消费电子产品的发展,有越来越多的 DLNA 兼容设备出现在生活中。...原创 2012-01-04 22:40:28 · 438 阅读 · 0 评论 -
Genie Effect AS
package{ import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash....原创 2012-03-21 23:13:11 · 166 阅读 · 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 · 127 阅读 · 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 · 107 阅读 · 0 评论 -
解決在 Android 中使用 Bitmap 造成 Out of memory 的方法~
因為Android本身的限制,在2.x版中使用 Bitmap 只要遇到稍大一點的圖,很容易就會遇到 out of memory 的狀況,在經過一陣搜尋之後,一直沒有很好的方法,有很多網站介紹的方法是把原圖 subsample,但對於圖片quality有要求的程式來說,這可是不被接受的解法,搞了半天,最後只好直接把 Android 的 source code 拿出來瞧瞧看看是否有什麼機會解決這...原创 2012-03-13 23:30:38 · 78 阅读 · 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 · 85 阅读 · 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 · 110 阅读 · 0 评论 -
Android Animations 3D flip
In this post we are going to look at how to create a 3D flip animation, with a FrameLayout. In the first few posts I've written on Android and animations we have only looked at the predefined anima...原创 2012-03-02 23:24:47 · 101 阅读 · 0 评论 -
Multithreading For Performance
A good practice in creating responsive applications is to make sure your main UI thread does the minimum amount of work. Any potentially long task that may hang your application should be handled i...原创 2012-03-02 23:23:54 · 93 阅读 · 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 · 109 阅读 · 0 评论 -
Correct use of ConcurrentHashMap
ConcurrentHashMap has been pitched as a simple alternative for HashMap, eliminating the need for a synchronized blocks. I had some simple event counting code that created count records on the fly. Alt...原创 2012-02-12 22:13:13 · 114 阅读 · 0 评论 -
NDK Findclass
I’m a big fan of the new native activity functionality available for Android NDK users.While it does limit your target audience to Android 2.3 and above (currentlycomprising less than 10% of the ...原创 2012-02-09 23:24:21 · 346 阅读 · 0 评论 -
UPnP中Control Point的基本流程
1.搜索目前网络上的UPnP设备。Control Point生成一个MulticastSocket,绑定多播地址239.255.255.250 1900端口,然后发送一个搜索请求,默认将TimeToLive设为4,该请求在UPnP Device Architecture中是如下定义的:M-SEARCH * HTTP/1.1HOST: 239.255.255.250:1900MAN: ...原创 2012-01-10 22:43:33 · 115 阅读 · 0 评论 -
浅析UPNP协议
摘要:文章介绍了UPnP结构规范和开发流程,指出:UP nP协议使所有联网的设备实现互联,设备工作不需要传统的驱动程序,便可以实现设备间的 相互控制。关键词:UPnP协议;开发流程;电子技术;工作流程中图分类号:TP393文献标识码:A文章编号:1007—6921(2009)17—0072—02UPnP首先是由微软公司于1999年提出,现今已经是开放的标准,由非盈利的论坛组织UPnP F ...原创 2012-01-10 22:13:52 · 175 阅读 · 0 评论 -
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 · 377 阅读 · 0 评论 -
DLNA OPEN SOURCE
DLNA Open Source ProjectsHere is some random information about DLNA open source projects:Contents [hide]1 UPnP media servers2 UPnP Media Players3 DLNA media servers4 UPnP lib...原创 2012-01-04 22:55:11 · 364 阅读 · 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 · 163 阅读 · 0 评论