How do you find out what current active application you are in or if you are in the springboard's homepages?
You can't do that. There is no Public API is provided by Apple to do so.
If you are looking for Private API, please check this post