Nokia actually had profitability problems, but surely Windows Phone proved not to be the solution. About keeping its leadership in mappping and navigation, switching to WP wasn't by any means a necessary condition to achieve it.
Not wanting to directly develop Symbian anymore, but wanting to keep its user base, making it become a customised environment on a barebone Android or even more basic Linux system could have been a far better solution, avoiding WP bloating and hit on battery life that surely made existing user base unhappy, while Android could have provided all the developments and new features Nokia wasn't able or willing to add directly.







