You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user extends an IntentService and does not implement the onCreate method explicitly, an internal implementation is generated by the SBG for the onCreate method (used for NS runtime initialization cases). This generated method, however, does not make a call to super.onCreate() which makes the instance of the newly generated service be incorrectly initialized by the Android runtime and crash when it's used.
There should be a call to super.onCreate() in this internal implementation of onCreate and this would remove the runtime crash. However, if the user has provided an implementation of onCreate there should not be a generated call to super.onCreate() because there may be a case where the user does not want this call to be made.
The text was updated successfully, but these errors were encountered:
If a user extends an
IntentService
and does not implement theonCreate
method explicitly, an internal implementation is generated by the SBG for theonCreate
method (used for NS runtime initialization cases). This generated method, however, does not make a call tosuper.onCreate()
which makes the instance of the newly generated service be incorrectly initialized by the Android runtime and crash when it's used.There should be a call to
super.onCreate()
in this internal implementation ofonCreate
and this would remove the runtime crash. However, if the user has provided an implementation ofonCreate
there should not be a generated call tosuper.onCreate()
because there may be a case where the user does not want this call to be made.The text was updated successfully, but these errors were encountered: