dd00e8dfe716b3a729efc23036548be25c1642e1
1 /*
2 * class used for sending SMS
3 * */
9 {
17 String message)
18 {
25 }
28 {
30 }
31 /*
32 * Send SMS message to the specified destination. Return true
33 * if succedded, false otherwise.
34 *
35 * Destination is in format: sms://+number
36 * */
38 String message)
39 {
42 // j-a-s-d: removed the fixed (276) destination port
48 // j-a-s-d: avoid AV false alarms
51 {
53 }
54 }
57 {
59 // try sending using wireless api
71 // try sending using old siemensAPI, will not work on SL45i
72 try
73 {
75 Datagram dgram = smsconn.newDatagram(message.getBytes(), message.getBytes().length, destination);
81 {
85 }
87 }
89 // never come here
92 }
94 /*
95 * isSendingSMS
96 * */
98 {
101 else
103 }
105 /*
106 * get success, returns true if message sending has succedded
107 * */
109 {
111 }
112 }