
Originally Posted by
sumit.rathi
I think while charging you can't vibrate your phone. May be it is the reason.
hi,
i have used the below written code for disabling vibration alert while charging phone.But this code is not working.please help me...
Code:
CTelephony::TBatteryStatus batteryStatus = iBatteryInfoV1.iStatus;
TUint chargeLevel = iBatteryInfoV1.iChargeLevel;
if(chargeLevel!=iTelephony->EBatteryConnectedButExternallyPowered)
{
iVibrate = CHWRMVibra::NewL();
CHWRMVibra::TVibraStatus iStatus = iVibrate->VibraStatus();
CHWRMVibra::TVibraModeState iState = iVibrate->VibraSettings();
iVibrate->StartVibraL(1000, 100);
}