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

Miraclone Locksmith Cloner Cloning EEPROM LOADED
$8500.0
Miraclone Locksmith Cloner Cloning EEPROM LOADED picture1747-M13 ALLEN-BRADLEY SLC 500 EEPROM MEMORY MODULE SERIES A
$159.99
1747-M13 ALLEN-BRADLEY SLC 500 EEPROM MEMORY MODULE  SERIES A pictureUsb New Spi Eeprom Bios Universal Sp8-A Programmer Support 4000 V
$33.2
Usb New Spi Eeprom Bios Universal Sp8-A Programmer Support 4000 V pictureEZP2010 Bios Chip USB High Speed SPI Programmer Kit EEProm Flash 24Cx 25Cx 93C
$32.95
EZP2010 Bios Chip USB High Speed SPI Programmer Kit EEProm Flash 24Cx 25Cx 93C  picture25 SPI BIOS Writer Burner Chip USB Programmer 24 EEPROM CH341A Series
$2.94
25 SPI BIOS Writer Burner Chip USB Programmer 24 EEPROM CH341A  Series picture






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