Android L inserts unwanted intents
My app happily works with Android Kitkat and below. However, I started getting complaints from Android L users that got crashed on their device.
An amazing thing happened while debugging my Lollipop application. Although the debugger was attached to the application (i.e. I launched the application from Eclipse), the application did not work.
However, when I killed the debugger and ran the application in the emulator, it crashed.
I found that Android L is embedding intent.
I was only checking if the extra package was not null. This was not the case, so when I tried to access my intent the application crashed.
I tried to write this extra and received
{profile:0}
My question is, why does this happen on Android Lollipop? This doesn't happen in any other Android version.
source to share
With Android Lollipop, you can use Enterprise Managed Profiles .
So far, I haven't found a way to extract the "profile" name from the Android SDK, so I need to hard-code it :(
source to share