【发布时间】:2014-11-14 18:34:35
【问题描述】:
我正在使用通知侦听器 api 来读取通知信息,但似乎无法读取 Gmail 通知的文本。这是 adb 所说的:
extras={
android.title=john
android.support.actionExtras={0=Bundle[EMPTY_PARCEL], 1=Bundle[EMPTY_PARCEL]}
android.subText=bar@gmail.com
android.showChronometer=false
android.icon=2130837727
android.text=MyText
android.progress=0
android.progressMax=0
android.showWhen=true
android.people=[Ljava.lang.String;@b1564718 {
mailto:foo@gmail.com
}
android.largeIcon=android.graphics.Bitmap@b15c6130 (128x128)
android.infoText=null
android.wearable.EXTENSIONS=Bundle[mParcelledData.dataSize=1200]
android.progressIndeterminate=false
android.scoreModified=false
}
使用其他通知它可以工作。有小费吗?我正在以这种方式阅读通知:
String text = extras.getString(Notification.EXTRA_TEXT);
【问题讨论】:
标签: android notifications gmail