私はデバイスからのすべての着信通知を読み取るアプリを持っています。小さなアイコンをbyte []に変換する際に問題に直面しています。どうすれば助けてくれますか?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