How to restart service in android to call service oncreate again

Call this two methods right after each other, which will causes the Service to stop and start. Don’t know any method that “restarts” it. This is how I have implemented it in my application.

stopService(new Intent(this, YourService.class));
startService(new Intent(this, YourService.class));

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)