private async void PhonebookMetaInfo3GBtn_Clicked(object sender, EventArgs e) { try { Log.Debug(Globals.LogTag, "Pb get meta info 3G start"); PhonebookMetaInfo3G info = await pb.GetPhonebookMetaInfo3G(); Log.Debug(Globals.LogTag, "Pb get meta info 3G success"); if (info == null) { Log.Debug(Globals.LogTag, "Pb meta info 3G is null"); return; } Log.Debug(Globals.LogTag, "Pb file type count: " + info.FileTypeCount); List <FileTypeCapabilityInfo3G> infoList = new List <FileTypeCapabilityInfo3G>(); if (infoList == null) { Log.Debug(Globals.LogTag, "File type info list is null"); return; } infoList = info.FileTypeInfo.ToList(); for (int i = 0; i < info.FileTypeCount; i++) { Log.Debug(Globals.LogTag, "capa.FileTypeInfo[" + i + "].FileType: " + infoList[i].FileType); Log.Debug(Globals.LogTag, "capa.FileTypeInfo[" + i + "].MaxIndex: " + infoList[i].MaxIndex); Log.Debug(Globals.LogTag, "capa.FileTypeInfo[" + i + "].TextMaxLength: " + infoList[i].TextMaxLength); Log.Debug(Globals.LogTag, "capa.FileTypeInfo[" + i + "].UsedCount: " + infoList[i].UsedCount); } } catch (Exception ex) { Log.Debug(Globals.LogTag, "Pb get meta info 3G exception: " + ex.ToString()); } }