public async void InitializeCallingInfoAsync()
{
MonitorCallState();
//Get all phone lines (To detect dual SIM devices)
var getPhoneLinesTask = GetPhoneLinesAsync();
AllPhoneLines = await getPhoneLinesTask;
//Get number of lines
NoOfLines = AllPhoneLines.Count;
//Get Default Phone Line
var getDefaultLineTask = GetDefaultPhoneLineAsync();
CurrentPhoneLine = await getDefaultLineTask;
}
private static async void TimerStarter() { await LocationAccesser(); /*Message Sending Methods */ if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("FirstContactNumber")) { return; } _phonenumber = ApplicationData.Current.LocalSettings.Values["FirstContactNumber"] as string; MessageSender(_phonenumber); if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("SecondContactNumber")) { return; } _phonenumber = ApplicationData.Current.LocalSettings.Values["SecondContactNumber"] as string; MessageSender(_phonenumber); if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("ThirdContactNumber")) { return; } _phonenumber = ApplicationData.Current.LocalSettings.Values["ThirdContactNumber"] as string; MessageSender(_phonenumber); TwitterPoster(); //FacebookPoster(); if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) { return; } var spineClass = new SpineClass(); spineClass.InitializeCallingInfoAsync(); }