Skip to main content

how to make a timed application

3 replies [Last post]
hatemelarab
Offline
Joined: 2007-06-08
Points: 0

i want to make a timed application , any program that can only work for a certain time ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Another option is to have the app talk back to a server to negotiate a usage duration based on some unique identifier of the app or user.

The server would register the id on first use together with a time stamp. The app would periodically contact the server and have the server check if the duration is expired. If yes, the app would exit.

This, of course, requires network access but the frequency and amount of data would be very small so it's probably not an issue.

-- Terrence

C. Enrique Ortiz

What are you looking for exactly?

1. _The first_ time the application runs, retrieve the current time, and
save this time (into _RMS_)

2. _On subsequent_ application launches, start by retrieving current
time again, calculate delta time based on time saved on #1 above

3. Compare the "delta time" vs. an "allowed window of time" to determine
if the application has expired. The "allowed time" could be defined in
the JAD, or Manifest, or even retrieved from a server

4. If app is within "allowed" time window, continue running

5. If the app has expired, show a message to the user indicating the app
has expired, then exit the app. The app will remain on the handset until
removed by the user. The app just not allowed to run based on 1-3 above.

ceo

--
C. Enrique Ortiz
eortiz@j2medeveloper.com
http://www.CEnriqueOrtiz.com
http://www.CEnriqueOrtiz.com/weblog
http://www.MobileMondayAustin.org
http://www.AustinWirelessAlliance.org

meinterest@mobileandembedded.org wrote:
> i want to make a timed application , any program that can only work for a certain time ?
> [Message sent by forum member 'hatemelarab' (hatemelarab)]
>
> http://forums.java.net/jive/thread.jspa?messageID=221335
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
> --------------------------------
> Spam/Virus scanning by CanIt Pro
>
> For more information see
> http://www.kgbinternet.com/SpamFilter.htm
>
> To control your spam filter, log in at
> http://filter.kgbinternet.com
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Robin Chaddock

Rather easy to work around such a system; by either clearing the midlets
rms (possible on a good portion of handsets), or simply adjust the
handsets clock before launching the app. (either move it into the future
before the first launch, or move it into the past on subsequent launches)

C. Enrique Ortiz wrote:
>
> What are you looking for exactly?
>
> 1. _The first_ time the application runs, retrieve the current time,
> and save this time (into _RMS_)
>
> 2. _On subsequent_ application launches, start by retrieving current
> time again, calculate delta time based on time saved on #1 above
>
> 3. Compare the "delta time" vs. an "allowed window of time" to
> determine if the application has expired. The "allowed time" could be
> defined in the JAD, or Manifest, or even retrieved from a server
>
> 4. If app is within "allowed" time window, continue running
>
> 5. If the app has expired, show a message to the user indicating the
> app has expired, then exit the app. The app will remain on the handset
> until removed by the user. The app just not allowed to run based on
> 1-3 above.
>
> ceo
> --
> C. Enrique Ortiz
> eortiz@j2medeveloper.com
> http://www.CEnriqueOrtiz.com
> http://www.CEnriqueOrtiz.com/weblog
> http://www.MobileMondayAustin.org
> http://www.AustinWirelessAlliance.org
>
>
> meinterest@mobileandembedded.org wrote:
>> i want to make a timed application , any program that can only work for a certain time ?
>> [Message sent by forum member 'hatemelarab' (hatemelarab)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=221335
>>
>> ===========================================================================
>> To unsubscribe, send email to listserv@java.sun.com and include in the body
>> of the message "signoff KVM-INTEREST". For general help, send email to
>> listserv@java.sun.com and include in the body of the message "help".
>>
>> --------------------------------
>> Spam/Virus scanning by CanIt Pro
>>
>> For more information see
>> http://www.kgbinternet.com/SpamFilter.htm
>>
>> To control your spam filter, log in at
>> http://filter.kgbinternet.com
>>
>>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send
> email to listserv@java.sun.com and include in the body of the message
> "help".

________________________________________________________________________
E-mail is an informal method of communication and may be subject to data corruption, interception and unauthorised amendment for which I-play, a trading name of Digital Bridges Ltd will accept no liability. Therefore, it will normally be inappropriate to rely on information contained on e-mail without obtaining written confirmation.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

(C) 2005. I-play is a trademark and trading name of Digital Bridges Limited. All Rights Reserved.
________________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".