1. Download our Official Android App: Forums for Android!

android.provider.CallLog.Calls.DATE not working as expected

Discussion in 'Introductions' started by mshshetty056, Jan 6, 2012.

  1. mshshetty056

    mshshetty056 Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    2
    Joined:
    Jan 6, 2012

    Jan 6, 2012
    2
    0
    25
    Hi,

    I'm new to android development. I was writing an app which includes reading all call logs and comparing the call date with System.currentTimeMillis().

    What I'm doing is I'm taking difference between System.currentTimeMillis() and call date (of one of the entry ). The difference value shows as expecetd in the emulator but when I try to run the same app on the phone [ htc desire hd with android 2.3.3 ], it behaves strangely.

    When I further checked I found that the call date is not being logged correctly. For example if I make a call and within a minute if I try to compare that call date with System.currentTimeMillis(), the difference is shown huge. Almost more than hours !.

    Can anyone let me know what the problem is. Or any other way how I can achieve the logic I mentioned.

    Thanks in advance :)
     

    Advertisement

  2. D-U-R-X

    D-U-R-X turbo drinker
    Rank:
    None
    Points:
    1,343
    Posts:
    16,881
    Joined:
    Apr 20, 2011

    Apr 20, 2011
    16,881
    7,193
    1,343
    Work to live, not the other way round!!
    Sheffield, South Yorkshire
    Welcome to the forums - thanks for joining!

    I don't know anything about development, but if you try in Android Development - Android Forums other devs will be able to point you in the right direction!

    Hope you find this place useful!
     
    mshshetty056 likes this.

Share This Page

Loading...