Just a note:
Remember to add the Basic4Android-tag as mentioned by Erel.
However, unless necessary, I don't see any need to add the Android-tag. This is because I have seen legitimate answers including Java-code since the question did not mention Basic4Android was used. If you still want to add the Android-tag, please then explain in your question that your question is Basic4Android-related. In this way, we can save time for all those helpful SO-users who wrote a correct reply (with Java-examples) but still not the answer wanted (not being Basic4Android-code).
Just my thoughts.