MoodMap
MoodMap is created using Google Maps and then an overlay illustrated as a heatmap is drawn upon it. The heatmap is a visual way to illustrate the mood in a certain area, at a certain time. It gives the user the opportunity to find a place that matches his current mood.
How to connect with Google Maps through Android
The MoodMap needs to connect with Google Maps to be able to show the map. The way this is done is simple.
... to be continued.
How the heatmap is created
The heatmap is created in four simple steps:
- Create a colortable
- Calculate the points, their radius and their transparency
- Draw the points on a bitmap with a radial gradient
- Recolor the bitmap with regards to each pixels alpha value
[PAAD] C7
Drawing shaders in Android
[PAAD] C11, P376
Best practices: Canvas drawing in Android
[PAAD] C11, P380
Ref: Professional Android Application Development [PAAD]