![]() |
|
Модераторы: javastic, AntonSaburov |
![]()
|
|
| bevaine |
|
|||
|
Новичок Профиль Группа: Участник Сообщений: 2 Регистрация: 31.5.2006 Репутация: нет Всего: нет |
Здравствуйте, у меня возник такой вопрос. С отправкой СМС все ясно, скажите как определить было ли отправлено сообщение под средством написанного мидлета, тоесть пользователь нажал "Да", когда ему было предложено отправить СМС?
|
|||
|
||||
| eugine_s |
|
|||
|
Опытный ![]() ![]() Профиль Группа: Участник Сообщений: 581 Регистрация: 14.11.2007 Где: Киев Репутация: 17 Всего: 17 |
Я делаю вот так:
т.е. если произошла ошибка при отправке, то метод вернет false, иначе смс отправлено. А вот тут можно увидеть почему может возникнуть ошибка: send(Message) Declaration: public void send(javax.wireless.messaging.Message msg) throws IOException, InterruptedIOException Description: Sends a message. Parameters: msg - the message to be sent Throws: java.io.IOException - if the message could not be sent due to a network failure or if the connection is closed java.lang.IllegalArgumentException - if the message is incomplete or contains invalid information. This exception is also thrown if the payload of the message exceeds the maximum length for the given messaging protocol. One specific case when the message is considered to contain invalid information is if the Message is not of the right type to be sent using this MessageConnection; the Message should be created using the newMessage() method of the same MessageConnection as will be used for sending it to ensure that it is of the right type. java.io.InterruptedIOException - if a timeout occurs while either trying to send the message or if this Connection object is closed during this send operation java.lang.NullPointerException - if the parameter is null java.lang.SecurityException - if the application does not have permission to send the message |
|||
|
||||
![]()
|
FAQ раздела лежит здесь! |
| 0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей) | |
| 0 Пользователей: | |
| « Предыдущая тема | Java ME (J2ME) | Следующая тема » |
|
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |