This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WMA

 
Hemant Sareen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
I am using WMA apis for sending SMS, but while sending an SMS a default alert screen pops up which ststes that "Send SMS?"..can i control the logical flow of this alert..say I want to perform something if a user presses "Yes" and something else if he chooses"No"....
Can anybody suggest...
thanks
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think if the user selects "No", the API will through a security exception. You can add in alternative code in the catch block. It is not very elegant but should work.
 
Hemant Sareen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for ur reply...Can I do somthing so that before sending the SMS this alert doesn't come at all...
thanks..
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Hemant Sareen:
Thanks for ur reply...Can I do somthing so that before sending the SMS this alert doesn't come at all...

I do not think you can disable the alert since it is a "security" feature put in by device manufacturers in the request of the wireless carriers.
Since sending SMS normally costs the user money, the user must be informed. Otherwise, the carrier could get sued and your application might be considered a "virus".
In MIDP v2, there is a much more elegant solution: developers can digitally sign their code. Once the user select to trust the digital signature, no more alerts will pop up. The trusted app can do anything on the user's behalf and the carrier will not be liable for any damage.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic