SMS receiever I want answers and I want them NOW!
It's ridiculous!
BlackBerry rim give me a solution right now! I've had 15 hours straight so far and not luck is not cool.
using blackberry storm, and I simply want to receive text messages. I can send them using the following datagram code...
public void sendthisbull() {}
DatagramConnection connection = null;
try {}
String url = "sms://1510555560";
String messageAsString = "Hello World!";
ubyte bytes [] = messageAsString.getBytes ();
connection = Connector.open (DatagramConnection) (url);
Datagram in datagram = connection.newDatagram (bytes, bytes.length);
Connection.Send (datagram);
System.out.println ("I was sent");
}
{} catch (Throwable t)
System.out.println (t + "was a mistake").
}
{Finally
If (connection! = null) {}
try {}
Connection.Close;
}
catch (Exception e) {System.out.println (e + sending error"" ") ;}}
}
}
}
However when you use this beautiful "I swore, we wrote an article about her, but he just Plumb does not code."
_Dc = DatagramConnection
(DatagramConnection) Connector.Open("SMS://"); "
for (;
{
Datagram d = _dc.newDatagram (_dc.getMaximumLength ());
_DC. Receive (d);
ubyte bytes [] = d.getData ();
Address of string = d.getAddress ();
String msg = new String (bytes);
System.out.println ("received text SMS of" + address + ":" + msg);
}
nothing notta don't zip no not going not to pass dice get outta here!
It is the most frustrating, that I never treated and it's frustrating because text messaging
is a technology that we had during the last twelve years!
Now, if you please someone write a tutorial, make an existing application that will do 2 things.
Send and receive text messages.
I don't like who is doing... but the smsdemo does not work, does not speak a smsdemo is not it's smstrashbuggywe'renotdoneyet
That's what you call it.
Someone solve this confusion of cdma vs gms
If I understand well cdma can only receive datagrams multicast... thin k did it... and i ' ts does not
is there a specific port? just after this time $ 50,000 of Duke to the person who can post work
send/receive SMS code. Make the phone it's self of send a text message and post it!
I have more code... but it's not fair, I want answers now! NOW!
solve this problem and stop pretending to other positions is fixed... because it is not I can't receive anything!
Oh well, maybe it's good that I posted this, it will probably catch some attention users!
I have an important solution to this problem... and I'm the one who just posted like 10 minutes ago haha.
The following itself code will send a text message to show how send and receive text messages... He currently works on the Storm 9500! I don't know if it works on the Simulator and I don't really care either as the Simulator work also with things like the accelerometer etc. so for texting I test on the actual device. Here's the code...
import javax.wireless.messaging.*; import java.io.*; import java.util.*; import javax.microedition.io.*; import javax.microedition.midlet.*; import javax.microedition.lcdui.Display; import javax.microedition.io.file.*; import javax.microedition.io.DatagramConnection; import javax.microedition.io.Datagram; public class sms extends MIDlet implements MessageListener { public sms(){} public void notifyIncomingMessage(MessageConnection conn) { //please note in my code I did use a messagelistener prior to datagram //so I have no clue if using the messagelistener implementation //had anything to do with helping this thing to listen for messages //so i just left this here you can probably delete it though and not //implement MessageListener... //in which case it would be --> public class sms extends MIDlet{ // Dispatch a single-pass message processor for each // incoming message. // boolean _singlepass = true; // MessageProcessor mp = new //MessageProcessor(conn,_singlepass,newcanvas); } public void startApp(){ //in the startup I setup the listener and then sent the message using one //method ReceiveSms(); //notice at the end of ReceiveSms, it calls sendthisbull(); which //sends the message... } public void sendthisbull(){ //i'm leaving this as the title of my function as that's how frustrating //it was for this to actually work! DatagramConnection connection = null; try { //the url notice it doesn't have a port number.. //just saying cuz this might have something to do with it. String url = "sms://15108885462"; String messageAsString = "Hello World!"; byte[] bytes = messageAsString.getBytes(); connection = (DatagramConnection) Connector.open( url ); Datagram datagram = connection.newDatagram( bytes, bytes.length ); connection.send( datagram ); System.out.println("i was sent"); //here i actually changed stuff to my canvas so I could //know the text was sent } catch (Throwable t) { System.out.println(t + "had an error"); } finally { if(connection != null){ try{ connection.close(); } catch(Exception e){System.out.println(e + "error sending");} } } } public void ReceiveSms(){ _listener = new ListeningThread(); //_listener.setCanvas(newcanvas); if you guys wanted to add a canvas to //the listener you could do it using a method and pass it... _listener.start(); sendthisbull(); //send the text message...notice this is done after initializing the //listener } private static class ListeningThread extends Thread { private boolean _stop = false; private DatagramConnection _dc; //private MyTextMessageCanvas mycanvas; //if you want you can give yourself a canvas to display //wheather or not the phone got the message... //public void setCanvas(TextMessageCanvas thecanvas){ //mycanvas = thecanvas; //} public synchronized void stop() { _stop = true; //here you can put in code to get rid of the connection //for when you exit the app(); //maybe.. // try{ // if( _dc != null){ // _dc.close(); // } //} // catch(Exception e){System.out.println("error closing");} } public void run() { try{ //listening on port 0 I was able to receieve text messages... //however I will test without it and maybe that would also work.. DatagramConnection _dc = (DatagramConnection)Connector.open("sms://:0"); for(;;) { //probably add in this stop code... taken from smsdemo //but I didn't use it when it worked so *shrugs* //if (_stop){ // return; //} Datagram d = _dc.newDatagram(_dc.getMaximumLength()); _dc.receive(d); byte[] bytes = d.getData(); String address = d.getAddress(); String msg = new String(bytes); // mycanvas.sayHi(msg + "he'd wrather have"); //I made a canvas and changed a string and repainted() //so I could know when the text message was receieved... } } catch(Exception e){} } }
Tags: BlackBerry Developers
Similar Questions
-
I made a new account of BB ID as suggested:
Now what?
If you do a new BB ID, and you are ready to use it, you will need to do a wipe of security on your Z10 because your old ID BB will always be associated to your phone.
To do a security wipe, slide down on your home screen and follow the settings > Security and privacy > Security wipe and follow the instructions. Note that all of the data associated with your old BB ID (contacts, paid apps BlackBerry World, etc.) will be lost and you will essentially be start over from the beginning.
I hope that helps you.
-
How to stop emails to post my Apple Watch? I don't want them to go to my iPhone and ipad
I had to have my Apple Watch reset to the Apple Store and after that my emails on my Apple Watch while previously they weren't and I don't want them now.
is how they just turn them off on my watch? Can I make my iPhone or my Apple Watch?
Thank you
Hello
To no longer receive notification on your Apple Watch e-mail alerts:
-On your iPhone, in the application of Eve, go to: My Watch (tab) > Mail > select custom (instead of mirror my iPhone) > sub alert, disable alerts to show.
-
I forgot my answer to the security question, now I want to change my answer and to change their application asks me for my old answer which I forgot how can I change my answer to my security questions
When I had the same problem, I used the solutions here If you have forgotten the answers to the security of your questions - Apple Support Apple ID
-
I forgot my secret question, answer and the second email but I have the password of my ID Apple and my phone number. I want to receive by email for my secret to my Apple ID issue because it is a gmail account. Please help me
You have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(139026) -
. I have connected my phone3g to itunes and it asked if I want to improve, and I agreed. Now, the phone is locked, indicating that my sim card is not supported. What can I do? Can I uninstall the upgrade and bring him back as it was?
Please help my phone is now dead.
Thank you
Your question has already been answered twice. Asking again will not change the answer.
-
I want to see the metrics around email opens, clicks, unsubscribe, bounce and form submit them? who report I should date?
Hello
You can extract Email Analysis Overview report see E-mail openings, clicks, unsubscribe, bounce and form submit them.
Thank you
-
Hello
I create my web and download it to Dreamweaver, but it came as I wanted. Now, I need to change the page, but it does not allow me to do so because that is block need help
First, set the folder of your site. Go to Site > new Site > tell DW where to save files to the local site.
http://layersmagazine.com/defining-site-Dreamweaver.html
Nancy O.
-
Hi, well, I want to get the creative cloud cuz I need for my career as urgent, but I will change my phone soon, so my question is... can I install in my pc, and then move them to another without paying again or something?
Yes.
You can install an unlimited number of computers. You can connect to up to two computers at any time (and you must be connected to use your cc programs).
It's quick and easy to sign in and out, so there is no downside on the use of the cc on different computers. legally, only the licensee is authorized to use the subscription of the cc if you can't share your programs with another person, but this is the only restriction.
you have just installed you are the application of cc desktop on any computer you use, Download Adobe Creative Cloud apps | CC free trial Adobe
Connect, connect and disconnect activate Cloud Creative applications
Use the desktop application to install your programs of cc.
-
Using Lr test, I managed to copy photos in the Catalogue and in development. Now, I want to use the photo developed/published as master and delete the original. So using the "modified" as the new source version. What is the process to do this?
This is to manually remove the master files. But are you sure you want to do this? Especially if these files are raw files? If you do, you throw a lot of precious image data. Remember that the main files are completely intact and in their original state at any time. The catalog stores all the changes that you make. But if you really want to delete your master files, you need just to delete them individually or as a group.
-
When I log into Windows Live Mail I get the following message: "you have unsent messages in your Outbox. You want to send them now? Yes or no,"that does this every time as I have disconnect. I look in my Outbox and there aren't waiting for messages. How can I get rid of this pop up?
Hi LarryMorton,
Thanks for posting your question in the Forum of the Microsoft answers Site. Your question would be better addressed by experts in the in Forum Windows Live Mail. Please repost your question here,
-
When I click on anything it either in the Outlook Express Preview window to stop answer and I have use the ctrl-alt-del combination for her all over again. Anyone out there have the same problem? If so what did you do about it.
Original title: I'm under Oulook Express 6 Windows XP Home SP3 environment.
Bruce:
The problem has been fixed (I think) but in a most unusual way. Let me explain.
When I was closing down to give the computer a rest yesterday, there was a pop up saying that vprotector expected to close. He really wanted the process of closing until I clicked on finish the process. Curious to know what vprotector is, I searched on the net and got a lot of shots, saying: it is a virus and should be deleted pronto. So I searched the hard drive for the vprot. * and found in the folder program files for AVG!
I then went to AVG to see if it's really a part of AVG and they said yes. If there is a problem with vprot, the toolbar is at fault and needs to be reinstalled. There was one click here to download and run the part of the program to fix the problem. However, I had WebRoot antivirus running that stopped the download of this program as a virus. Because I trust AVG, I've disabled WebRoot and reinstalled the AVG search bar.
I haven't restarted WebRoot and computer flying along as it should, and OE is the link to IE when I click on a link as it has always done.
Seems to me to be the faulty AVG toolbar and a cross with two virus programs upward was at fault. Thank you for your time. Your reply gave me a chance to think differently this problem could arise.
Computers are really complicated machines and we have to be complicated to deal with their problems.
Thanks again,
Fred
-
Want theme Windows 8 on Windows XP
Original title: * e-mail address is removed from the privacy *.I want the theme windows 8 on my windows xp
so you gave me a theme?Hi saadmurtaza,
According to the description provided you want to know how to install a Windows 8 Windows XP theme.You may need to use the favorite search engine and enter the string like 'Theme Windows 8 Windows XP' and check:Note: Using third-party software or the link, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third party software or link can be resolved. Using third-party software, or the link is at your own risk.
Hope this information helps. If you need additional assistance, do not hesitate to answer and we will be happy to help. -
Problem with computor saying "not responding" and lock, any ideas please.
Problem with computor saying "not responding" and lock, any ideas please.
Provide you any other information. You have to give to get when it comes to troubleshooting.
Given that don't even give you an operating system - replace the defective hardware. ;-)
What specific operating system you use? Include the service pack level and architecture (SP1, SP2, SP3... (32 - bit or 64 - bit?)
I'm guessing that has happened since the first day - of a lifetime of computers - what happened between he works and does not? New software installed? All new hardware installed or attached?
Did you * nothing * to try to remedy the situation? If so - what?
Be specific. Ignore the cameras, microphones and remote viewing software, we have installed in your home, clothing and computer. Pretend that we do not understand what you do and save it for future reference. * smile * (should be easy - we don't have).
Stuff in general, you could do (as long as you use a Microsoft Windows Operating System after the year 2000...)
Search for malware:
Download, install, execute, update and perform analyses complete system with the two following applications:
Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)
Search online with eSet Online Scanner.
The less you have to run all the time, most things you want to run will perform:
Use Autoruns to understand this all starts when your computer's / when you log in. Look for whatever it is you do not know usingGoogle (or ask here.) You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.
You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory. This can help you to identify applications that you might want to consider alternatives for and get rid of all together.
Update your drivers for hardware devices from the manufacturer themselves - do not use the built-in features of Windows. If you want, come back and let us know a bit more information on your system - particularly the brand / model of the system, you have - and maybe someone here can guide you to the place s x of law to this end. This isn't 100% necessary - but I'd be willing to bet that you would gain some performance and features in making this part.
-
Original title: nero 7 and nero 9
I have nero 7 installed on my xp computer, I want to now upgrade to nero9, uninstall Nero 7?Ask the support of Nero or their forums or knowledge base. This has nothing to do with the topic of this forum, installation, upgrade and activation of Windows XP.
Maybe you are looking for
-
Hello. I wonder if there is a way to make your ringtone change after some time has passed, as midnight. Because of my work, I sometimes end calls, anywhere from midnight to early in the morning. My problem: I'm a heavy sleeper. I wonder if there is a
-
Can I install HD 2nd on Tecra A10?
I would like to know if it would be possible to install 2 HD on Tecra A10 without losing the CD drive Bay? I know that this is possible on computers laptops 17 "and I noticed it's Qosmio F50 - 10Z 15" laptop has two hard drives. Thanks in advance.
-
How to make recovery disks?
I have a HP Pavilion p7-1539 and you want to make recovery disks. I need instructions step by step please. Since I had so much trouble with the latest model of Pavilion, I thought I got better go now before something happens to this computer.
-
Stop listening tcp and tcp read
Hi all If I use tcp and tcp listening read blocks with a time of judgment-1, how to prevent their execution if they are waiting for incoming connection or data? The read block tcp is in a while loop and the State of the stop button is not evaluated,