Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4642] Android: Titanium.Analytics.timedEvent is giving a runtime error when passing in the date.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-05T14:21:36.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-35, Release 1.7.3, Release 1.8.0
ComponentsAndroid
Labelsn/a
ReporterNatalie Huynh
AssigneeDon Thorp
Created2011-07-11T16:20:31.000+0000
Updated2011-11-05T14:21:36.000+0000

Description

Steps to Reproduce: 1. Run the analytic application 2. Run timedEvent Actual Result: Runtime Error: Wrapped java.lang.IllegalArgumentException: Expected Long type for argument "start" in "timedEvent", but go Mon Jul 11 16:04:41 PDT 2011 Expected Result: To send the analytics Note: Documentation indicates it is looking for type Date and the runtime error indicates it is looking for a Long. Works in iOS, problem in Android only

Attachments

FileDateSize
app.js2011-07-11T16:20:31.000+00001627

Comments

  1. Natalie Huynh 2011-07-11

    Also occurs with 1.7.1
  2. Bill Dawson 2011-09-15

    https://github.com/appcelerator/titanium_mobile/pull/449 accepted and merged
  3. Bill Dawson 2011-09-28

    reopening for 1.7.X merge
  4. Bill Dawson 2011-09-28

    Merged to 1_7_X branch
  5. Natalie Huynh 2011-09-29

    Tested with 1.7.3.v20110928185013 with Hero 2.1 Galaxy Tab 3.1 Emulator 2.3
  6. Natalie Huynh 2011-10-07

    Tested with 1.8.0.v20111007112617 Hero 2.1 Nexus S 2.3.6
  7. Don Thorp 2011-11-05

    Standardizing summary and labels.

JSON Source