每次进入MMS都会执行进入函数 meaActivateStartupFsm,在这个函数 里面可以对free space进行修改:
void meaActivateStartupFsm(void)
{
//在这个函数最开始添加判断popup
U64 totalFolderSize = 0;
totalFolderSize = msm_get_disk_free_space(WAP_STORAGE_MMS);
if(totalFolderSize < 10 * 1024)//10K
{
DisplayPopup((PU8)GetString(您需要提示的string ID), IMG_GLOBAL_ERROR, 0, 2000, ERROR_TONE);//在这里可以定义时间和声音。
}
……
}
void meaActivateStartupFsm(void)
{
//在这个函数最开始添加判断popup
U64 totalFolderSize = 0;
totalFolderSize = msm_get_disk_free_space(WAP_STORAGE_MMS);
if(totalFolderSize < 10 * 1024)//10K
{
DisplayPopup((PU8)GetString(您需要提示的string ID), IMG_GLOBAL_ERROR, 0, 2000, ERROR_TONE);//在这里可以定义时间和声音。
}
……
}