Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User tbossini's Avatar
    Join Date
    Aug 2003
    Posts
    7
    Hi
    We are having problems with the lenght of the header from, it only happens when the length is upper 28. When it decodes the message, always return 31 length and don´t detect the from value.

    Have you had the same problem??Any solution?

    Thanks

  2. #2
    Registered User tbossini's Avatar
    Join Date
    Aug 2003
    Posts
    7
    Hi
    I´ve solved this issue modified the decoder part with these few lines:

    case FN_FROM: {
    if (FLAG_DEBUG) System.out.println("FN_FROM (09)");
    int valueLength = m_In[m_i++];
    if(valueLength>30){
    valueLength = readUintvar();
    }
    int addressPresentToken = unsignedByte(m_In[m_i++]);
    if (addressPresentToken == 0x80) { // Address-present-token
    m_Message.setFrom(new String(readTextString()));
    }
    }
    break;

    I wait this help anyone and don´t lost time like me....things good done, looks fine.

  3. #3
    Regular Contributor paulbrow's Avatar
    Join Date
    Mar 2003
    Posts
    474
    Was this in the MMS Java Library or the NMSS library?

    -paul / ForumNokia

  4. #4
    Registered User tbossini's Avatar
    Join Date
    Aug 2003
    Posts
    7
    In the MMS Java Library

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved