Hi,
I'm using S60, 5th Edition 0.9 SDK and I'd like to send a short message thru the provided API with the following code
Initialization of the ServiceObject; works fine
<code javascript>
try{
// get instance from device.
so = device.getServiceObject("Service.Messaging", "IMessaging");
}
catch(ex)
{
alert("Error Creating ServiceObject for Messaging:" + ex);
}
</code>
During Sending the MMS I get the 'TypeError: Type Error' expetion; actually the emulator shows the pop-up "MMS sending completed"; changing between sychnroous call or asychn and SMS or SMS do not make a difference.
<code javascript>
try{
// create a new SMS to buy the ticket
var criteria = new Object();
criteria.MessageType = "MMS";
criteria.To = "+43xxxxxx";
criteria.BodyText = "some String";
var resultSMS = so.IMessaging.Send(criteria, smsCallBack);
alert("Result SMS: " + resultSMS);
}
catch(ex)
{
alert("Error doBuy(): " + ex);
}
</code>
any idea? cheers, geri-m

Reply With Quote

