android-Notification通知

Android安卓状态栏消息推送通知(Notification) 我从不猜测,猜测是一个很坏的习惯——会影响正常的逻辑推理能力。              ——阿瑟·柯南·道尔 《福尔摩斯探案集》 近日,在做安卓项目开发的时候涉及到状态栏通知的需求,查了资料,总结一个简单有效的方法,下面放上代码(Kotlin版): //该代码为Kotlin,读者可根据需求稍作调整 val notificationManager = getSystemServi... 阅读详情

Android的Toast 类提供了一个方便的方式来显示用户的警告信息,但这些警告不是持久性的,这意味着警告闪烁在屏幕上几秒钟后就消失了。

对于特别重要的要提供给用户的消息,需要有更持久性的方法。Notification是一种消息可以显示在设备的顶部的通知栏或状态栏中。

分类

 notification有以下几种:

  1>普通notification

  

    1.内容标题

    2.大图标

    3.内容

    4.内容附加信息

    5.小图标

    6.时间

  2>大布局Notification

    图1

  大布局notification是在android4.1以后才增加的,大布局notification与小布局notification只在‘7'-通知细节区域部分有区别,其它部分都一致。

通知细节区域。对于此区域的显示内容,各种大型视图通
知有着不同的设置:
Big picture style:细节区域展现一个高度为256dp的bitmap。
Big text style:细节区域显示一个大型文本块。
Inbox style:细节区域包含文本行数。


大布局notification只有在所有notification的最上面时才会显示大布局,其它情况下显示小布局。你也可以用手指将其扩展为大布局(前提是它是大布局)。如下图:

  图2

    大布局notification有三种类型:如图1为NotificationCompat.InboxStyle 类型。图2左部为NotificationCompat.BigTextStyle。图2右部 为:NotificationCompat.BigPictureStyle


   3>自定义布局notification

     除了系统提供的notification,我们也可以自定义notification。如下图所示的一个音乐播放器控制notification:

    图3

如何创建notification


    1>实例化一个NotificationCompat.Builder对象;如builder

     2>调用builder的相关方法对notification进行上面提到的各种设置

    3>调用builder.build()方法此方法返回一个notification对象。

     4>实例化一个NotificationManager对象;如:manager

     5>调用manager的notify方法。

  注:

   一个notification不必对上面所有的选项都进行设置,但有3项是必须的:

   小图标, set by setSmallIcon()

     内容标题, set by setContentTitle()

     内容, set by setContentText()

public static class

NotificationCompat.Builder

extends  Object
java.lang.Object
   ↳ android.support.v4.app.NotificationCompat.Builder

类概述


Builder class for NotificationCompat objects. Allows easier control over all the flags, as well as help constructing the typical notification layouts.

On platform versions that don't offer expanded notifications, methods that depend on expanded notifications have no effect.

For example, action buttons won't appear on platforms prior to Android 4.1. Action buttons depend on expanded notifications, which are only available in Android 4.1 and later.

For this reason, you should always ensure that UI controls in a notification are also available in an Activity in your app, and you should always start that Activitywhen users click the notification. To do this, use the setContentIntent() method.

概述


公有构造函数
NotificationCompat.Builder( Context context)
Constructor.
公有方法
NotificationCompat.Builder addAction(int icon,  CharSequence title,  PendingIntent intent)
Add an action to this notification.
Notification build()
Combine all of the options that have been set and return a new  Notification object.
Notification getNotification()
该 method 从 API 级别 开始已经废弃。 Use build() instead.
NotificationCompat.Builder setAutoCancel(boolean autoCancel)
Setting this flag will make it so the notification is automatically canceled when the user clicks it in the panel.
NotificationCompat.Builder setContent( RemoteViews views)
Supply a custom RemoteViews to use instead of the standard one.
NotificationCompat.Builder setContentInfo( CharSequence info)
Set the large text at the right-hand side of the notification.
NotificationCompat.Builder setContentIntent( PendingIntent intent)
Supply a  PendingIntent to send when the notification is clicked.
NotificationCompat.Builder setContentText( CharSequence text)
Set the text (second row) of the notification, in a standard notification.
NotificationCompat.Builder setContentTitle( CharSequence title)
Set the title (first row) of the notification, in a standard notification.
NotificationCompat.Builder setDefaults(int defaults)
Set the default notification options that will be used.
NotificationCompat.Builder setDeleteIntent( PendingIntent intent)
Supply a  PendingIntent to send when the notification is cleared by the user directly from the notification panel.
NotificationCompat.Builder setFullScreenIntent( PendingIntent intent, boolean highPriority)
An intent to launch instead of posting the notification to the status bar.
NotificationCompat.Builder setLargeIcon( Bitmap icon)
Set the large icon that is shown in the ticker and notification.
NotificationCompat.Builder setLights(int argb, int onMs, int offMs)
Set the argb value that you would like the LED on the device to blnk, as well as the rate.
NotificationCompat.Builder setNumber(int number)
Set the large number at the right-hand side of the notification.
NotificationCompat.Builder setOngoing(boolean ongoing)
Set whether this is an ongoing notification.
NotificationCompat.Builder setOnlyAlertOnce(boolean onlyAlertOnce)
Set this flag if you would only like the sound, vibrate and ticker to be played if the notification is not already showing.
NotificationCompat.Builder setPriority(int pri)
Set the relative priority for this notification.
NotificationCompat.Builder setProgress(int max, int progress, boolean indeterminate)
Set the progress this notification represents, which may be represented as a  ProgressBar.
NotificationCompat.Builder setSmallIcon(int icon, int level)
A variant of  setSmallIcon(int) that takes an additional level parameter for when the icon is a  LevelListDrawable.
NotificationCompat.Builder setSmallIcon(int icon)
Set the small icon to use in the notification layouts.
NotificationCompat.Builder setSound( Uri sound)
Set the sound to play.
NotificationCompat.Builder setSound( Uri sound, int streamType)
Set the sound to play.
NotificationCompat.Builder setStyle( NotificationCompat.Style style)
Add a rich notification style to be applied at build time.
NotificationCompat.Builder setSubText( CharSequence text)
Set the third line of text in the platform notification template.
NotificationCompat.Builder setTicker( CharSequence tickerText,  RemoteViews views)
Set the text that is displayed in the status bar when the notification first arrives, and also a RemoteViews object that may be displayed instead on some devices.
NotificationCompat.Builder setTicker( CharSequence tickerText)
Set the text that is displayed in the status bar when the notification first arrives.
NotificationCompat.Builder setUsesChronometer(boolean b)
Show the  when field as a stopwatch.
NotificationCompat.Builder setVibrate(long[] pattern)
Set the vibration pattern to use.
NotificationCompat.Builder setWhen(long when)
Set the time that the event occurred.
[展开]
继承方法
 From class java.lang.Object

公有构造函数


public NotificationCompat.Builder (Context context)

Constructor. Automatically sets the when field to System.currentTimeMillis() and the audio stream to the STREAM_DEFAULT.

参数
context A Context that will be used to construct the RemoteViews. The Context will not be held past the lifetime of this Builder object.

公有方法


public NotificationCompat.Builder addAction (int icon, CharSequence title, PendingIntent intent)

Add an action to this notification. Actions are typically displayed by the system as a button adjacent to the notification content. 
Action buttons won't appear on platforms prior to Android 4.1. Action buttons depend on expanded notifications, which are only available in Android 4.1 and later. To ensure that an action button's functionality is always available, first implement the functionality in the Activity that starts when a user clicks the notification (seesetContentIntent()), and then enhance the notification by implementing the same functionality with addAction().

参数
icon Resource ID of a drawable that represents the action.
title Text describing the action.
intent PendingIntent to be fired when the action is invoked.
public Notification build ()

Combine all of the options that have been set and return a new Notification object.

public Notification getNotification ()

该 method 从 API 级别 开始已经废弃。。
Use build() instead.

public NotificationCompat.Builder setAutoCancel (boolean autoCancel)

Setting this flag will make it so the notification is automatically canceled when the user clicks it in the panel. The PendingIntent set withsetDeleteIntent(PendingIntent) will be broadcast when the notification is canceled.

public NotificationCompat.Builder setContent (RemoteViews views)

Supply a custom RemoteViews to use instead of the standard one.

public NotificationCompat.Builder setContentInfo (CharSequence info)

Set the large text at the right-hand side of the notification.

public NotificationCompat.Builder setContentIntent (PendingIntent intent)

Supply a PendingIntent to send when the notification is clicked. If you do not supply an intent, you can now add PendingIntents to individual views to be launched when clicked by calling RemoteViews.setOnClickPendingIntent(int,PendingIntent). Be sure to read Notification.contentIntent for how to correctly use this.

public NotificationCompat.Builder setContentText (CharSequence text)

Set the text (second row) of the notification, in a standard notification.

public NotificationCompat.Builder setContentTitle (CharSequence title)

Set the title (first row) of the notification, in a standard notification.

public NotificationCompat.Builder setDefaults (int defaults)

Set the default notification options that will be used.

The value should be one or more of the following fields combined with bitwise-or: DEFAULT_SOUND, DEFAULT_VIBRATE, DEFAULT_LIGHTS.

For all default values, use DEFAULT_ALL.

public NotificationCompat.Builder setDeleteIntent (PendingIntent intent)

Supply a PendingIntent to send when the notification is cleared by the user directly from the notification panel. For example, this intent is sent when the user clicks the "Clear all" button, or the individual "X" buttons on notifications. This intent is not sent when the application calls NotificationManager.cancel(int).

public NotificationCompat.Builder setFullScreenIntent (PendingIntent intent, boolean highPriority)

An intent to launch instead of posting the notification to the status bar. Only for use with extremely high-priority notifications demanding the user's immediateattention, such as an incoming phone call or alarm clock that the user has explicitly set to a particular time. If this facility is used for something else, please give the user an option to turn it off and use a normal notification, as this can be extremely disruptive.

参数
intent The pending intent to launch.
highPriority Passing true will cause this notification to be sent even if other notifications are suppressed.
public NotificationCompat.Builder setLargeIcon (Bitmap icon)

Set the large icon that is shown in the ticker and notification.

public NotificationCompat.Builder setLights (int argb, int onMs, int offMs)

Set the argb value that you would like the LED on the device to blnk, as well as the rate. The rate is specified in terms of the number of milliseconds to be on and then the number of milliseconds to be off.

public NotificationCompat.Builder setNumber (int number)

Set the large number at the right-hand side of the notification. This is equivalent to setContentInfo, although it might show the number in a different font size for readability.

public NotificationCompat.Builder setOngoing (boolean ongoing)

Set whether this is an ongoing notification.

Ongoing notifications differ from regular notifications in the following ways:

  • Ongoing notifications are sorted above the regular notifications in the notification panel.
  • Ongoing notifications do not have an 'X' close button, and are not affected by the "Clear all" button.

public NotificationCompat.Builder setOnlyAlertOnce (boolean onlyAlertOnce)

Set this flag if you would only like the sound, vibrate and ticker to be played if the notification is not already showing.

public NotificationCompat.Builder setPriority (int pri)

Set the relative priority for this notification. Priority is an indication of how much of the user's valuable attention should be consumed by this notification. Low-priority notifications may be hidden from the user in certain situations, while the user might be interrupted for a higher-priority notification. The system sets a notification's priority based on various factors including the setPriority value. The effect may differ slightly on different platforms.

public NotificationCompat.Builder setProgress (int max, int progress, boolean indeterminate)

Set the progress this notification represents, which may be represented as a ProgressBar.

public NotificationCompat.Builder setSmallIcon (int icon, int level)

A variant of setSmallIcon(int) that takes an additional level parameter for when the icon is a LevelListDrawable.

参数
icon A resource ID in the application's package of the drawble to use.
level The level to use for the icon.
public NotificationCompat.Builder setSmallIcon (int icon)

Set the small icon to use in the notification layouts. Different classes of devices may return different sizes. See the UX guidelines for more information on how to design these icons.

参数
icon A resource ID in the application's package of the drawble to use.
public NotificationCompat.Builder setSound (Uri sound)

Set the sound to play. It will play on the default stream.

public NotificationCompat.Builder setSound (Uri sound, int streamType)

Set the sound to play. It will play on the stream you supply.

public NotificationCompat.Builder setStyle (NotificationCompat.Style style)

Add a rich notification style to be applied at build time. 
If the platform does not provide rich notification styles, this method has no effect. The user will always see the normal notification style.

参数
style Object responsible for modifying the notification style.
public NotificationCompat.Builder setSubText (CharSequence text)

Set the third line of text in the platform notification template. Don't use if you're also using setProgress(int, int, boolean); they occupy the same location in the standard template. 
If the platform does not provide large-format notifications, this method has no effect. The third line of text only appears in expanded view. 

public NotificationCompat.Builder setTicker (CharSequence tickerText, RemoteViews views)

Set the text that is displayed in the status bar when the notification first arrives, and also a RemoteViews object that may be displayed instead on some devices.

public NotificationCompat.Builder setTicker (CharSequence tickerText)

Set the text that is displayed in the status bar when the notification first arrives.

public NotificationCompat.Builder setUsesChronometer (boolean b)

Show the when field as a stopwatch. Instead of presenting when as a timestamp, the notification will show an automatically updating display of the minutes and seconds since when. Useful when showing an elapsed time (like an ongoing phone call).

public NotificationCompat.Builder setVibrate (long[] pattern)

Set the vibration pattern to use.

public NotificationCompat.Builder setWhen (long when)

Set the time that the event occurred. Notifications in the panel are sorted by this time.

Android studio 28 通知栏报错Failed to post notification on channel "null" 今天老师上课上到通知,教材是第一行代码,可能教材上的源码太久了,我在用安卓9的时候,模拟器报错Failed to post notification on channel “null”,在网上查了很久才知道,Notification在android 26以上设置时,需要设置渠道信息才可以正常显示通知,这是 官方文档地址[https://developer.android.google.cn/abo... 阅读详情

相关推荐

实现Android常驻通知栏Notification的完整指南

Android Notification是Android系统中用于向用户显示应用状态更新的一种机制。它能够让应用在不打断用户当前操作的情况下,展示信息。随着Android版本的更新,Notification的管理和用户交互方式也发生了很大的变化。创建一个Notification Channel,首先需要定义一个Channel ID和Channel Name。Channel ID是一个字符串,用于在程序中唯一标识这个Channel。Channel Name是用户可见的名称,应简洁明了地描述通知的用途。

weixin_36073714的博客 1635

Android Notification 详解

Link: www.jianshu.com/p/d2051a785…Demo: github.com/czy1121/Not… 1. 简单用法 创建通知 创建通知至少包含 小图标、标题、内容 才能显示 NotificationCompat.Builder builder = new NotificationCompat.Builder(this) .setSmallIcon(...

weixin_34237596的博客 381

基于大模型的恶性胸腔积液全周期预测与诊疗方案研究

本研究基于大模型技术构建了恶性胸腔积液全流程预测与诊疗体系,涵盖术前风险评估、术中方案优化、术后恢复预测及并发症预防。通过整合多源医疗数据,实现了手术风险概率预测(准确率80%)、并发症预警(AUC值0.85)及个性化康复方案制定,显著提升诊疗精准度。研究创新性地将Transformer架构与多模态数据融合,在100例临床验证中显示良好性能,但存在数据样本局限、模型可解释性不足等问题。未来将扩大多中心临床验证,优化算法可解释性,探索与基因检测等技术的结合应用,推动恶性胸腔积液的精准诊疗发展。

嵌入式毕设/课设资料清单(速查手册·文档模板·题库,持续更新)→ 见最新文章 1907

Android 通知栏Notification的整合 全面学习 (一个DEMO让你完全了解它)

在android的应用层中,涉及到很多应用框架,例如:Service框架,Activity管理机制,Broadcast机制,对话框框架,标题栏框架,状态栏框架,通知机制,ActionBar框架等等。 下面就来说说经常会使用到通知机制中的通知栏框架(Notificaiton),它适用于交互事件的通知。它是位于顶层可以展开的通知列表。它会时不时的提醒你什么软件该更新了,什么人发你微信消息了等。 (

未来之路 的专栏 30万+

FPGA实战:SRIO接口数据流控制与回环测试详解

本文详细解析了FPGA中SRIO接口的数据流控制机制与回环测试实战。通过剖析SRIO IP核的AXI4-Stream接口握手时序(tvalid/tready/tlast),重点阐述了HELLO数据包格式与状态机设计,并提供了完整的Verilog代码示例。文章以回环测试为核心验证手段,指导开发者排查常见问题,为FPGA高速互连通信设计提供实用指南。

weixin_29173777的博客 434

高精地图语义分割标注

什么是语义分割?语义分割与目标检测的区别?语义分割的关键应用场景有哪些?高精地图语义分割标注的难点?

weixin_52509513的博客 1657

Android Notification Intent传递数据为null

1、概述 最近在使用通知的时候,给通知添加上了点击事件,然后通过通知的Intent来传递数据,打开不同的页面,展示不同的数据。一切都很简单的就完成了,可是当点击通知的时候并没有按照原来的想法展示,通过Debug发现通知的Intent并没有传递数据,所有的数据都是null。下面我们首先来看看我原来的代码是怎么样的,代码如下: val intent = Intent(context, WelcomeA...

LoveDou0816的博客 2125

CANFD加速是什么?和CANFD有什么区别?

在使用CAN设备上位机的时候,已经选择了CANFD,但还有一个选项是“CANFD加速”,那CANFD加速和不加速有什么区别呢?刚接触CANFD小伙伴肯定一脸懵,本篇主要是给大家分享一下他们的区别,如果对你有帮助,请转发,收藏,点赞💐🎉👍😊

汽车电子软件领域知识分享 1048

Android通知(Notification)中使用PendingIntent

Android通知(Notification)中使用PendingIntent

Android应用开发工程师 1492

API Streaming Failed 400 <400>InternalError.Algo.InvalidParameter input content must be a string解决方案

本文主要介绍了API Streaming Failed 400 <400> InternalError.Algo.InvalidParameter input content must be a string解决方案,希望能对使用vscode中cline的同学们有所帮助。 文章目录 1. 问题描述 2. 解决方案

weixin_43178406的博客 3万+

【RT-DETR创新改进】改进前必看!对Ultralytics调参, 1:1还原RT-DETR官方版本实验参数,使用原汁原味的RT-DETR模型,才能高效跑实验、高效涨点、收割小论文、完成大论文!!!

本文针对Ultralytics训练RT-DETR精度不佳问题,提供参数配置优化方案。通过对比官方RT-DETR参数设置,详细指导如何修改Ultralytics版本的关键参数,包括优化器、学习率、权重衰减等6处配置调整。操作步骤涵盖default.yaml文件修改和trainer.py代码调整,确保模型收敛性能达到官方水平,帮助研究者快速提升实验效果。文末附官方源码链接和具体参数配置网址供参考。

Ai缝合怪、助力小伙伴高效发论文 1791

Android通知(Notification)详细解读一——基本使用

概述 Notification,是一种具有全局效果的通知,可以在系统的通知栏中显示。当 APP 向系统发出通知时,它将先以图标的形式显示在通知栏中。用户可以下拉通知栏查看通知的详细信息。通知栏和抽屉式通知栏均是由系统控制,用户可以随时查看。 添加支持库 创建基本通知 设置通知内容 更新通知 删除通知 给 Notification 设置 Action ...

心田祭思博客 7188

SAP-ABAP:SAP数据库视图(Database View)详解-创建

数据库视图是SAP中实现多表关联查询的基础工具,适合简单的跨表查询和权限控制场景。但其功能有限,对于复杂逻辑或高性能需求,建议结合CDS视图或ABAP程序开发。通过合理设计,数据库视图可显著提升开发效率和系统可维护性。它存储在数据库中,但本身不存储数据,仅通过查询动态生成结果。是一种基于物理数据库表的虚拟表,通过关联多个表(使用。

baidu_35680696的博客 1376

安卓开发 通知栏Notification详解

安卓开发通知栏Notification的详细介绍和用法示例

wm 6960

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

安卓Notification通知栏全解

全栈工程师开发手册 (作者:栾鹏) 安卓教程全解 安卓通知栏是提醒用户信息有效手段,也是通过用户的行为触发事件服务的方式。 Notification允许在当前应用程序不活动或不可见时向用户发送信号。 创建通知栏有使用Notification直接创建何使用Notification.Builder创建两种方法 1、使用Notification直接创建通知栏 private

1871

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

Android通知栏-Notification(通知消息)

1.概述 当应用程序在后台运行,希望向用户发出一些提示学习,就需要借助Notification(通知)来实现。在发出一条通知后,手机最上方的状态栏会显示一个通知的图标,下拉状态栏后就可以看到通知的详细内容。 1.1 视图分类 Notification有两种视觉风格,一种是标准视图(Normal View),另外一种是大视图(Big view)。标准视图在Android中各...

云上道人的博客 4万+

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

通知栏如何更新android,安卓状态栏通知Notification方法更新(setLatestEventInfo)

今天使用安卓状态栏通知的时候,发现Notification的setLatestEventInfo构造方法画上的横线,也就是以前版本的方法,将要舍弃,强迫症没办法啊,于是查询资料找到了最新的构造方法,留存下吧。Notification notification = new Notification.Builder(context).setContentTitle("标题")//设置通知标题.setC...

weixin_35131425的博客 1331

android实现通知,Android中的3种通知Notification

Android中的Notification分为三种:1、普通Notification2、折叠Notification3、悬浮Notification1、普通Notification//普通通知val mIntent = Intent(Intent.ACTION_VIEW, Uri.parse("https://blog.csdn.net/qq_40716430/article/details/10...

weixin_42347869的博客 834

Android发送通知——通知栏(Notification)

通知是指 Android 在您应用的界面之外显示的消息,旨在向用户提供提醒、来自他人的通信信息或您应用中的其他实时信息。在发出一条通知后,手机最上方的状态栏会显示一个通知的图标,下拉状态栏后就可以看到通知的详细内容。用户可以点按通知来打开应用,或直接从通知中执行操作。

weixin_43977664的博客 1万+

Android-Notification安卓手机通知栏通知的开发

一、概述           Notification是显示在手机状态栏的消息(手机状态栏位于手机最顶端),代表一种全局效果的通知。 二、通知栏的内容        图标、标题、内容、时间、点击后响应 三、实现通知栏      (1)获取NotificationManager。      (2)显示通知栏:notify(id, notification);      (3)取消通知栏

雨泪不轻扬 1578

安卓中Notification通知的详解

这是关于androidNotification的详解,希望可以帮助到大家

知他人之所知,晓他人之不晓。 2217

android之Notification通知

<br />我们在用手机的时候,如果来了短信,而我们没有点击查看的话,是不是在手机的最上边的状态栏里有一个短信的小图标提示啊?你是不是也想实现这种功能呢?今天的Notification就是解决这个问题的。<br />package cn.com.chenzheng_java; import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import an

梦中一夜下江南 5万+

Android的notification通知

概括: Android使用notification实现消息提醒,提供通知栏和通知抽屉查看通知和通知详情,Android的notification机制应用非常广泛,是指在应用程序之外显示的消息,布局由系统模板决定,开发者只需要定义模板中各部分的内容,通知详情就会在点开后展开视图显示设置的内容。 目前大体分为状态栏图标通知、悬挂提醒式通知、锁屏通知及圆点通知,从Android8.0开始必须为所有通知分配一个或多个通道,否则通知将不会显示。Android8.0及以上通过通道的importance属性设置重要性

weixin_51872136的博客 3638

安卓中通知(Notification)的基本使用方法

安卓中通知(Notification)的基本使用方法 1. 通知的使用场合  当某个应用程序希望向用户发出一些提示信息,而该应用程序又不在前台运行时,就可以借助通知来实现。发出一条通知后,手机最上方的状态栏中会显示一个通知的图标,下拉状态栏后可以看到通知的详细内容。  2. 通知的创建步骤    (1)获取NotificationManager实例,可以通过调用Co

dotedy的博客 595

安卓开发--通知Notification

先在AndroidManifest.xml里面添加权限。必须提供,显示在状态栏(纯白色,推荐使用矢量图)VISIBILITY_SECRET:完全不显示。Android 8.0+ 必须为通知分配渠道。VISIBILITY_PUBLIC:完全显示。可选,展开后显示(通常用于联系人头像)小图标 (Small Icon)大图标 (Large Icon)决定通知的显示位置和干扰程度。渠道 (Channel)构建兼容不同版本的通知。13.通知的可见性控制。状态栏显示+默认声音。

m0_50891221的博客 402
上一篇: android-使用http相关的类介绍
下一篇: android-屏幕旋转
freelander0418
博客等级 码龄14年 10粉丝 46原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值