Hello,
Welcome to Microsoft Q&A!
We can create a new class inherit from the abstract class TelephonyManager.CellInfoCallback
, and override the method OnCellInfo
inside the new class .
Check the code below
public class MyCallBack : TelephonyManager.CellInfoCallback
{
public override void OnCellInfo(IList<CellInfo> cellInfo)
{
//here get cell info
}
}
TelephonyManager tm = (TelephonyManager)this.GetSystemService(TelephonyService);
tm.RequestCellInfoUpdate(MainExecutor, new MyCallBack());
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.