I have login screen in android app which having 45 sec timeout period, it also shows the popup that 'Time out' but after that activity did't close or finish there on click of popup app crash
public HttpClient Client
{
get
{
if (_client != null) return _client;
var httpClient = new HttpClient(new NativeMessageHandler {UseCookies = false});
httpClient.BaseAddress = new Uri(ApplicationSettings.BaseServiceUrl);
httpClient.Timeout = TimeSpan.FromMilliseconds(45000);
return _client = httpClient;
}
}
public HttpClient ClientPreAuthenticated
{
get
{
if (_client != null) return _client;
var httpClient = new HttpClient(new NativeMessageHandler { UseCookies = false, PreAuthenticate = true });
httpClient.BaseAddress = new Uri(ApplicationSettings.BaseServiceUrl);
httpClient.Timeout = TimeSpan.FromMilliseconds(45000);
return _client = httpClient;
}
}
Suggest me any code for this to close this activity