title: Android Login with Google Plus Account
body: <p>I successfully logged into my Google Plus Account using Google+ API following this tutorial:</p>
  
  <p><a href="http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/" rel="nofollow">Android Login with Google Plus Account</a></p>
  
  <p>and got some of the user's information (Name, Email, plus Profile URL, Image etc..).</p>
  
  <p>The problem I faced is that I can't get user's activities (I mean the last posts on user's "wall").
  I know that using Google Plus API I can only get public activities however I'm not able even to get those.
  The code I'm using is</p>
  
  <pre><code>            // This sample assumes a client object has been created.
              // To learn more about creating a client, check out the starter:
              //  https://developers.google.com/+/quickstart/java
              Plus.Activities.List listActivities = plus.activities().list("me", "public");
              listActivities.setMaxResults(5L);
  
              // Execute the request for the first page
              ActivityFeed activityFeed = listActivities.execute();
  
              // Unwrap the request and extract the pieces we want
              List&lt;Activity&gt; activities = activityFeed.getItems();
  
              // Loop through until we arrive at an empty page
              while (activities != null) {
                  for (Activity activity : activities) {
                      System.out.println("ID " + activity.getId() + " Content: " +
                              activity.getObject().getContent());
                  }
  
                  // We will know we are on the last page when the next page token is null.
                  // If this is the case, break.
                  if (activityFeed.getNextPageToken() == null) {
                      break;
                  }
  
                  // Prepare to request the next page of activities
                  listActivities.setPageToken(activityFeed.getNextPageToken());
  
                  // Execute and process the next page request
                  activityFeed = listActivities.execute();
                  activities = activityFeed.getItems();
              }
  </code></pre>
  
  <p>And I got it form Google+ API official website at this address:</p>
  
  <p><a href="https://developers.google.com/+/api/latest/activities/list" rel="nofollow">Google+ Platform: Activities: list</a></p>
  
  <p>When ever I try to compile and run I get the following error message:</p>
  
  <pre><code>Error:Execution failed for task ':app:compileDebugJava'.
  &gt; Compilation failed; see the compiler error output for details.
  Error:(207, 21) error: cannot find symbol class Activities
  Error:(207, 55) error: cannot find symbol variable plus
  Error:(211, 17) error: cannot find symbol class ActivityFeed
  Error:(214, 17) error: cannot find symbol class List
  Error:(219, 60) error: cannot find symbol method getId()
  Error:(220, 41) error: cannot find symbol method getObject()
  </code></pre>
  
  <p>Anyone can help me?
  Thanks a lot.</p>