Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4android > Additional libraries, classes and official updates
Documentation Wiki Register Members List Windows Mobile Search Today's Posts Mark Forums Read

Additional libraries, classes and official updates Users contributed libraries, classes and official updates. This forum is open for licensed users only.

Calendar Library

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-13-2012, 07:00 PM
eps's Avatar
eps eps is offline
Senior Member
 
Join Date: Mar 2011
Location: Oxfordshire
Posts: 404
Default

What versions of Android will this work with?

I think there's Calendars up to 2.1 and then 2.2 --> 3.0 and now 4.0 (which finally gives us a documented Calendar interface, or I could be mistaken).

I don't think you can mix and match or rather compiling for one will mean that the others are excluded or brake?

i.e. here : New Public APIs in ICS | Android Developers Blog

I like keeping my App available to as many devices as possible... i.e. from 1.6 up...

Excellent work by the way!!
__________________
-----------------------------------------------------
HTC Evo 3D Android 2.3.4
Notion Ink Adam PixelQi WiFi Android 3.0
http://www.themotorsportcalendar.com/
-----------------------------------------------------
Reply With Quote
  #12 (permalink)  
Old 02-14-2012, 11:40 PM
lagore's Avatar
Knows the basics
 
Join Date: May 2011
Location: Ireland
Posts: 270
Default

This will work on everything below 4.0, as you said there is now a supported API for 4.0 and above (which we need to get working in B4A), remember that this may not work on some devices where the manufacturer has heavily modified the OS.
__________________
Edward
Reply With Quote
  #13 (permalink)  
Old 03-29-2012, 03:46 PM
Knows the basics
 
Join Date: Nov 2011
Posts: 221
Default

I'm currently dealing with the calendar2 library and like it.

I would like to catch the calendar appointments from a service. But that doesn't work, as MyCalendar appears to be an activity object.

Is there another way to use the lib from a service?

Best regards,

Carsten

Gesendet von meinem GT-N7000 mit Tapatalk
Reply With Quote
  #14 (permalink)  
Old 04-01-2012, 08:22 AM
Knows the basics
 
Join Date: Nov 2011
Posts: 221
Default

With Android 4.0, calendar2 doesn't work.

Is there a chance to use the calendar from Android 4.0 in any other way?

Best regards,

Carsten
Reply With Quote
  #15 (permalink)  
Old 04-03-2012, 11:50 PM
Newbie
 
Join Date: Mar 2012
Posts: 9
Default Editing event error

Hi, the calendar example works on my mobile (Nexus S) but when i try to edit the event it throws an error (forced to close). any idea?

Thanks
Reply With Quote
  #16 (permalink)  
Old 04-04-2012, 06:30 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,824
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You should always check the logs when an app crashes and post the full error message.
Reply With Quote
  #17 (permalink)  
Old 04-08-2012, 01:27 PM
Newbie
 
Join Date: Mar 2012
Posts: 9
Default fails when edit the event from the notification

Hi Erel
looks like i'm doing something wrong here...
I was checking the logs while debugging and everything looks okay. The issue comes only when tried to edit the event after opening the event from the notification.
It works fine if I opened the calendar app and then edit the event. don't know this makes sense and sorry if i confused you.
Reply With Quote
  #18 (permalink)  
Old 04-08-2012, 06:23 PM
Newbie
 
Join Date: Mar 2012
Posts: 9
Default doesnt support Android 4

yes, this doesn't support Android 4. I got the below error when running on a Galaxy nexus.
would be really help if we can get a calendar function.

Code:
main_activity_create (B4A line: 39)
myMap = cal.GetListOfAllCalendars(
True)        'get a "Map" of the available calendars
android.database.sqlite.SQLiteException: no such column: access_level: , while compiling: SELECT _id, name FROM Calendars WHERE (access_level=700)
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
179)
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
135)
    at android.content.ContentProviderProxy.query(ContentProviderNative.java:
358)
    at android.content.ContentResolver.query(ContentResolver.java:
310)
    at android.app.Activity.managedQuery(Activity.java:
1706)
    at edsmith.calendar.Calendar.getCalendarManagedCursor(Calendar.java:
649)
    at edsmith.calendar.Calendar.GetListOfAllCalendars(Calendar.java:
116)
    at ed.smith.calendar.example.main._activity_create(main.java:
248)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:
511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
136)
    at ed.smith.calendar.example.main.afterFirstLayout(main.java:
84)
    at ed.smith.calendar.example.main.access$
100(main.java:16)
    at ed.smith.calendar.example.main$WaitForLayout.run(main.java:
72)
    at android.os.Handler.handleCallback(Handler.java:
605)
    at android.os.Handler.dispatchMessage(Handler.java:
92)
    at android.os.Looper.loop(Looper.java:
137)
    at android.app.ActivityThread.main(ActivityThread.java:
4340)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:
511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:
784)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
551)
    at dalvik.system.NativeStart.main(Native Method)
android.database.sqlite.SQLiteException: no such column: access_level: , 
while compiling: SELECT _id, name FROM Calendars WHERE (access_level=700)
Reply With Quote
  #19 (permalink)  
Old 04-10-2012, 06:52 PM
lagore's Avatar
Knows the basics
 
Join Date: May 2011
Location: Ireland
Posts: 270
Default

Hi I am in the process of updating this library to work on android 4 (ICS) using the new official google calendar API, I have most of it done should be finished shortly.
__________________
Edward
Reply With Quote
  #20 (permalink)  
Old 04-11-2012, 06:25 PM
Knows the basics
 
Join Date: Nov 2011
Posts: 221
Default

That's great news... Please keep us posted. And thanks for your great work!

Best regards,

Carsten

Sent from my GT-N7000 using Tapatalk 2
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anybody managed to create a calendar Library lagore Basic4android Updates and Questions 1 11-05-2011 11:25 PM
Small calendar library gorelshv Additional libraries, classes and official updates 2 10-03-2011 12:16 PM
Calendar? pdabasic Questions (Windows Mobile) 6 04-19-2010 12:18 PM
Calendar bug (or not!) agraham Bug Reports 1 04-19-2010 11:31 AM
calendar preeti Questions (Windows Mobile) 2 03-31-2010 12:41 PM


All times are GMT. The time now is 04:05 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0