Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10415] Android: Location property not set for Ti.Android.Calendar.Event by createEvent method

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-04-15T20:49:16.000+0000
Affected Version/sRelease 2.0.1, Release 3.1.0
Fix Version/s2013 Sprint 08 API, 2013 Sprint 08, Release 3.1.1, Release 3.2.0
ComponentsAndroid
Labelsapi, module_AndroidProperties, qe-testadded
ReporterJoe Falcone
AssigneePing Wang
Created2012-05-24T21:41:50.000+0000
Updated2014-03-05T02:07:31.000+0000

Description

calendar.createEvent does not create 'location' property - it is ignored. // Create the event var eventBegins = new Date(2010, 11, 26, 12, 0, 0); var eventEnds = new Date(2010, 11, 26, 14, 0, 0); var details = { title: 'Do some stuff', description: "I'm going to do some stuff at this time.", location : "At this Place", begin: eventBegins, end: eventEnds }; var event = calendar.createEvent(details); Ti.API.info (event.getLocation()); -- prints null See http://developer.appcelerator.com/question/131770/location-property-ignored-in-tiandroidcalendarcreateevent#comment-127907 Bug is in android / calendar / EventProxy.java

Comments

  1. jithinpv 2013-03-20

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 jithinpv
  2. Ping Wang 2013-04-10

    Test case:
       var CALENDAR_TO_USE = 3;
       var calendar = Ti.Android.Calendar.getCalendarById(CALENDAR_TO_USE);
       
       // Create the event
       var eventBegins = new Date(2010, 11, 26, 12, 0, 0);
       var eventEnds = new Date(2010, 11, 26, 14, 0, 0);
       var details = {
           title: 'Do some stuff',
           description: "I'm going to do some stuff at this time.",
           location : "At this Place", 
           begin: eventBegins,
           end: eventEnds
       };
       
       var event = calendar.createEvent(details);
       Ti.API.info ("location: " + event.getLocation());
       
  3. Ping Wang 2013-04-10

    PR: https://github.com/appcelerator/titanium_mobile/pull/4141
  4. Olga Romero 2013-05-31

    Using test code, i verified fi with: Appcelerator Studio, build: 3.1.1.201305312408 SDK, build:3.1.1.v20130530204550 Device: NExus 7 Android version: 4.2 Actual result:
       05-31 14:22:00.209: I/TiAPI(4636):  location: At this Place
       
  5. jithinpv 2013-11-11

    Anvil test case added. https://github.com/appcelerator/titanium_mobile/pull/4944

JSON Source