Android new version - "Lollipop" (API 21) brings quite a few changes with it, but it comes with some price if you wish to target your app to that API.
When we started adapting our apps to the new API, one of the first problems we've encountered is the `IllegalArgumentException: Service Intent must be explicit`
If you have encountered the problem, and you are actually intending to use your intent in explicit way (meaning that when starting the service you are expecting to hit exactly 1 service action), here's a quick fix for turning implicit --> explicit:
That should do it. Please feel free to comment for additional insights on this new issue.
Seeking to be an advanced Android developer? Leading a team to a better work process? We'll aim to cover a bunch of development process steps and best practices. Providing a "cook book" for successful, agile, clean process. Area we'll talk about: REST, Android studio, Gradle, Maven, ProGuard, Intellij Inspections, Lint, Build variants, Flavours, Strict mode, MAT, Google play beta and rollouts, Graphical design, Performance, Automation, Unit testing, Git workflow, Jenkins... And much more!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment