In eclipse, you can use the Android Lint tool. Click Window, then Launch Lint Tool. He will find all the problems in the code, which, in his opinion, should be fixed. One of the problems that it detects "Resource R.id.xxx does not seem to be used", and will highlight as a warning all files that, in its opinion, are not used in your project. So far, I have found it pretty accurate.
source share