×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Question How to save a state at some point in j2me??

    Hi Everyone !!

    is there any way to save a state during application execution and to use it further.

    Please Reply
    Regards
    Rajan Verma

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

    Re: How to save a state at some point in j2me??

    Hi Rajan,

    Can you explain your problem little more clearly . So that you will get the better support.

  3. #3
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: How to save a state at some point in j2me??

    Quote Originally Posted by bhanuchandar.k View Post
    Hi Rajan,

    Can you explain your problem little more clearly . So that you will get the better support.
    Actually i have two forms Form1 and Form2. In Form1 i have some textfields to be filled. While moving to form2 i have save the filled items and when coming back to Form1, i have to go to the same state(No. of textfields filled).

    Let for an example :
    Form1: Name tf_name
    Employee code tf_empcode
    Employee ID tf_empid
    Employee Address tf_address
    Date tf_date

    Form2 : Displays LWUIT Calendar and has one soft button Get Date. Which will be used in Form1 Date textfield.

    Now, In Form1 i filled Employee Address (I have to save this state) and for Date it will go to Form2 which has LWUIT Calendar Displyed. The user Selected the Date and it will be used in Date Field of Form1. Now on Pressing GetDate SoftButton in Form2. It will be back to Form1. when it comes back to Form1. the Employee addres is again Blank which i do not want.

    Please Reply.
    Last edited by rajan701v; 2011-02-15 at 05:49.
    Regards
    Rajan Verma

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

    Re: How to save a state at some point in j2me??

    Hi Rajan,

    I got the problem now . How are you navigating from the form2 to from1 ?

    Are you creating the your views when it requires or created all the views at the application starts ? When you are navigating from one from to another form those values filled in the first form will not go until you explicitly clear those values .

    You can simply set the display to form1 . It will display all the values the user has entered.

  5. #5
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: How to save a state at some point in j2me??

    Thanks for the reply bhanuchandar.k

    will u please give the answer of this question Please no one answering this question. I have an urgent requirement .

    http://discussion.forum.nokia.com/fo...inner-in-LWUIT
    Sorry to interrupt this question in between.

    Please Reply
    Regards
    Rajan Verma

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

    Re: How to save a state at some point in j2me??

    Hi Rajan,

    By seeing the example and the documentation what I have understood is , You just need to specify the min and max intervals to the spinner create date method . DAY is just one constant they have define to calculate the min and max value there is no significance over there you can use your own min max values.

    I just took the DAY as 15 and calculate the date I got the min and max values are
    2011-02-15 20:01:49.92 (min)
    2011-02-15 20:02:19.922(Max)
    2011-02-15 20:02:04.922(Current Date)

    I think the date will spin between this range I think .

    The documentation of the Spinner is http://www.hamzawy.eb2a.com/JME/com/...e/Spinner.html

    Please correct me If I am wrong.

Similar Threads

  1. Replies: 1
    Last Post: 2010-12-06, 14:23
  2. How to Save the State of a Setting Item..........
    By amey_symbian in forum Symbian
    Replies: 15
    Last Post: 2008-08-14, 13:48
  3. How to save some data at phone
    By panyaoem in forum Symbian
    Replies: 4
    Last Post: 2008-08-09, 09:02
  4. how to save emulator state
    By dnjuls in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2007-12-31, 20:53

Posting Permissions

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