Android : How to stop a system service in android?

on Sunday, October 12, 2014


I want to know how to stop a system service using my app in android, I'm not talking here about stopping a Service Class that exists inside my app, I'm taking about stopping a System Service like (Bluetooth, Mailing, Alarm, WiFi, .....etc) I tried to make it like the following but nothing stopped:



stopService(new Intent(Service.BLUETOOTH_SERVICE));

0 comments:

Post a Comment