zoukankan
html css js c++ java
Android锁屏状态下弹出activity,如新版qq的锁屏消息提示
在接收消息广播的onReceive里,跳转到你要显示的界面。如:
Intent intent = new Intent(arg0,MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
arg0.startActivity(intent);
复制代码
在该activity的onCreate()方法里:
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED|WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
setContentView(R.layout.activity_main);
复制代码
设置activity的theme属性:
android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
复制代码
上一篇
Android Animation学习(二) ApiDemos解析:基本Animatiors使用
下一篇
ImageView 等比例放大
查看全文
相关阅读:
test
Data mining with WEKA, Part 2: Classification and clustering
MyISAM和InnoDB的区别
SpringMVC源码剖析(一) 从抽象和接口说起
数据库隔离级别详解
spring MVC配置详解
Spring单实例、多线程安全、事务解析
mysql中int、bigint、smallint 和 tinyint的区别
SpringMVC源码剖析(二) DispatcherServlet的前世今生
SpringBoot与Lombok
原文地址:https://www.cnblogs.com/sparkleDai/p/7604989.html
最新文章
Tornado V2.2 for arm 安装过程
FreeRTOS学习笔记3任务的几种状态及转换
FreeRTOS学习笔记5静态方式创建任务函数
20170626调试核心板
FreeRTOS学习笔记2
FreeRTOS学习笔记4FreeRTOS配置管理
不明白的arguments
正则表达式非贪婪匹配
js的逻辑运算符
半月学习总结
热门文章
SDN第一次作业
软件工程实践第二次作业
软件工程结对第二次作业
软件工程实践第一次作业
两周以来的学习成果&遇到的问题及解决:
结对第一次作业
个人技术博客(α)
SDN第一次上机作业
[转]Data mining with WEKA, Part 1: Introduction and regression
[转]Data mining with WEKA, Part 3: Nearest Neighbor and serverside library
Copyright © 2011-2022 走看看