monodroid-samples icon indicating copy to clipboard operation
monodroid-samples copied to clipboard

Foreground Service Demo: when click [Start Service] the Activity not refresh

Open yuzd opened this issue 7 years ago • 1 comments

when click [Start Service] then this code

startServiceButton.Enabled = false;
stopServiceButton.Enabled = true;

was be excuted!

but the activity still

startServiceButton.Enabled = true;
stopServiceButton.Enabled = false;

the activity was refresh when i click the title of app. why?

yuzd avatar Jul 24 '17 14:07 yuzd

I'm not sure what are you referencing. The samples shows how a service is executed in foreground (you can see a notification en notification area). When you start a service, "START SERVICE" button turns disabled and "STOP SERVICE" button turns enabled. I'm not seeing a wrong behavior here.

If you still seeing a wrong behavior, please provide us more information (a screenrecord would be great)

Thanks

gonzalonm avatar Oct 11 '17 19:10 gonzalonm