Galaxy s2 stuck on samsung logo after installing an app
The usual way of fixing bootloops is doing a Factory Reset (via Recovery mode). Of course, you will lose your data.

But seeing that you have a custom recovery, do you also have a custom ROM installed? If yes, try (dirty) flashing the custom ROM via custom recovery. Don't forget to wipe cache and Dalvik cache.