-2

I can't use getSystemService(String) from the Context library I want to use it here, but it's missing.

I want this

double-beep
  • 5,031
  • 17
  • 33
  • 41

1 Answers1

0

Try to access with context object if you are accessing this method in non activity class.

  context.getSystemService(Context.POWER_SERVICE);
Dharmender Manral
  • 1,504
  • 1
  • 6
  • 7