MessagingService
Notification
com.example.android.messagingservice
21
PUBLISHED
Notification
Android
Java
Mobile
ADVANCED
screenshots/icon-web.png
screenshots/1-main.png
screenshots/2-onemessage.png
screenshots/3-threemessages.png
android.app.Service
android.content.Intent
android.support.v4.app.NotificationCompat
android.support.v4.app.NotificationCompat.CarExtender
```
Include the following to indicate that the application wants to show notifications on
the Android Auto overview screen.
example: res/xml/automotive\_app\_desc.xml
```
```
#### Flow
MessagingFragment is shown to the user. Depending on the button clicked, the MessagingService is
sent a message. MessagingService in turn creates notifications which can be viewed either on the
device or in the messaging-simulator.
When a message is read, the associated PendingIntent is triggered and MessageReadReceiver is called
with the appropriate conversationId. Similarly, when a reply is received, the MessageReplyReceiver
is called with the appropriate conversationId. MessageLogger logs each event and shows them in a
TextView in MessagingFragment for correlation.
]]>