Luk4
Luk4

Reputation: 13

Xamarin - Android Lost WiFi Connection

Hello the android app that I am making, after a few hours on stand-by lost the WiFi connection. I tried with a timer and check connection but the application freezes after a few hours and continue to lost connection.

Upvotes: 0

Views: 186

Answers (1)

Brainstroming
Brainstroming

Reputation: 62

I think when the phone is in stand by the activity is going to be paused eventually stoped, for this reason the event paused eventually also stopped is going to be called, after pressing the home button the function Resume may be also start is going to be called.

Please have a look to this article https://stuff.mit.edu/afs/sipb/project/android/docs/training/basics/activity-lifecycle/pausing.html

from my perspective the time should be stoped when the app in background or phone in stand by

For connectivity I will advice you to use the connectivity Module from Nuget, this plugin is really stable.

Upvotes: 1

Related Questions