Outgoing SMS disappears in the air
Hello
I send an SMS of my application, but no one ever gets it. No exception is thrown, and the results are expected, but no SMS arrives.
I open my connection as follows:
c = (MessageConnection) Connector.open("sms://:0"); c.setMessageListener(this);
Then later in my code, I try to send an SMS:
TextMessage txtMessage = (TextMessage) c.newMessage(MessageConnection.TEXT_MESSAGE); txtMessage.setAddress("sms://" + number); txtMessage.setPayloadText("Test"); c.send(txtMessage);
number is the number in international format (number is the final string type). The second part is called from a new thread that is started from the implementation of the a PhoneListener callConnected. Something like this:
public void callConnected(int id) { // spawn new thread with above code and start() it }
If I don't spawn the thread, I get an exception from thread to send. The code above generates no errors, but no SMS.
Can anyone make a suggestion?
Concerning
Lionel
Hello
Thank you for your info once more, I actually just thought to it. SMS code works very well, but there were "", sorry for my ignorance.
Concerning
Lionel
Tags: BlackBerry Developers
Similar Questions
-
why I can't download and save the files to my laptop... it disappears in the air... I have windows vista and ie8... Please help I'm going crazy... this laptop is my work tool... Thank you.
Hello locness2411,
Have you checked your download folder? Also you can put where you want to save a file to the desktop as, for example. Take a look at these links: http://www.tweaklibrary.com/Software_Applications/Internet-Explorer/27/Set-default-download-path-of-Internet-Explorer/10153/ or http://www.windowsreference.com/internet-explorer/how-to-change-the-default-download-directory-for-internet-explorer/ that can help you in what you want to change. Hope this helps you. Let us know anyway. Make it a great day!
"And in the end the love you take, is equal to The Love You Make" (The Beatles last song from their latest album, Abbey Road.)
-
Why send show and then disappear in the air
my email will be the list of messages and then disappear ito thin air. where they're going and they are retreivable
Windows Mail? View | Current view. Make sure that show all Messages is selected for each folder and nothing else.
-
SMS for outgoing SMS listener throws IOException immediately after the open call
I had already created a class for sending SMS messages which worked perfectly until I added the listener. When the listener is added as soon as I start the thread throws an IOException exception who am I hurting? The only thing I can think is some kind of wire problem, please help.
Here's the SMS & Listener class:
private static final class SmsMessage { private String _address; private String _msg; public SmsMessage(String address, String msg) { _address = address; _msg = msg; } public Message toMessage(MessageConnection mc) { TextMessage m = (TextMessage)mc.newMessage(MessageConnection.TEXT_MESSAGE,"sms://" + _address); m.setPayloadText(_msg); return m; } } // SmsMessage private final class SendThread extends Thread { private static final int TIMEOUT = 500; // ms private Vector _msgs = new Vector(10); // Queue of 10 private volatile boolean _start = false; // queue requests public synchronized void send(String address, String msg) { _start = true; _msgs.addElement(new SmsMessage(address, msg)); } public synchronized void stop() { _stop = true; try { if ( _mc != null ){ _mc.close(); } } // catch (IOException e ) { catch (Throwable t) { t.printStackTrace(); System.exit(0); } } public void run() { try { //closed by the stop() method _mc = (MessageConnection)Connector.open("sms://"); if (_mc != null) { // set a listener to trap outgoing sms messages _mc.setMessageListener(new OutboundSMSListener()); } for(;;) { while( !_start && !_stop) { try { sleep(TIMEOUT); } // catch (InterruptedException e) { catch (Throwable t) { t.printStackTrace(); System.exit(0); } } if ( _stop ) { return; } while(true) { try { SmsMessage sms = null; synchronized (this) { if ( !_msgs.isEmpty() ) { sms = (SmsMessage)_msgs.firstElement(); // take it out of the queue once we sent it _msgs.removeElement(sms); } else { _start = false; break; } } _mc.send(sms.toMessage(_mc)); } // catch (IOException e) { catch (Throwable t) { t.printStackTrace(); System.exit(0); } } } } // catch (IOException e) catch (Throwable t) { t.printStackTrace(); System.exit(0); } } } // SendThread private static final class OutboundSMSListener implements OutboundMessageListener { public void notifyIncomingMessage(MessageConnection messageconnection) { // we don't care about incoming sms messages right now } public void notifyOutgoingMessage(Message message) { Dialog.alert("Detected An Outgoing SMS Event"); } }
Thank you. Makes sense.
-
Is it possible to increase the speed of the fan, my laptop is not hot enough?
In other words, it must be controlled by the motherboard. Points to check are all the ventilation grids which allow the air make sure they are free of lint, pet hair, dust, etc. If there are panels that can be removed (as for the HDD or RAM upgrades), delete and wipe any dust, etc, from there. With the panels off, get a can of air spray to Wallyworld, Staples, etc. and blow through the orifices of evacuation to the inside. That should dislodge from the heat sink.
After a thorough cleaning, the outgoing air should be slightly cooler. Keep in mind that the more stressed the CPU and GPU are, more air is exhausted. If you think there might be a problem, there are a number of utilities that will control the fan speed and the different system temperatures:HWMonitor http://www.cpuid.com/hwmonitor.php
CoreTemp http://www.alcpu.com/CoreTemp/
Http://www.almico.com/sfdownload.php fan speed (also allows the fan control)If you used to use the laptop on your lap, you can think about getting one of the aprons to put on; very often, during its use on the knees, some of the Airways under may be blocked by your pants, causing overheating. I had a Logitech, which has a sliding mouse (I can't stand the touchpad), and it has helped tremendously with my gateway heat problem.
SC Tom
-
Is there a way to block outgoing SMS?
Hello
Implement SMS.addSendListener () and return false in the sendMessage method.
-
BlackBerry Smartphones SMS disappeared! Help please!
This is my first Blackberry, so please excuse any ignorance or stupidness! I got my BB around a month ago and I noticed that my texting more than three weeks have now disappeared. The names of the people I sent a text message / texting me are still there, but when I open them there is nothing there. Is it normal for a BB? Text messages vanish after a month or two? It is abit annoying to say the least! And if this isn't normal then someone at - it advice and assistance to put this right?
Very appreciated
Thank you
CAT
There is a setting that auto removes once a certain period... default is 3-4 weeks I think.
makes sense.
While your in your sms Inbox, go to your options-> General options-> bottom of page.
-
Help - why print sequence is off the air?
Hi all
I have experimented with a copy of the help system a customer at the same time RH7 w/packer and the RH8 trial, generate output for the help of AIR format. After generating & the .air package and look a new help file .exe, I point out the following: click on the drop down next to the icon print and three options are listed (print this page, the sequence of Print, print all help). Whatever the selection below, print sequence is always unavailable (gray). This is the case when I generate with both versions. Did I miss something in the settings?
Thank you
Katie
Katie Carver
Senior technical editor
Doc-to-You, LLCThank you, Peter & Rick and sorry for posting and before disappearing! (Bill Murphey... begin to solve the problems and a higher-priority task inevitably lands in turn moments later.)
Rick, your explanation was very helpful to ensure that I had missed something. I didn't, but for some reason, compiling the WebHelp to a different folder did the trick. (I had been doing the active boxes coming did nothing even if I was selecting the subjects that were in the middle of sequences to browse legitimate.)
Now that I have compiled the WebHelp to another folder, browse sequences work. I ran the new AIR Conditioner (overwriting my existing .air file), and the printing sequence feature also works.
Thanks again for the troubleshooting help and have a great day!
Katie
-
Updated my phone to iOS 10.0.2. The auto lock feature disappeared from the General settings. Where is it now?
You will find the auto lock settings in settings > display and brightness.
-
Everyone noticed after the OS updated 10.0.1 update game Center disappeared from the desktop to your iPhone?
The Game Center app is pre installed and can not be deleted if use Spotlight to find it. Help here > use the search on your iPhone, iPad or iPod touch - Apple Support
-
My App Store icon has disappeared from the screen of my iPhone5s. How can I gt it back?
My App Store icon has disappeared from the screen of my iPhone5s. How can I find?
Check: Settings - general - Restrictions - installation Apps =?
-
SHIFT key does not work on the bluetooth keyboard connected to the Air ipad on ios 10
the ipad reboots when we use the uppercase key on the air of the iPad. And in some cases, it shows the changing language selection when the SHIFT key is pressed. The keyboard is perfectly fine and works with ipads o
I also have the same problem.
I use 2 keyboards, Bluetooth,
A wireless Apple keyboard - I mean Magic Keyboard
The other is universal foldable keyboard from Microsoft
After updating iOS 10.0.1, Caps Lock does not work, but change language or restart the iPad or it's like restarting the application (kick out of the home screen),
I thought it happened to MS only the product, but when I connected my Apple Magic Keyboard, the same thing happens!
Difficulty please, Apple!
-
Thank you for contact I can not access my ipad air disable I try to reboot same issue pleas help me I have a lot of data in the air from my ipad
Here you will find a way how to activate your iPad If you have forgotten the password for your iPhone, iPad, or iPod touch or your device is disabled - Apple supports
-
Hi, I upgraded to El Capitan yesterday and all the contacts in my address book Thunderbird disappeared. The AddressBook is completely empty. In addition, he didn't even address on the left hand books, for example "personal address book" etc. My contacts are stored on my computer? If so, where they are located and how can I get back to my address book? I've been adding contacts for a few years. When I compose email, email addresses are auto-fill in the field of composition, so it seems they are still out there? Thank you.
Open the address book window.
Select the Directory to display-layout pane
Not better?
-
Add-ons - disappeared in the Addon menu
All my modules seem to have disappeared from the menu add-on. They are always installed, but do not appear in the menu. The newly installed modules appear fine.
The problem seems to have disappeared when I upgraded to Firefox 41
Maybe you are looking for
-
When I go to the Tools menu, there is no option for private browsing. The option was there earlier today, when I used version 19 / something (I checked the version when another computer in the Office has updated firefox and had the same problem) when
-
When I select a favorite web page, it will put the web address in the address bar and it works perfectly. Thank you
-
The update is dated September 14, 2009, and is supposed to provide the audio volume slightly increased.
-
Veriton X2611G impossible for recovery windows 7 BIOS due
Due to a virus I had to format the hard drive and now I have to reinstall the operating system (windows 7 Professional) on my PC Veriton X2611G.SHIFT + F10 at startup, does not start.I created the recovery with management of the recovery disks, but:-
-
How can I delete a domain name?
I'm unable to connect to the computer, because it has a domain name. I was able to change the username and password via the installation but now I'm stuck... I was given a computer from the Organization of the community I do volunteer work 3 days a