BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 10-15-2007, 04:57 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Model: 8707v
Carrier: c
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Sms api how put the phone number

Please Login to Remove!

Hi,
I want to send a sms from my app with the api.
I use this code:

" Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(MessageArguments.ARG_NEW_SMS)); "

But I want to put the phone number directly for when the sms screens appears, the phone number is write there.

AnyOne know how can I make it?

Thanks in advance
Offline  
Old 10-15-2007, 05:36 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

if you want to use the sms-application of the device you have to work within its limits.

you can send a sms on your own though.

code to send the message 'msg' to the number 'number' :

Code:
 MessageConnection _dc = (MessageConnection)Connector.open("sms://"+number);                 
            Message sms = _dc.newMessage(MessageConnection.TEXT_MESSAGE);
            TextMessage sms2 = (TextMessage)sms;
            sms2.setPayloadText(msg);                        
            _dc.send(sms2);
hth,
simon
__________________
java developer, Devinto, hamburg/germany

Last edited by simon.hain : 10-15-2007 at 05:37 AM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

MEMORY CHIPS different models. Buy many for combined shipping saving.
$1.0
MEMORY CHIPS different models. Buy many for combined shipping saving. pictureMEMORY CHIPS different models. Buy many for combined shipping saving.
$1.0
MEMORY CHIPS different models. Buy many for combined shipping saving. picture10PCS 24C02CP Encapsulation:DIP-8,I2C Serial EEPROM
$5.0
10PCS 24C02CP  Encapsulation:DIP-8,I2C Serial EEPROM picture5PCS 24C02CP Encapsulation:DIP-8,I2C Serial EEPROM
$5.0
5PCS 24C02CP  Encapsulation:DIP-8,I2C Serial EEPROM picture175-PCS IC M93S46-WMN6 EEPROM 1KBIT 2MHZ 8-PIN SO ST MICRO 93S46WMN6 M93S46WMN6
$47.6
175-PCS IC M93S46-WMN6 EEPROM 1KBIT 2MHZ 8-PIN SO ST MICRO 93S46WMN6 M93S46WMN6 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.