ANDROID之路-Android_点击Notification打开一个Activity的两种方式

/**
@作者 : 西野奈留
@博客: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-

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值