Interviewer And Interviewee Guide

Brew Interview Question:

How to obtain the phone number of the device on which my application is running?

Submitted by: Administrator
An application can obtain the phone number of the device on which it is running by calling ITAPI_GetStatus(). The phone number is in TAPIStatus.szMobileID.

For example:

TAPIStatus tapiStat;

if (ITAPI_GetStatus(pMe->p_tapi, &tapiStat) == EBADPARM) {

DisplayOutput((IApplet*)pMe, 6, "TAPI Status fetch failed");

}

DisplayOutput((IApplet*)pMe, 4, "Mobile ID:");

DisplayOutput((IApplet*)pMe, 5, tapiStat.szMobileID);
Submitted by: Administrator

Read Online Brew Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.