Java – how to pass the email ID to be synchronized to Android to create an event calendar?
                                        
                    •
                    Java                                    
                How do I e-mail the message ID of the calendar to be synchronized to the creation event?
ContentValues values = new ContentValues();
    values.put("calendar_id",1);
    values.put("title",title1);
    values.put("allDay",0);
    values.put("dtstart",settime);
    values.put("dtend",cal.getTimeInMillis()+60*60*1000); 
    values.put("description",desc1);
    values.put("???????",mail_id);
    values.put("???????",participant_mail_id);
    values.put("visibility",0);
    values.put("hasAlarm",1);
    event = cr.insert(EVENTS_URI,values);
What should I use to pass the key to insert the email ID and participant ID? I really appreciate any help My screenshot is below
Solution
The event is linked to the calendar through "calendar_id" To get "calendar_id", you should query the calendars of all users, and then search the results of the names you are interested in This is a tutorial that should be useful: working with the Android calendar
Alternatively, you can create an event and let the user select the calendar to add the event: adding calendar event through intent
                            The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
                        
                                            
                        THE END
                    
                    
                    
                                                        二维码
                        
                        
                                                
                        