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.