• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WMA

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Quick! Before anybody notices! Cover it up with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic