×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    85

    Getting cbs message in J2ME

    Hi,

    I got cbs message before singing my midlet application.

    But I could not get cbs message after signing using Thawte code signing?

    How can I get CBS message after signing?

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Getting cbs message in J2ME

    Hi abulkalamazad,

    Have you looked in to this article http://wiki.forum.nokia.com/index.php/C.B.S_MESSAGE? Please check CBS message have been enabled in your phone . In which phone you are trying this ?

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    85

    Re: Getting cbs message in J2ME

    Thanks bhanuchandar.k,

    I am able to fetch CBS message in all Nokia and Sony ericsson mobiles before signing but the same
    code could not fetch CBS message after siging with Thawte.

    is sining restricts the application from reciveving CBS message?

    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..

    MessageConnection _mc = (MessageConnection)Connector.open("cbs://:50");
    for(;
    {

    Message m=_mc.receive();// dc.receive(d);

    try{
    TextMessage tm = (TextMessage)m;
    status= tm.getPayloadText();
    HelloMIDlet.statusL="CBS message received "+status;
    processTextMessage(tm);

    }
    catch (Exception e) {
    status=e.getMessage();
    }
    }
    }
    catch(Exception e){
    status="Ex: "+e.getMessage();
    }

    }

    this is the code I am using to fetch CBS message.

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Getting cbs message in J2ME

    Hi s.abulkalamazad ,

    I I haven't tried the CBS message but the code looks ok to me. I don't have any Idea about why you are not able to receive the message after the signing . Did you check that the receiving the cbs message is on in your settings ?

  5. #5
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Getting cbs message in J2ME

    Try adding permissions for CBS message in JAD and then sign the app.
    Thanks,
    Ekta

  6. #6
    Registered User
    Join Date
    Jul 2009
    Posts
    85

    Re: Getting cbs message in J2ME

    Following permissions are added but no use

    MIDlet-Permissions: javax.microedition.io.Connector.sms, javax.wireless.messaging.sms.send, javax.microedition.io.Connector.cbs, javax.wireless.messaging.sms.receive

Similar Threads

  1. Nokia j2me not support CBS(Cell Broadcast Service)?
    By heheyou in forum Mobile Java Networking & Messaging & Security
    Replies: 15
    Last Post: 2010-05-29, 22:52
  2. CBS Message Error?
    By sunil_bhambani123 in forum Mobile Java Networking & Messaging & Security
    Replies: 8
    Last Post: 2009-03-06, 11:22
  3. Cbs
    By symbile in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-10-02, 07:36
  4. Nokia j2me not support CBS(Cell Broadcast Service)?
    By heheyou in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-06-03, 20:44
  5. how to determine the location string from CBS message
    By bimalendut in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-10, 12:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×