摘要: AppWidget setImageViewBitmap issue以下是Google Code中网友的结论:I can confirm:1) Not workingBitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.ic_1);remoteViews.setImageViewBitmap(R.id.battery, bitmap);2) WorkingremoteViews.setImageViewResource(R.id.battery, R.drawable.ic_1);work 阅读全文
posted @ 2012-06-11 15:27 WillYan 阅读(1386) 评论(0) 推荐(0)
摘要: 先简单说一下Android的硬件抽象层(HAL),就是对Linux内核驱动程序的封装,向上提供接口,屏蔽低层的实现细节。也就是说,把对硬件的支持分成了两层,一层放在用户空间(User Space),一层放在内核空间(Kernel Space)。其中,硬件抽象层运行在用户空间,而Linux内核驱动程序运行在内核空间。为什么要这样安排呢?把硬件抽象层和内核驱动整合在一起放在内核空间不可行吗?从技术实现的角度来看,是可以的,然而从商业的角度来看,把对硬件的支持逻辑都放在内核空间,可能会损害厂家的利益。我们知道,Linux内核源代码版权遵循GNU License,而Android源代码版权遵循Apac 阅读全文
posted @ 2012-06-11 15:00 WillYan 阅读(2499) 评论(0) 推荐(0)