How to test Calendar Event on emulator?
I am developing an application which requires to add Calendar e开发者_StackOverflowvent. I have written the code for inserting event to the calendar. But whenever i run my application, everytime i get error that "Fail to find provider info for Calendar" and it also throws me NullPointerException error. So, what it means and i found that emulator doesn't provide Calendar application in-built.
I think if the Android Emulator doesn't have Calender API, so, naturally, it will not have any database URI in the emulator whereas the Contact has URI --"content://contacts/people". I also found the URI for Calendar as "content://calendar/calendars" but it doesn't work and it means that it gives me error cause of missing Calendar application.
Can anybody clarify me, with suggestions regarding Calendar Event?
Which is the way to test my application with Calendar Event?
I am developing an application which requires to add Calendar event. I have written the code for inserting event to the calendar. But whenever i run my application, everytime i get error that "Fail to find provider info for Calendar" and it also throws me NullPointerException error. So, what it means and i found that emulator doesn't provide Calendar application in-built.
Do not attempt to manipulate the Calendar content provider. That is not part of the SDK. If you need to manipulate the user's calendars, do so through the Google Calendar Data API, please.
Thanks for commenting to my topic.
Actually, there is no need of Calendar API in my application. I had gone through the link suggested by you and i knew that first i have to setup/ synchronize my email account to my device and after that i can proceed further.
But the Calendar application and content provider are available on Android handsets with Google services, such as the T-Mobile G1. So, naturally, it is not included in the emulator.
Thanks.
Regards,
Pranav
精彩评论