02-25-2010 06:48 AM
hi All
how i can get address of specific sms after select?
regards
savi
02-25-2010 07:16 AM
what do you mean with select? in the message window on the blackberry you could only retrieve it using an applicationmenuitem and its context.
02-25-2010 07:20 AM
TextMessage sms
String phoneNumber = sms.getAddress();
02-25-2010 07:41 AM
how i can reterive it using applicationmenuitem?
i have added one menu in custom menus.if i select specific sms and click on my added menu then address of that sms should come...can you guide me?
savi
02-25-2010 07:52 AM
public class smsMenu extends ApplicationMenuItem{
public MessageMenuItem(int order)
{
super(order);
}
public Object run(Object context)
{
if(context instanceof TextMessage){
TextMessage sms = (TextMessage)context;
String phoneNumber = sms.getAddress();
String Body = sms.getPayloadText();
Date receivedDate = sms.getTimestamp();
}
}
02-26-2010 02:11 AM
hi.....
this is code is working but how i can check in simulator?can you tell me any idea?
how i can check through simulator?
savi
02-26-2010 05:49 AM
hi mbasheerk
thanks you , finally i got it..
kudos for you ![]()
savi