我有一个应用程序,在该应用程序中,我读取了来自设备的所有传入通知。我在将小图标转换为字节[]时遇到问题。我该怎么做,请帮忙?如何使用NotificationListenerService将小图标从通知转换为byte []?
代码: -
Bundle extras = sbn.getNotification().extras;
String title = extras.getString("android.title");
String text = extras.getCharSequence("android.text").toString();
int id1 = extras.getInt(Notification.EXTRA_SMALL_ICON);
为什么你要转换为字节数组? –
它的应用程序要求 – Niraj