article

Amelia@Amazon avatar image
Amelia@Amazon posted

Handling invoking a service via Context.BindService() in Android 5.0

Summary

For Lollipop, context.bindService(), which is used to connect to an application service, requires an explicit intent. If an application gives it an implicit intent, it will throw an exception which can lead to app crashes and other undefined behavior. This has caused several apps that previously used an implicit intent to crash.

Resolution

For more information, please check the Android 5.0 Behavior Changes here: http://developer.android.com/about/versions/android-5.0-changes.html

Keywords: Context, Intents, Crashes

KB_0008

androidlollipop
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Article

Contributors

nick_gardner contributed to this article brizzlebrazzle contributed to this article