ANDROID之路-Android_点击Notification打开一个Activity的两种方式
2015-11-28 11:22
513 查看
/**
@作者 : 西野奈留
@博客:http://blog.csdn.net/narunishino
@声明:本文仅在【CSDN 博客】发表。
*/
点击notification打开一个activity的两种方式:
(获得PendingIntent的方式也不同)
There are two general situations:
1,Regular activity (常规Activity)
You’re starting an Activity that’s part of the application’s normal workflow.
你启动的是你application中其中一个Activity。
2,Special activity (特定Activity)
The user only sees this Activity if it’s started from a notification. In a sense, the Activity extends the notification by providing information that would be hard to display in the notification itself.
用户只能从notification中启动这个Activity(在application中不能启动这个Activity)。在某种意义上,这个Activity是notification的扩展,额外展示了一些notification本身难以展示的信息。
参考:
1,android APIs
2, http://www.haoxiqiang.info/blog/20150129-AndroidNotification.html
-End-
@作者 : 西野奈留
@博客:http://blog.csdn.net/narunishino
@声明:本文仅在【CSDN 博客】发表。
*/
点击notification打开一个activity的两种方式:
(获得PendingIntent的方式也不同)
There are two general situations:
1,Regular activity (常规Activity)
You’re starting an Activity that’s part of the application’s normal workflow.
你启动的是你application中其中一个Activity。
2,Special activity (特定Activity)
The user only sees this Activity if it’s started from a notification. In a sense, the Activity extends the notification by providing information that would be hard to display in the notification itself.
用户只能从notification中启动这个Activity(在application中不能启动这个Activity)。在某种意义上,这个Activity是notification的扩展,额外展示了一些notification本身难以展示的信息。
参考:
1,android APIs
2, http://www.haoxiqiang.info/blog/20150129-AndroidNotification.html
-End-
相关文章推荐
- 使用C++实现JNI接口需要注意的事项
- Android IPC进程间通讯机制
- Android Manifest 用法
- [转载]Activity中ConfigChanges属性的用法
- Android之获取手机上的图片和视频缩略图thumbnails
- Android之使用Http协议实现文件上传功能
- Android学习笔记(二九):嵌入浏览器
- android string.xml文件中的整型和string型代替
- i-jetty环境搭配与编译
- android之定时器AlarmManager
- android wifi 无线调试
- Android Native 绘图方法
- Android java 与 javascript互访(相互调用)的方法例子
- android 代码实现控件之间的间距
- android FragmentPagerAdapter的“标准”配置
- Android"解决"onTouch和onClick的冲突问题
- android:installLocation简析
- android searchView的关闭事件
- SourceProvider.getJniDirectories