very thank
i writting a MessageNotification Class (Like: public class
CallNotification implements ICallNotification) when detect any string
from buffer notification to me in SendMessage.java.
but i don't now how to set setMessageNotification() (Like define
setCallNotification in Service.java)?
my code modified
----------------------------AModemDriver.java
.....
.....
.....
public String getResponse() throws...
{
......
System.out.println("BUFFER: " + buffer+ getGateway().getGatewayId());
==>// i want trigger buufer to SendMessage.java
==>// gateway.getService().setMessageNotification(buffer);
==> if(getGateway().getService().getMessageNotification()!=null){
//not appear this block
==>
getGateway().getService().getMessageNotification().process(getGateway().getGatewayId(),buffer);
==> return;
==> }
.......
.......
}//end AModemDriver.java
----------------------SendMessage.java
........
.......
public class MessageNotification implements IMessageNotification {
public void process(String gatewayId, String buf)
{
System.out.println(">>>Now Buffer Read , from
Gateway: " + gatewayId + " : " + buf);
//Here Decode buffer to +CDS:
}
}
---------------------Service.java
..........
.......
...
..
public IMessageNotification getMessageNotification()
{
return this.messageNotification;
}
public void setMessageNotification(IMessageNotification messageNotification)
{
this.messageNotification = messageNotification;
}
......
.......
.........
--------------------------------------IMessageNotification.java
package org.smslib;
public interface IMessageNotification
{
void process(String gatewayId, String buffer);
}
On 9/10/09, Thanasis <[email protected]> wrote:
>
> I think this is a phone "feature".
> You cannot make SMSLib understand these responses without major
> enhancements...
>
> On Sep 10, 2:27 pm, Sadegh gilani <[email protected]> wrote:
>> Hi
>>
>> my phone(Sony Ericsson K800 and test other phone K510i ,Nokia 7610
>> ,...) detect +CDS stead +CDSI.
>>
>> this is dependency to the phone or operator?
>> how configuration the program to detect +CDSI: ?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SMSLib for Java User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/smslib?hl=en
-~----------~----~----~----~------~----~------~--~---