This code creates an input-dialog with AlertDialog.Builder where a user can enter text in an EditText field and press on “Ok” and “Cancel”.
This is part of my AudioViz project on GitHub. This service broadcasts an Intent (com.app.playing) when it starts to play. I did this because I found that there was a delay between when I started the service, and when the music was playing which caused NullPointerExceptions. Elsewhere in the code, I have a Broadcast receiver listening for this broadcast upon which the rest of initialization code is run.
This post will show you how to have a disappearing menu in your android apps. The menu should be hidden until the user taps the screen, and then the menu will disappear after 5 seconds unless the user taps the screen again. What I’ll show is how to make a simple button disappear, but this technique can be adapted to anything that can be animated.