摘要: 在2.3.x 的主要做法如下,具体实现网上有很多文章:@Override public void onAttachedToWindow() { this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD); super.onAttachedToWindow(); }代码移植到4.0.1后this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);这行报错,错误提示:java.lang.IllegalArgumentException: Window 阅读全文
posted @ 2013-11-26 14:19 神秘的打火机 阅读(280) 评论(0) 推荐(0)