×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Help needed regarding message application

    hi,

    In a message application im doing, when i send the sms to the target device, the last sent sms appears first in the inbox of the target device.This is happening in emulator properly.

    But when im testing on the handset,its not working properly. the last sent message appears last in the inbox of the target device.

    Please tell me how can i solve this?


    Tks,

  2. #2
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: Help needed regarding message application

    Quote Originally Posted by nagesh.chetana View Post
    hi,

    In a message application im doing, when i send the sms to the target device, the last sent sms appears first in the inbox of the target device.This is happening in emulator properly.

    But when im testing on the handset,its not working properly. the last sent message appears last in the inbox of the target device.

    Please tell me how can i solve this?


    Tks,
    About which inbox r u talking Its native inbox of device or custom inbox maintain by u for ur application. Well u cant control the native inbox functionality by j2me application.
    thanks,
    jitu_goldie..

    KEEP TRYING..

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    Re: Help needed regarding message application

    Quote Originally Posted by jitu_goldie View Post
    About which inbox r u talking Its native inbox of device or custom inbox maintain by u for ur application. Well u cant control the native inbox functionality by j2me application.
    Hi jitu,

    I'm talking about my application Inbox, not the Native Inbox.

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Help needed regarding message application

    Quote Originally Posted by nagesh.chetana View Post
    hi,

    In a message application im doing, when i send the sms to the target device, the last sent sms appears first in the inbox of the target device.This is happening in emulator properly.

    But when im testing on the handset,its not working properly. the last sent message appears last in the inbox of the target device.

    Please tell me how can i solve this?


    Tks,
    Hi Nagesh,
    which device you are working with?
    Are you testing the application with the WTK or with the Nokia emulators...

    Tell us also that how you are sending the sms?
    Are you sending the sms directly to the inbox or what?

    As jitu had already suggest that you can change the order of the sms in inbox...
    please provide these details.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Help needed regarding message application

    Quote Originally Posted by chaishekar View Post
    Hi jitu,

    I'm talking about my application Inbox, not the Native Inbox.
    How you are sending the sms in the inbox of your application?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  6. #6
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    Re: Help needed regarding message application

    No message
    Last edited by chaishekar; 2009-04-02 at 13:01.

  7. #7
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    Re: Help needed regarding message application

    No message
    Last edited by chaishekar; 2009-04-02 at 13:01.

  8. #8
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Help needed regarding message application

    Quote Originally Posted by raj_J2ME View Post
    How you are sending the sms in the inbox of your application?
    Hi Raj,

    I'm using sun's wireless toolkit wherein in that its working fine. Im testing on Nokia N72 handset. I'm sending sms to my application Inbox using some port.

    Im not sending the sms through my Inbox, I have a Create Message function,through which im sending the sms to my application inbox.

  9. #9
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Help needed regarding message application

    Quote Originally Posted by nagesh.chetana View Post
    Hi Raj,

    I'm using sun's wireless toolkit wherein in that its working fine. Im testing on Nokia N72 handset. I'm sending sms to my application Inbox using some port.

    Im not sending the sms through my Inbox, I have a Create Message function,through which im sending the sms to my application inbox.
    And on N72 the latest sended sms is coming in the last of the application inbox..correct and you want that latest sended sms must on at the top of the application's inbox...(Really it make sense to me too)..
    is thats the exactly need?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  10. #10
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Help needed regarding message application

    Quote Originally Posted by raj_J2ME View Post
    And on N72 the latest sended sms is coming in the last of the application inbox..correct and you want that latest sended sms must on at the top of the application's inbox...(Really it make sense to me too)..
    is thats the exactly need?
    Yes Raj, thats what should happen exactly.

  11. #11
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: Help needed regarding message application

    can u tell me that what procedure u follow to do the same ie are u using RMS to save the incoming msgs. pls clarify what r u doing to show sms in ur application inbox?
    thanks,
    jitu_goldie..

    KEEP TRYING..

  12. #12
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Help needed regarding message application

    Quote Originally Posted by jitu_goldie View Post
    can u tell me that what procedure u follow to do the same ie are u using RMS to save the incoming msgs. pls clarify what r u doing to show sms in ur application inbox?
    Hi Jitu,

    Im using RMS for storing the messages.

  13. #13
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Help needed regarding message application

    Quote Originally Posted by nagesh.chetana View Post
    Hi Jitu,

    Im using RMS for storing the messages.
    Hi Nagesh,
    Thanks for the clarification...
    Well gentlemen you can follow like this-
    1.when there is no sms in the inbox of the application..and you receive the first sms just add the sms in the RMS...(I guess you can do it..just append the sms in string and then convert the string in byes and then add the same in RMS)
    2.Now as soon as you receive the second sms,just wait....think and proceed like this
    2.1. Copy the RMS data in vector..
    2.2. delete the RMS..
    2.3. create the RMS and add the latest sms you received..(second one)
    2.3.then add the record in RMS from the vector..(do not worry,just add in RMS,it will be on the 2nd record ID..am I able to explain to you)

    for the rest of the process you have to follow the same steps..

    I would also be agree with that if someone says that this can down the speed of the application..(if you will implement this in a proper way it will not..)

    Nagesh,is this make sense to you in any means?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  14. #14
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: Help needed regarding message application

    So can u tell me that whats ur process to add the sms to rms and what way u follow to read them.

    I suggest u to add the sms, as u got, to the last of rms ie simply add the record as u got the sms like recordstore.addRecord(byte[],0,byte[].length());

    But when u read the rms i suggest u to read it in decreasing order like start the reading from last record to first record.

    Hope this will help u somewhile..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  15. #15
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Help needed regarding message application

    Hi,
    Thanks for ur rply.

    The code which i have written now is like wise as u said, and its working fine in the emulator, problem is only when i'm testing in the handset.

    I don't know why its not working in the handset, when it's getting properly in the emulator.

    Tks,

Similar Threads

  1. Replies: 1
    Last Post: 2008-05-08, 12:32
  2. nokia 6263 Invalid Application Message
    By jbaisden in forum Mobile Java General
    Replies: 2
    Last Post: 2008-02-24, 18:21
  3. Warning message appears when run the application
    By afka in forum Mobile Java General
    Replies: 3
    Last Post: 2006-08-22, 17:57
  4. Replies: 1
    Last Post: 2006-05-23, 04:19
  5. Replies: 2
    Last Post: 2004-01-28, 03:16

Posting Permissions

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