Sending and receiving sms problem

Hi,
I try to send and receive message with this command;
MessageConnection conn = (MessageConnection) Connector.open("sms://" + addr);
When I run this command, I meet this error:
java.lang.UnsatisfiedLinkError: isNetworkMonitorActive
     at javax.microedition.io.Connector.isNetworkMonitorActive(Native Method)
     at javax.microedition.io.Connector.<clinit>(Connector.java:142)
     at com.sezo.smsyeni.Sms.sendText(Sms.java:36)
     at com.sezo.smsyeni.Sms.main(Sms.java:24)
I want to send sms over IR with my phone. (Sony Ericsson K500i)
Is it necessary to use any API?
What should I do?
Thanks.

Hi Friends,
I'm new in the J2ME domain. I did try to send SMS from my desktop application to mobile. But at runtime I'm getting the following error:-
++++++++++++++++++++++++++++++++++++++++++
java.lang.UnsatisfiedLinkError: isNetworkMonitorActive
at javax.microedition.io.Connector.isNetworkMonitorActive(Native Method)
at javax.microedition.io.Connector.<clinit>(Connector.java:142)
at MessageSender.main(MessageSender.java:12)
+++++++++++++++++++++++++++++++++++++++++++++++
Please let me know what all setup/configuration/dll are required to resolve the problem. Appreciate your input.
Thanks and Regards,
-AshokM

Similar Messages

  • My iphone 4 did not make call. It can receive calls, send and receive sms, internet is working. How can I solve this problem?

    My iphone 4 did not make calls but I receive calls, send and receive sms, emails, etc. How may I solve it?

    I am having the same problem with ios 4.3.5

  • My iPhone5 cannot send and receive SMS using latest iOs. How can this problem be solved?

    my iPhone5 cannot send and receive SMS after I updated it to iOs 6.0.2. It used to be able to function normally when it was still using iOs 6.0.1.

    Since SMS/MMS is exchanged via your carrier's cellular network only, contact your carrier.

  • Send and receive SMS

    Hello!
    Please, can anyone tell me how can I create an application which send and receive SMS at the same time.
    I�ve got an GSM modem. This application must run under Linux. I did it with Windows 98 and it ran fine, but when I try run it under linux I only can send or receive, but not both. I think this is because there are problems with threats ( I'm not sure ), when I created a ServerSocket to accept the socket connection to send messages.
    I don�t know how resolve the problem. I attach the code here:
    import java.io.*;
    import java.util.*;
    import javax.comm.*;
    import java.net.*;
    public class SimpleRead implements Runnable, SerialPortEventListener {
    static CommPortIdentifier portId;
    static Enumeration portList;
    final static String CR_LF="\r";
    final static String AT_ENVIAR="AT+CMGS=";
    final static char CTRL_Z = 26;
    final static String AT_RECIBIR="AT+CMGR=";
    final static String AT_BORRAR="AT+CMGD=";
    InputStream inputStream;
    OutputStream outputStream;
    SerialPort serialPort;
    Thread readThread;
    Thread sendThread;
    Send s ;
    public static void main(String[] args) {
    portList = CommPortIdentifier.getPortIdentifiers();
    while (portList.hasMoreElements()) {
    portId = (CommPortIdentifier) portList.nextElement();
    if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
    if (portId.getName().equals("/dev/ttyS0")) {
    SimpleRead reader = new SimpleRead();
    }//fin while
    }//fin m�todo main
    public SimpleRead() {
    try {
    serialPort = (SerialPort) portId.open("SimpleReadApp", 2000);
    }catch (PortInUseException e) {}
    try {
    inputStream = serialPort.getInputStream();
    outputStream = serialPort.getOutputStream();
    }catch (IOException e) {}
    EscuchaSocket es = new EscuchaSocket(outputStream);
    sendThread = new Thread(es);
    sendThread.start();
    try{
    Thread.sleep(5000);
    }catch(InterruptedException e){}
    try {
    serialPort.addEventListener(this);
         }catch (TooManyListenersException e) {}
    serialPort.notifyOnDataAvailable(true);
    try {
    serialPort.setSerialPortParams(9600,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);
    }catch (UnsupportedCommOperationException e) {}
    readThread = new Thread(this);
    readThread.setPriority(Thread.MIN_PRIORITY);
    readThread.start();
    }//fin SimpleRead
    public void run() {
    try {
    while(true){}
    } catch (Exception e) {}
    public void serialEvent(SerialPortEvent event) {
    switch(event.getEventType()) {
    case SerialPortEvent.BI:
    case SerialPortEvent.OE:
    case SerialPortEvent.FE:
    case SerialPortEvent.PE:
    case SerialPortEvent.CD:
    case SerialPortEvent.CTS:
    case SerialPortEvent.DSR:
    case SerialPortEvent.RI:
    case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
    break;
    case SerialPortEvent.DATA_AVAILABLE:
    byte[] readBuffer = new byte[20];
    try {
    while (inputStream.available() > 0) {
    int numBytes = inputStream.read(readBuffer);
    System.out.print(new String(readBuffer));
    }catch (IOException e) {}
    break;
    }//fin switch
    }//fin m�todo serialEvent
    }//fin clase
    class EscuchaSocket implements Runnable{
    ServerSocket sv = null;
    OutputStream outputStream;
    Send send;
    int puerto = 7117;
    public EscuchaSocket(OutputStream out){
    outputStream = out;
    send = new Send (outputStream);
    try {
    sv = new ServerSocket(puerto);
    }//fin try
    catch (IOException ie) {
    System.out.println("Error en run de EscuchaSocket:"+ie.toString());
    }//fin catch
    public void run(){
    while(true){
    try {
    Socket sc = sv.accept();
    BufferedReader inSocket = new BufferedReader(new InputStreamReader(sc.getInputStream()));
    String leida = "";
    int c = 0;
    while((c = inSocket.read()) != -1)
    leida = leida + (char)c;
    if(!leida.equals(""))
    send.sendString(leida);
         inSocket.close();
    }catch (IOException ies) {
    System.out.println("Error al leer del socket:"+ies.toString());
    }//fin catch
    }//fin while
    }//fin run
    }//fin clase
    class Send{
    OutputStream outputStream;
    public Send(OutputStream out){
    outputStream = out;
    public void sendString(String s) {
    try{
    System.out.println("s:"+s);
    outputStream.write(s.getBytes());
    outputStream.flush();
    }catch(IOException ioe){
    System.out.println("Error en sendString:" + ioe.toString());
    }//fin m�todo sendStirng
    }//fin clase

    To send and recv on the same pipe, I suggest a thread to handle the socket... as you are doing in your code, then create a thread reader and writer for the I/O ( one for input, one for output ). Run your thread and buffer commands/messages/whatever to a byteoutput stream, then when the thread wakes up, it reads the buffer and writes the bytes to a dataoutput stream. The reader will work the same way but you only need to buffer for each command. Of course there are little gotchas along the way, but it's fun programming....
    zorkle.

  • Is there a way to send and receive SMS on multiple cellular devices without using iMessage?

    I currently own a cellular iPad mini and an iPhone 4s and would like SMS to be the same on both devices as well as my desktop.
    After many months of struggling with iMessage, I decided to turn it off entirely.  I discovered that my best friend did not receive dozens of my texts over the span of a few months (I compared our message history side by side).  Seems like it had something to do with traveling in and out of wifi zones or possibly conflicts between our two carriers, ATT and Verizon.  Regardless, I am not willing to dive into iMessage fully until this gets sorted out.  Further, SMS is the standard message format for everyone outside of the Apple sphere, and I do not feel comfortable lumping them together into one app.  If I decide to switch to Android, will all of my contacts with iPhones continue sending me iMessages?
    Thank you for your help!

    Is there a way to send and receive SMS on multiple cellular devices without using iMessage?
    Search the iTunes App Store for any 3rd party SMS apps that may be available.
    If I decide to switch to Android, will all of my contacts with iPhones continue sending me iMessages?
    Android phones don't receive iMessages, they can recieve SMS messages sent through the iOS Messages app. The app that your contacts choose to use to send you messages is completely up to them.

  • Send and received sms using sony ericson phone

    Hi guys,
    Anyone has written a simple java code that will detect bluetooth device like mobile phone then get authenticated then send and receive SMS via mobile phone? it's like act as a mobile agent. Appreciate if you could post the code here if any.
    Thanks & Regards,
    Mark
    Human 2.0

    may send some AT command to the mobile phone via bluetooth then get back the status if the sms has successfully sent.

  • Java codes and apis to send and receive SMS using a GSM modem(iTegno3000)

    Could any one please send me the codes and apis that can be use to send and receive SMS through iTegno3000 modem(GSM modem).I am a srilankan undergraduate.I am looking forward to hearing from you soon.

    hi i am also have the same doubt ..did u get soluation for this means can u reply to me

  • On Ipad 2 I can't send and receive sms!!! Why?

    On Ipad 2 I can't send and receive sms!!! Why?

    iPad is designed to send iMessages and not SMS.
    You will need 3rd party apps to send SMS.
    https://itunes.apple.com/sg/app/text-me!-free-texting-sms/id338088432?mt=8

  • Can't send and receive SMS/MMS/iMessages after restoring iPhone from a backup

    I can't receive and send any type of messages with my iPhone 3GS (iOS 6.1.6) after restoring it from my old backup (also 6.1.6).
    Messages that I'm sending are disappearing immediately after the moment they are sent and they are never delivered. The first time I restored my iPhone I could send and receive messages for 1 day, and I couldn't do it on the next day. This time I was able to send and receive messages for 10 minutes.
    I have used the methods Apple recommends for problems like this, but it doesn't help.

    Hello StepanyanMuradyan,
    Thanks for using Apple Support Communities.
    To troubleshoot issues with not being able to send or receive messages on your iPhone, I'd like you to please follow the troubleshooting outlined below.
    To resolve issues with sending and receiving iMessages, follow these steps
    Check iMessage system status for current service issues.
    Go to Settings > Messages > Send & Receive and make sure that you registered iMessage with your phone number or Apple ID and that you selected iMessage for use. If the phone number or Apple ID isn't available for use, troubleshoot iMessage registration.
    Open Safari and navigate to www.apple.com to verify data connectivity. If a data connection isn't available, troubleshoot cellular data or a Wi-Fi connection.
    iMessage over cellular data might not be available while you're on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn which network your phone supports. If your network doesn't support simultaneous data and voice calls, go to Settings > Wi-Fi and turn Wi-Fi on to use iMessage while you're on a call.
    Restart your device.
    Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    If you still can't send or receive an iMessage, follow these steps
    Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    Make sure that the contact you're trying to send a message to is registered with iMessage.
    If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and recreate the contact in the Contacts app. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    iOS: Troubleshooting Messages - Apple Support
    Take care,
    Alex H.

  • Send and receive sms on Mac Pro?

    Send and receieve sms on Mac Pro?

    See the other identical thread you opened. Bombarding the boards with identical threads won't cause a faster reply, if at all.

  • HT201263 my iPhone is disabled. since im traveling i have no access to my computer to restore the phone. What can I do to at least use the phone again with it's basic functions (make calls, send and receive sms)?

    My iphone is disabled and I'm traveling. What can I do to reset it to at least use its basic functions (make calls &amp; send / receive sms)?

    There is nothing you can do without doing a restore via the recovery mode.  Since you have iOS 7, if you activated Find My Phone in Settings > iCloud, you can login to your iCloud account, https://www.icloud.com from a computer, and then do a remote wipe of the iPhone...that will return it to factory condition and all contents will be erased.

  • Send and Receive SMS messages from US to South Kor...

    I want to be able to receive and send SMS messages from my skype to my friend's cell phone in Korea
    When I send it they receive it, but they can't respond it back to me because it is an international text.
    Is there anyway that I can buy a Korean online number when I'm living in US?
    and with that number will I be able to talk and send/receive messages with my friend?

    @ sberman -Hi-I have my settings as you described and I do have a text msg. plan with At&T. I'm still puzzled, however; I had the same plan with he former phone-the ancient 3Gs and with it, I was able to send/receive text, photos, etc. to non-Iphone users via WiFi as long as I was home and within distance of the connection. I did not have to have my cell data "on" in order to send/receive anything. Everything transmitted through WiFi-and did not impact my  charges or cell data limits.. I know I must use the cell data ON when I'm away, but don't understand why/how I can't do the same as before I upgraded to the 5c. Admittedly, I am certainly NOT in the stratospheric league as so many phone experts here-I do make the attempt to understand, though..
    I read on one of the numerous help/answer sites that apparently someone else had registered the same complaint with Apple and now has a pending lawsuit-and hoping to get class-action status on the issue. I'm fairly sure this is the same-although I cannot be 100% certain given my lack of expertise.
    I certainly appreciate your rapid response-as a newbie to these communities, I didn't expect any answers to my questions so quickly.Thanks for taking the time to post-have a great weekend.

  • Sending and receiving email problem

    for three months I have been unable to receive and send emails.  Is this just a storage problem and if so is there an alternative to buying more storage space?
    Thanks,
    not happy iCloud customer

    Hello iCloudsti"ks,
    Thank you for contacting Apple Support Communities.
    It's hard to say from the limited information what could be causing your issues. You can use the following article to troubleshoot your send/receive issues with iCloud mail:
    iCloud: Troubleshooting iCloud Mail
    http://support.apple.com/kb/TS4002
    Regards,
    Jeff D.

  • Multicast Sender and Receiver code problem

    Hi
    I am developing a multicast chat program. I am using codes from a well known book "Java Network Programming". I have run both programs 'MulticastSniffer' and 'MulticastSender'
    MulticastSniffer runs OK but MulticastSender gives me the error below:
    java.lang.NumberFormatException: null
    Usage: java MulticastSender multicast_address port ttl
    I cant figure out the error. Could some one please help me here to find the error. I have put both programs below: Thanks
    Here is the code for MulticastSniffer.java
    import java.net.*;
    import java.io.*;
    public class MulticastSniffer {
    public static void main(String[] args) {
    InetAddress group = null;
    int port = 0;
    // read the address from the command line
    try {
    group = InetAddress.getByName("235.0.0.1");
    port = Integer.parseInt("8192");
    } // end try
    catch (Exception e) {
    // ArrayIndexOutOfBoundsException, NumberFormatException,
    // or UnknownHostException
    System.err.println(
    "Usage: java MulticastSniffer multicast_address port");
    System.exit(1);
    MulticastSocket ms = null;
    try {
    ms = new MulticastSocket(port);
    ms.joinGroup(group);
    byte[] buffer = new byte[8192];
    while (true) {
    DatagramPacket dp = new DatagramPacket(buffer, buffer.length);
    ms.receive(dp);
    String s = new String(dp.getData());
    System.out.println(s);
    catch (IOException e) {
    System.err.println(e);
    finally {
    if (ms != null) {
    try {
    ms.leaveGroup(group);
    ms.close();
    catch (IOException e) {}
    Here is the code for MulticastSender
    import java.net.*;
    import java.io.*;
    public class MulticastSender {
    public static void main(String[] args) {
    InetAddress ia = null;
    int port = 4445;
    byte ttl = (byte) 1;
    // read the address from the command line
    try {
    ia = InetAddress.getByName("235.0.0.1");
    port = Integer.parseInt(null,4445);
    if (args.length > 2) ttl = (byte) Integer.parseInt("8192");
    catch (Exception e) {
    System.err.println(e);
    System.err.println(
    "Usage: java MulticastSender multicast_address port ttl");
    System.exit(1);
    byte[] data = "Here's some multicast data\r\n".getBytes();
    DatagramPacket dp = new DatagramPacket(data, data.length, ia, port);
    try {
    MulticastSocket ms = new MulticastSocket();
    for (int i = 1; i < 10; i++) {
    ms.send(dp, ttl);
    ms.close();
    catch (SocketException se) {
    System.err.println(se);
    catch (IOException ie) {
    System.err.println(ie);
    I will appreciate your help

    Hi kdajani thanks for reply
    It doesnt give any line number or doesnt tell where the error is.
    after i run the program it gives error below. if you run the program you will see what happens.
    java.lang.NumberFormatException: null
    Usage: java MulticastSender multicast_address port ttl
    And
    according to the reply from sabre150 , I have tried using
    port = Integer.parseInt(null,"4445");
    using above code gives the error below
    MulticastSender.java:18: cannot find symbol
    symbol : method parseInt(<nulltype>,java.lang.String)
    location: class java.lang.Integer
    port = Integer.parseInt(null,"4445");
    and
    port = 4445;
    using this does not execute at all
    They dont work either.
    Thanks you all

  • How can I use my mobile number to send and receive sms through Messages Mac?

    How can I do this? I am in the Philippines. Thanks.

    You can only use your phone number with iMessage if you have got the iPhone. If you have got it, on the Mac, open Messages, go to Messages menu (on the menu bar) > Preferences > Accounts, and tick the phone number

Maybe you are looking for

  • Help button not working on R12

    Hi In my R12 envirionment, when I clicking on "help" button, is not working. View topic - Help on web giving blank page.. Help me Thanks Neo Edited by: user10764313 on Dec 1, 2011 9:51 AM

  • Wont install audio drivers?!? Please help

    My motherboard is the k7n2 delta series. I have 5.1 surrond sound speakers and I had just bought the S-bracket for this motherboard. I CANT get INTO the "NVIDIA nFORCE(TM) Control Panel" to configurate the speakers. When I install the drivers a warni

  • T60P Fingerprint No Longer Showing up in Vista

    I was getting an error after I logged in to Vista involving the fingerprint software, so I uninstalled it and reinstalled it.  I no longer get the error, but I also do not get the option to use fingerprints when I log in or when coming back from havi

  • Hand tool won't drag image - PSE 11

    Windows 7 - 4 gig RAM I use expert mode hand tool is selected, but it will not drag image. I can vertical scroll with mouse wheel. I cannot select scroll bar handles,but I can scroll by clicking blank agacent space. I have reset preferences to defaul

  • Can't update CS6, please help

    Hi, When trying to update Adobe Extension Manager CS6.0.0 to 6.0.2 I get this error: Adobe Extension Manager CS6 Update There was an error installing this update. Please quit and try again later. Error Code: U44M2I218 I can not run the recent CS6 Upd