×

Discussion Board

Results 1 to 2 of 2

Thread: Date protection

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    1

    Date protection

    Hello,

    I made a midp 2.0 game and now i wish to protect it against piracy. I was thinking about adding a date protection that checks the date when the game is first run and the date when the game was purchased. My questions are:

    1. Does java.util.Date return the Date in the same format for all devices? Is there a way of getting only the Month and the Day?
    2. How do i make that jar save a variable even after it closes? I want that after the first run of the game a variable will be changed so that the date check will be bypassed on future runs.

    Thank you!

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Date protection

    1) check the java.util.Calendar

    2) you could store the variable in RMS. Here is an example how to use recordStore for storing highscore list
    http://wiki.forum.nokia.com/index.ph...ase_in_Java_ME

    Hartti

Similar Threads

  1. Issue with slow date operations on N95
    By redsmurph in forum Mobile Java General
    Replies: 8
    Last Post: 2007-12-24, 17:15
  2. Date in J2ME
    By alonish in forum Mobile Java General
    Replies: 8
    Last Post: 2007-08-07, 21:07
  3. preverify error. PLZ HELP
    By michaelhann89 in forum Mobile Java Tools & SDKs
    Replies: 14
    Last Post: 2007-03-22, 22:51
  4. EXIF Date Picture Taken missing for 6288
    By macmiller in forum General Development Questions
    Replies: 1
    Last Post: 2007-03-11, 21:37
  5. Date format...!!!
    By palak_shah_23 in forum Symbian
    Replies: 4
    Last Post: 2006-09-07, 07:27

Posting Permissions

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