Hi,
I'm trying to launch a speech call from my application. I didn't find any special function to do this, so I decided to launch the Phone app.
When I call the next function the Treo makes a soft reset ! and I don't find the problem :(
void MakeCall(char *phone_number)
{
Err err;UInt16 cardNo;
LocalID dbID;
Boolean newSearch;
DmSearchStateType stateInfo;
UInt32 type;
UInt32 creator;
Boolean onlyLatestVers;
char *AppName = "Phone";
UInt32 launchCode;
PhoneAppLaunchCmdDialType launchData;
newSearch = true;
type = ApplicationType;
creator = hsFileCPhone;
onlyLatestVers = true;
err = DmGetNextDatabaseByTypeCreator(newSearch,&stateInfo,type,creator,onlyLatestVers,&cardNo,&dbID);
if(err) return;
launchCode = phoneAppLaunchCmdDial;
launchData.version = 1;
launchData.confirm = false;
launchData.name = "";
launchData.number = phone_number;
launchData.extraDigits = "";
launchData.failLaunchCreator = appFileCreator;
launchData.failLaunchCode = sysAppLaunchCmdNormalLaunch;
launchData.failLaunchParams = "";
launchData.dialMethod = PhoneAppDialMethodNormal;
err = SysUIAppSwitch(cardNo, dbID, launchCode, &launchData);
}
I need some help !
Thanks, Fernando
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
