Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: sound notification on build success

Is it possible to play a sound after my app was compiled and deployed on smartphone in Android Studio / IntelliJ

My workaround is to play a sound inside of onStart() method of my StartActivity, but I have to implement (copy/paste) this pattern for every new project. Not realy nice solution.

like image 952
dieter Avatar asked Mar 20 '15 11:03

dieter


People also ask

How do I show messages on Android?

Display a message There are two steps to displaying a message. First, you create a Snackbar object with the message text. Then, you call that object's show() method to display the message to the user.


1 Answers

In Android Studio, go into Preferences > Appearance & Behavior > Notifications, go down to Gradle Build (Logging) and check the Read aloud box.

This will speak Gradle build finished in x minutes and x seconds when your build is complete.

like image 86
Pouya Heydari Avatar answered Sep 26 '22 16:09

Pouya Heydari