Many people use the
Date class in Android, and it's really handy. But it's deprecated in later Java versions, and in Android as well. Given the fact that it was once the de facto standard, it's still widely used. So, why not use it? You can just use
Sometimes, we need to get a resource from the Android resource library without knowing its name. Perhaps we have
R.id.data9 and want to fetch all 9 of them without hardcoding each one.
This has been possible since API 1, through the use of
getIdentifier(). I will start off by saying that this is not as efficient as referencing
R, so it should be used ONLY in the event that you cannot be sure of the ID you are fetching.