Skip to content Skip to sidebar Skip to footer

Android System Services Not Available To Activities Before Oncreate()

.... @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... done = true; } ... public class addcontacts extends Li

Solution 1:

The only thing that is broken is your code. Fix would be to avoid access to system services prior onCreate() is completed otherwise there's no setup made yet to the activity object, hence the self-explaining-the-cause exception you facing.


Post a Comment for "Android System Services Not Available To Activities Before Oncreate()"