This depends very much on what is meant by "current time". Although my
first reply was a bit short and non-explaining I do stand by it.

If by "current time" we mean the actual time of day according to
solar/planetary movement - then "no" - there is no way to be sure what time
it is. The usefulness of this answer depends very much on the reason for
the question. In "the old days" of program demos etc. for PCs code would be
constructed to allow a demo to run for a day/week/month which would be
broken if the user changed the system clock eg. In the same way a program
on Android relying on the system clock would be pretty "messed up" when the
user adjust it.

I totally agree that for "short time measuring purposes" like you describe
using other internal time measurements would be possible.



On Thu, Sep 5, 2013 at 6:31 PM, Nobu Games <[email protected]> wrote:

> Android provides the 
> SystemClock<http://developer.android.com/reference/android/os/SystemClock>component
>  that gives you the elapsed milliseconds since boot. I guess
> that's pretty much what you want.
>
>
>
> On Thursday, September 5, 2013 3:57:34 AM UTC-5, ashish wrote:
>
>> Hi,
>>
>> i want to perform some time based operation in android device?
>> but user can change the device time manually as the result current time
>> varies..is there any way so that i can track the current time?
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael Banzon
http://michaelbanzon.com/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to