How to Insert an Event to Calendar Using Android Intent

  Рет қаралды 38,049

Coding Demos

Coding Demos

Күн бұрын

Пікірлер: 69
@CodingDemos
@CodingDemos 4 жыл бұрын
Hey guys, I hope you liked this tutorial :) Comment below on topics you want me to cover next.
@99Points
@99Points 4 жыл бұрын
Hi there, if possible, can you make a tutorial on how we can we make scrolling text *zoomable.*
@CodingDemos
@CodingDemos 4 жыл бұрын
@@99Points Hi, okay sure :)
@ezaame6624
@ezaame6624 4 жыл бұрын
Hi !, Thanks for the video, its really helpful! but lets just say if i want to fetch it from google calendar using intent, i just have to change it to "action_get_content" ? or does it have extra steps to fetch it ?
@gamnrd
@gamnrd 3 жыл бұрын
Thank you soo much for this! Was much easier to follow then others I've found online
@nessabun9455
@nessabun9455 3 жыл бұрын
Thank you for this super easy explanation and awesome tutorial!
@davidlacatusu1982
@davidlacatusu1982 3 жыл бұрын
Dude, I don't know if you will see this but your video saved me. You are literally a life savior. I wish you the best! Keep going and growing! You deserve it.
@CodingDemos
@CodingDemos 3 жыл бұрын
Thank you very much, I'm glad that you liked the tutorial :)
@sabbirahmmedkhan2575
@sabbirahmmedkhan2575 3 жыл бұрын
Really appreciate what you have done here, thanks man. It is by far the only video on calendarProvider in youtube. Can you make a followup video showing how to view events from calendar to our apps recyclerview ? please.
@CodeNight-dm2hv
@CodeNight-dm2hv 3 жыл бұрын
This helped me. Thank you!
@MeanEyedDog
@MeanEyedDog 3 жыл бұрын
thanks a lot, worked like a charm
@aaronsenpai7303
@aaronsenpai7303 2 жыл бұрын
Great video, first was unable to run due to some human error mistake lol, but it is able to run afterwards 🙌😭
@lendraerdiansah1282
@lendraerdiansah1282 3 жыл бұрын
thank you so much dude, your code really help me out
@CodingDemos
@CodingDemos 3 жыл бұрын
You're welcome 😃
@xodiaki
@xodiaki 3 жыл бұрын
Thank you!!
@nancyc23
@nancyc23 3 жыл бұрын
Awesome explanation. Thank you. One question - how would I open the calendar to a particular date? And I am not passing event begin and end time. Wanted to let the user choose if it is all day or not. TIA
@Djdanielzarfati
@Djdanielzarfati 3 жыл бұрын
hi! how do you insert the date to the calendar?
@tudorradu5848
@tudorradu5848 2 жыл бұрын
THANK YOU!!!!
@XDimaProX
@XDimaProX 3 жыл бұрын
Hey, i am new to android studio and your Code is really helpful in my student project. Thanks! I have a question is it possible to view all the Events i made on Google calender in my App?
@newwebapps3101
@newwebapps3101 2 жыл бұрын
How can we show the stored event data back in the app? Please tell me suggestions if you have any.
@DrKumar-CycoosServices
@DrKumar-CycoosServices Жыл бұрын
How to come back from the calendar to the MainActivity programatically after save button is pressed? So that user need not to close the calendar manually.
@alhanoofaldossary1198
@alhanoofaldossary1198 3 жыл бұрын
Hello Sir, thank you very much! When I tried to run this code, the calendar open and this sentence appeared ”No calendars have been synchronized with this device yet” I'm using android studio emulator
@nehankpoilkar9641
@nehankpoilkar9641 4 жыл бұрын
Exactly the stuff i am looking for.. Thanks mate.. And is there any chance where we don't need to click save button (of google calendar )...? as in user hits the "add event" from our app & it gets saved in google calendar
@CodingDemos
@CodingDemos 4 жыл бұрын
You're welcome :) I'm sorry, but I'm not sure if there is a way to do it without clicking on the save button.
@NaveenKumar-ps3jt
@NaveenKumar-ps3jt 2 жыл бұрын
How to avoid duplicate Event Creation in this? Is there any ID to set prior
@maloy340
@maloy340 2 жыл бұрын
Hi, How I can set Date and Time?
@eoghanfeighery7383
@eoghanfeighery7383 Жыл бұрын
Can you do this without email tests
@genesiscatano
@genesiscatano 2 жыл бұрын
What about multiple events?
@siarongeraldg.2540
@siarongeraldg.2540 3 жыл бұрын
how to get Date? pls help
@anwarmustaffa5664
@anwarmustaffa5664 3 жыл бұрын
hello mr, i just follow your step. But when i run the android studio, it will appear "There is no app that can support this action". I'm already put the Events on intent.setData(CalendarContract.Events.CONTENT_URI); but when i run the android studio again, it still same. Can you help me ?
@farhanashahzani
@farhanashahzani 3 жыл бұрын
same same like me sir
@yodaedits416
@yodaedits416 3 жыл бұрын
XML: 2:13 Java: 3:11 OnclickListener: 3:26 Intent: 4:00 Error in setData: 14:38
@sidnyt
@sidnyt 8 ай бұрын
Where can I get the code for this?
@jerome092master
@jerome092master 2 жыл бұрын
Is there a way to create the event from our app without delegating it to Calendar app?
@giladkay3761
@giladkay3761 3 жыл бұрын
is there a way to control the time and date as well? (instead of doing all day it does, say, 13:00-14:30?)
@shreyasawant8631
@shreyasawant8631 3 жыл бұрын
Did you get a solution?
@giladkay3761
@giladkay3761 3 жыл бұрын
@@shreyasawant8631 there's an extra called dtend and dtstart that takes care of that apparently
@shreyasawant8631
@shreyasawant8631 3 жыл бұрын
Did you find any video tutorial for that?
@giladkay3761
@giladkay3761 3 жыл бұрын
@@shreyasawant8631 just alot of stackoverflow research 🙃 Here's my code : Calendar cal = Calendar.getInstance(); long endTime; long startTime; cal.set(Calendar.HOUR_OF_DAY, hour); cal.set(Calendar.MINUTE,min); cal.set(Calendar.YEAR, year); cal.set(Calendar.MONTH, month- 1); cal.set(Calendar.DAY_OF_MONTH,day ); startTime = cal.getTimeInMillis(); endTime = startTime + 30 * 60 * 1000; String title="פגישה עם " + student.getName(); long event_id = (startTime+endTime)/10000; Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra("beginTime", startTime); intent.putExtra("rrule", "FREQ=YEARLY"); intent.putExtra("endTime", endTime); intent.putExtra("title", title);
@giladkay3761
@giladkay3761 3 жыл бұрын
Oops I guess I was thinking about something else with the dtend/dtstart
@jairramos4902
@jairramos4902 3 жыл бұрын
How do I do this with kotlin?
@meseendev
@meseendev 3 жыл бұрын
На котлине все будет выглядеть примерно также
@NgocAnh-eg5vs
@NgocAnh-eg5vs 3 жыл бұрын
I do the same but it's error...
@moisesortega6137
@moisesortega6137 3 жыл бұрын
I seem to be getting an error too.
@99Points
@99Points 4 жыл бұрын
Hi, in this video ( kzfaq.info/get/bejne/hd2Klr2ovb3Jl58.html ), he shows how to implement *rate us* feature as a button. How can we do this with an item on a toolbar in an android app?
@website7982
@website7982 3 жыл бұрын
Hi I have a trouble every time I click on add event nothing happen also the part that said new.View.Onclicklistener() is on gray it seem like a comment
@CodingDemos
@CodingDemos 3 жыл бұрын
Hi, hmm that is strange. Do you see error message in the logcat? Did you test whether the button is clickable?
@website7982
@website7982 3 жыл бұрын
@@CodingDemos i don’t any error message but when I teste it it doesn’t do anything when I click the add event button
@website7982
@website7982 3 жыл бұрын
Did you you know what could be the problem do I need to add something? Also I believe the button is not click
@CodingDemos
@CodingDemos 3 жыл бұрын
Can you please replace the add event code in the button onclick method with a simple Toast message, and see if the Toast appear after you click on the button? This is to test if the button is clickable.
@website7982
@website7982 3 жыл бұрын
@@CodingDemos i did it but the toast don’t appear
@nagendrakumarpakkurthi1186
@nagendrakumarpakkurthi1186 3 жыл бұрын
i have google calendars app but it will show there is no app
@CodingDemos
@CodingDemos 3 жыл бұрын
Hi, can you please try to run the app on a real device and see if that works?
@nagendrakumarpakkurthi1186
@nagendrakumarpakkurthi1186 3 жыл бұрын
@@CodingDemos I run in real device still it' doesn't work all my code is correct..
@CodingDemos
@CodingDemos 3 жыл бұрын
Hmm that is strange. Do you see any error message in the logcat?
@parikshithbelliappapt3061
@parikshithbelliappapt3061 3 жыл бұрын
@@nagendrakumarpakkurthi1186 Yen maga, Clear aitha?
@MDTVclips
@MDTVclips 2 жыл бұрын
i don't understand why people don't share the file of the project ... it bring more recommendation to the channel and more views.... omg one error can block all the code ...
@CodingDemos
@CodingDemos 2 жыл бұрын
I'm sorry about that. I do share the code together with a blog post that explains things in details, but I didn't do it for this tutorial 😞
@Alec_Reaper
@Alec_Reaper Жыл бұрын
tets must be the most common typo every programmer does lol
THIS Is How You Schedule Alarms on Android with AlarmManager
21:55
Philipp Lackner
Рет қаралды 37 М.
Android onActivityResult is Deprecated. What Do I Do Now?
7:48
Coding Demos
Рет қаралды 23 М.
UNO!
00:18
БРУНО
Рет қаралды 3,1 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
How to Add Contacts Programmatically in Android
19:33
Coding Demos
Рет қаралды 13 М.
Google Calendar + Firebase Auth
9:55
Fireship
Рет қаралды 95 М.
How To Use The Google Calendar API with NodeJS: A Step-by-Step Guide
44:59
How To Add Event In Table Calendar Flutter
9:38
AI with Flutter
Рет қаралды 24 М.
Notes App With Firebase | Android | 2024
1:36:01
Easy Tuto
Рет қаралды 50 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 132 М.
What is an API and how does it work? (In plain English)
7:12
CodeWithChris
Рет қаралды 791 М.
UNO!
00:18
БРУНО
Рет қаралды 3,1 МЛН