My sample of an Android Things app, that will display a Google Firebase Cloud Messaging (FCM) notification on an alphanumeric segment display (Rainbow HAT) as scrolling text (marquee). Written by a guy that's not that into Android development and pattern, yet.
- Android Things Developer Preivrew 6 or higher
- Raspberry Pi Rainbow HAT
- Firebase account
A FCM notification will be send to the registered Android Things app. The app receive it and will route the contained information via internal intent broadcasts to the MainActivity
. The activity will display the text on the display by using Runnables.
- Install Android Things on your Raspberry Pi
- Install and test the Rainbow HAT
- Enable the FCM feature on your Firebase account and embedd the
google-services.json
file into the project - Deploy app to Raspberry Pi
- Copy FCM token (Log output) or copy the packge identifer
- Go to the FCM console and send a notification
- If everything works as expected: The notications body text will be displayed on the segment display
- Personal Blog: [Android Things] Google Firebase Cloud Messaging Pager mit Android Things
- Hackster.io: (Firebase Cloud Messaging / Android Things Pager](https://www.hackster.io/tscholze/firebase-cloud-messaging-android-things-pager-c07e64)
This is a one-time-example, there will be no further development (maybe platform verison bumps fixes). That means, no contribution is necessary.
Just me, Tobi.
This project is licensed under the MIT License - see the LICENSE file for details. Dependencies or assets maybe licensed differently.
- JD Koren for providing some inspiration how to implement a running text
- Google's IoT Developers Community for helping beginners, too.