[Solved] Android System services not available to Activities before onCreate() [closed]


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.

5

solved Android System services not available to Activities before onCreate() [closed]