Custom Notification

  • 0 Antworten
  • Letztes Antwortdatum
Z

zblack

Gast
Hallo Freunde.
in meiner App erstelle die die Notification mitm folgendem Code:
Code:
NotificationManager notificationManager = (NotificationManager) 
                        getSystemService(ctx.NOTIFICATION_SERVICE);
                Notification notification = new Notification(
                        R.drawable.ic_launcher,
                        titel, System.currentTimeMillis());
                notification.flags |= Notification.FLAG_AUTO_CANCEL;
                notification.number = count;
                PendingIntent pendingIntent = PendingIntent.getActivity(this, 0,
                        new Intent(), 0);
                notification.setLatestEventInfo(ctx, titelon, nmessages
                        + anzahl1 + " " + norders + anzahl + " "  + titeloff + anzahl2,
                        pendingIntent);
                notificationManager.notify(0, notification);
es funktionier alles schön und gut
nur wenn ich die bischn längere Texte einsetze dann sind die nicht vollständig sichtbar und die Notification immer einzeilig bleibt.
Konnte man da eine benutzerdefinierte Notification schreiben ? (ich habe in der Doku gesehen dass es geht, nur blöd ist, ich entwickle die App für android 2.1 und die Funktionen die in der Doku drin sind, sind bei dem minsdk dann nicht vorhanden).
Ist das was ich vorhabe überhaupt möglich ???
 

Ähnliche Themen

AnnaBauer21
Antworten
0
Aufrufe
499
AnnaBauer21
AnnaBauer21
Zurück
Oben Unten