Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8018113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:03:03+00:00 2026-06-04T21:03:03+00:00

I want to create an Android client app for Google Documents List API, taking

  • 0

I want to create an Android client app for Google Documents List API, taking into account that it might be replaced by the Google Drive API in the near future. Therefore, I implemented authentication using google-api-java-client, which would presumably ease a transition to the new API if needed.

Now I’m trying to extend the DocsClient.java class, found in the shared-sample-docs project provided by Google, in order to be able to share documents with user contacts.

I found no better information on this matter than the following introduction written by @yanivinbar: http://javadoc.google-api-java-client.googlecode.com/hg/1.4.1-beta/com/google/api/client/googleapis/xml/atom/package-summary.html

From the Google Documents List API docs, I figured out ACL is used to give other users access to a specific document. However, it’s not clear to me which methods I should implement to achive this or other common API related transactions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:03:06+00:00Added an answer on June 4, 2026 at 9:03 pm

    You are right, you need to add ACL entry for your document entry. You can have method as below :

    public void shareFile(DocumentListEntry documentListEntry,
            AclScope.Type type, String value, String role)
            throws MalformedURLException, IOException, ServiceException {
    
        // Instantiate a AclEntry object to update sharing permissions.
        AclEntry acl = new AclEntry();
    
        // Set the ACL scope.
        acl.setScope(new AclScope(type, value));
    
        // Set the ACL role.
        acl.setRole(new AclRole(role));
    
        // Insert the new role into the ACL feed.
        service.insert(new URL(documentListEntry.getAclFeedLink().getHref()), acl);             
    }
    

    Here service is an object of com.google.gdata.client.docs.DocsService . Also you can specify different sharing types and roles on your documents.

    Possible calls for above method can be

    shareFile(entryObj,AclScope.Type.USER,"your email id",AclRole.OWNER);
    shareFile(entryObj,AclScope.Type.DOMAIN,"domain name",AclRole.READER);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create an Android application that is a client for an Internet
I want to create a android search application that can be used to search
I want to create an application for Android that will be able to scan
In my app,I want to create a image of QRCode shows on my Android
I want to create an Android application that has a MapView at the top
I want to create an android application that acts like a proxy, all Internet
I'm writing an sample app to create a Server on Android and a client
I want to create android buttons but the look something like the one in
So, I want to create a custom Android TextView with a border INSIDE AN
I want to create a twitter application in Android. For this I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.