Android status bar notifications [complete tutorial with source code]

Displaying status bar notification is a common way to unobtrusively inform user that something has happened (like new GMail message notification). In your app you can display it whenever you want. I will guide you how to do it from basics. This is how notifications are presented to the user: Google's documentation regarding the notifications … Continue reading Android status bar notifications [complete tutorial with source code]

Android: play default notification sound

When aplication wants to notify user with sound, the best way to do it is to play notification sound that is set by the user on his device. To do it, first you need to get Uri to that audio file from RingtoneManager. After that create a Ringtone object from that Uri and play it: … Continue reading Android: play default notification sound

iOS: Timer countdown implementation tutorial (including source code)

This lesson shows how to build timed periodic updates in iOS app using NSTimer. In my example I update timer value in text label. GUI consists of one label and one button. Button press starts the timer countdown. 1. Create NSTimer instance I use timer variable that holds reference to NSTimer object. Timer is then … Continue reading iOS: Timer countdown implementation tutorial (including source code)

Android push notifications with Google C2DM

Push notification is message sent by server logic to specific android device. Message can be caught by specified application and handled in any way. For example some notification can be shown on the android status bar. Received message can also be handled by Application in the way which user will not even see. Application will … Continue reading Android push notifications with Google C2DM