Android: Adding desktop shortcut support to your app

So you have an app with quite a bit of functionality, but you would like to offer your users some way of performing often used actions or go directly to an often used activity besides the one triggered by your apps launcher. Android offers desktop shortcuts (if you don’t know about them, try long-pressing your…

Read more Android: Adding desktop shortcut support to your app

Handling longpress/longclick in MapActivity

While working on my MapActivity based Android app, I wanted to be able to show a context menu when the user longpressed any point on the map (not necessarily a marker in an overlay) and perform some action related to that point. I wrongly assumed that there would be some simple method to override for this, like onLongPress(). Therefore I set out to find another solution, and here it is.