1. Are you ready for the Galaxy S20? Here is everything we know so far!

Classdef not found exception

Discussion in 'Android Development' started by pedjasmek, Feb 2, 2011.

  1. pedjasmek

    pedjasmek Newbie
    Thread Starter

    Hi.I am trying to use google api for interacting with google calendar :
    Code (Text):
    1.  
    2. CalendarService myService = new CalendarService(
    3.                 "Moj kalendar");
    4.         try {
    5.             myService.setUserCredentials("maymail@gmail.com", "pass");
    6.             URL postUrl = new URL(
    7.                     "https://www.google.com/calendar/feeds/maymail@gmail.com/private/full");
    8.             CalendarEventEntry myEntry = new CalendarEventEntry();
    9.             myEntry.setTitle(new PlainTextConstruct(subject));
    10.             myEntry.setContent(new PlainTextConstruct(
    11.                     "Meet for a quick lesson."));
    12.  
    13.             DateTime startTime = DateTime
    14.                     .parseDateTime("2011-02-17T15:00:00-08:00");
    15.             DateTime endTime = DateTime
    16.                     .parseDateTime("2011-02-17T17:00:00-08:00");
    17.             When eventTimes = new When();
    18.             eventTimes.setStartTime(startTime);
    19.             eventTimes.setEndTime(endTime);
    20.             myEntry.addTime(eventTimes);
    21.  
    22.             // Send the request and receive the response:
    23.             CalendarEventEntry insertedEntry = myService.insert(postUrl,
    24.                     myEntry);
    25.         } catch (AuthenticationException e) {
    26.             // TODO Auto-generated catch block
    27.             e.printStackTrace();
    28.         } catch (MalformedURLException e) {
    29.             // TODO Auto-generated catch block
    30.             e.printStackTrace();
    31.         } catch (IOException e) {
    32.             // TODO Auto-generated catch block
    33.             e.printStackTrace();
    34.         } catch (ServiceException e) {
    35.             // TODO Auto-generated catch block
    36.             e.printStackTrace();
    37.         }
    38.  
    I have also included some jar files from gdata from Downloads - gdata-java-client - Project Hosting on Google Code (gdata-client-1.0.jar also) but I am getting classdef not found exception for class com.google.gdata.client.GoogleService.
    Any help?Thanks
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Classdef found exception
  1. Roy Weil
    Replies:
    0
    Views:
    459
  2. rise_up
    Replies:
    19
    Views:
    739
  3. etienne langevin
    Replies:
    0
    Views:
    348
  4. Droidimies
    Replies:
    2
    Views:
    13,761
  5. harmonybest121
    Replies:
    3
    Views:
    2,551
  6. gviliou2003
    Replies:
    4
    Views:
    1,761
  7. gviliou2003
    Replies:
    6
    Views:
    3,715
  8. Rgarner
    Replies:
    17
    Views:
    1,194
  9. mumbe Arubernus
    Replies:
    3
    Views:
    1,253
  10. Paul 92029
    Replies:
    4
    Views:
    1,991

Share This Page

Loading...