1page.title=Google Drive Android API
2page.tags="storage","files","cloud"
3header.hide=1
4
5@jd:body
6
7    <div class="landing-banner">
8      <div class="col-6">
9        <img src="{@docRoot}images/google/gps-drive.png" alt="">
10      </div>
11
12      <div class="col-6">
13        <h1 itemprop="name" style="margin-bottom:0;">
14          Google Drive Android API
15        </h1>
16
17        <p itemprop="description">
18          Give your users access to their files, wherever they are, on any device.
19          The Google Drive Android API makes it easier than ever to use Drive to
20          store and sync user’s files between their mobile devices and the cloud.
21          Simply use Drive like local file storage and the API will handle the
22          syncing for you.
23        </p>
24
25        <p>
26          Explore the <a href=
27          "{@docRoot}reference/com/google/android/gms/drive/package-summary.html">Google
28          Drive Android API reference</a> or visit <a href=
29          "http://developers.google.com/drive/android">developers.google.com/drive/android</a>
30          for more information about integrating Google Drive into your app.
31        </p>
32      </div>
33    </div>
34
35    <div class="landing-docs">
36      <div class="col-6 normal-links">
37        <h3 style="clear:left">
38          Key Developer Features
39        </h3>
40
41        <h4>
42          Automatic syncing
43        </h4>
44
45        <p>
46          The Google Drive Android API uses the local device storage to create,
47          edit, and open files, then syncs them automatically when the device
48          is connected to the Internet. If a user requests a file that isn’t
49          already cached on the device, the Drive service downloads the file
50          the next time the device connects.<br>
51          <a href="http://developers.google.com/drive/android/files" class=
52          "external-link">Open a file</a>
53        </p>
54
55        <h4>
56          User interface components
57        </h4>
58
59        <p>
60          Building your own user interface for selecting or creating files is a
61          thing of the past. The Drive API includes activity builders for two
62          of the most common user activities: opening files and creating
63          files.<br>
64          <a href="http://developers.google.com/drive/android/create-file"
65          class="external-link">Create a file</a>
66        </p>
67
68        <h4>
69          Easily search for files
70        </h4>
71
72        <p>
73          The query builder allows you to easily construct a query by joining
74          together multiple parameters and filtering based on metadata. This
75          allows you to easily display only relevant files, such as files
76          shared with the user or files with a specific MIME type.<br>
77          <a class="external-link" href=
78          "http://developers.google.com/drive/android/queries">Query for a
79          file</a>
80        </p>
81      </div>
82
83      <div class="col-6 normal-links">
84        <h3 style="clear:left">
85          Getting Started
86        </h3>
87
88        <h4>
89          1. Get the Google Play services SDK
90        </h4>
91
92        <p>
93          The Google Drive Android API is part of the Google Play services
94          platform.
95        </p>
96
97        <p>
98          To get started, <a href=
99          "{@docRoot}google/play-services/setup.html">set up the Google Play
100          services SDK</a>.
101        </p>
102
103        <h4>
104          2. Run the sample
105        </h4>
106
107        <p>
108          Once you’ve set up the Google Play services SDK, you can run the
109          Google Drive sample located in
110          <code>&lt;android-sdk&gt;/extras/google-play-services/samples/drive</code>.
111          However, before you can run the sample, you need to register your app
112          in the Google Developers Console.
113        </p>
114
115        <p>
116          See <a class="external-link" href=
117          "http://developers.google.com/drive/android/get-started">Getting
118          Started guide</a> to learn how to get up and running with the Google
119          Drive Android API.
120        </p>
121
122        <h4>
123          3. Read the documentation
124        </h4>
125
126        <p>
127          For quick access while developing your Android apps, the <a href=
128          "{@docRoot}reference/com/google/android/gms/drive/package-summary.html">
129          Google Drive API reference</a> is available here on
130          developer.android.com.
131        </p>
132
133        <p>
134          Detailed documentation for the Google Drive Android API is available
135          with the rest of the Google Drive Platform documentation at <a class=
136          "external-link" href=
137          "https://developers.google.com/drive/android">developers.google.com/drive</a>.
138        </p>
139      </div>
140    </div>
141