A question like "How do I get started with writing my first Android app?" is Too Broad.
I agree 100%.
But using the same reason to shut down a question like "How can I improve my solution to Project Euler Problem 7?" takes a stretch of the imagination.
Ok, let's stretch our imaginations a little bit. That question title coupled with a code dump would absolutely be Too Broad in my mind. My answer might be to completely replace your code with any number of working solutions. That question title coupled with a detailed explanation of both the problem and your solution wouldn't be too broad, though, and probably wouldn't be closed in the first place. So I think this is inconclusive. A question with that title can be Too Broad, but you have to judge it based on more than the title.
(I do agree that we could use a little bit of guidance in the Help Center for people who are asking these questions, or deciding on how to close them. I myself have been guilty of telling people to ask their question on Code Review when it's really off-topic there too. CR is no longer not a migration target from SO, but it's probably worth keeping your migration checklistmigration checklist in mind before leaving these kinds of comments.)