I know it's possible with the API, because I've seen examples and I have a project that does it. However, I haven't really looked at it, so I couldn't tell you off the top of my head. Search the internet and you'll eventually find something.