[android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2014-06-18 Thread James Wald
Without additional annotations, static analysis is going to warn that both the Context and Intent may be null. This is due to the fact that the broadcast receiver is an instantiable class and onReceive() is a public method. For example: new MyBroadcastReceiver().onReceive(null, null); Adding @

[android-developers] Re: The app icon disappears on app upgrade on Nexus devices (4.2.2)

2013-04-29 Thread James Wald
I have filed this bug with Google. It only happens with Android 4.2.2. Android 4.1.2 works as expected. App launcher shortcuts and widgets disappear after changing launcher activity https://code.google.com/p/android/issues/detail?id=54720 On Tuesday, April 23, 2013 4:56:43 PM UTC-4, AndreiP w