Questions about Android development are OFF-TOPIC on Android Enthusiasts. Do not ask them here, try Stack Overflow instead.

Development questions are off-topic and will be closed or migrated to Stack Overflow (so ask them there, not here).

For more information, read Where can I ask questions that aren't Android Enthusiast questions?