如何在android 2.3.3中以编程方式设置事件位置?
我正在尝试向android日历添加事件。我需要为android版本2.3.3至最新版本添加事件。因此,我分别为版本4及以上版本和版本4以下版本编写了代码。代码如下。这两个版本都很有效。但唯一的问题是,我通过的版本2.3.3位置没有显示在位置字段中。因此,我的问题是如何通过android 2.3.3日历的位置 我尝试了以下所有备选方案,但均无效:如何在android 2.3.3中以编程方式设置事件位置?,android,Android,我正在尝试向android日历添加事件。我需要为android版本2.3.3至最新版本添加事件。因此,我分别为版本4及以上版本和版本4以下版本编写了代码。代码如下。这两个版本都很有效。但唯一的问题是,我通过的版本2.3.3位置没有显示在位置字段中。因此,我的问题是如何通过android 2.3.3日历的位置 我尝试了以下所有备选方案,但均无效: intent.putExtra("event location", loc); intent.putExtra("Eventlocation", loc
intent.putExtra("event location", loc);
intent.putExtra("Eventlocation", loc);
intent.putExtra("location", loc);
intent.putExtra("where", loc);
哪一个是正确的?请提供帮助
intent.putExtra("event location", loc);
intent.putExtra("Eventlocation", loc);
intent.putExtra("location", loc);
intent.putExtra("where", loc);