Searched around for this one but no luck. Is there some code that let's you determine whether your device is running Asha OS or S40?.

I don't really want to create two similar codebases to solve this problem.

Thanks!