Is it illegal to record someone's activities without their consent or knowledge?

This depends both on what state you live in as well as the type and place of recording. Please provide further detail, and I can provide you with a better response. In some cases, it is illegal, and in California, there are statutory penalties for recording a phone conversation without permission, for example.