title: Android Google Drive - folder change listener
body: <p>I noticed that in new Google Drive API (v2) &amp; Google Play Services (04.03.23) there is <a href="https://developers.google.com/drive/android/events" rel="nofollow">change listeners to receive notifications whenever a specified file or folder has changes to its contents or metadata</a>. How to use it as listener for listening changes in whole appdata folder (folder used for application data only)? Thank you for any help in advance.</p>
  
  <pre><code>DriveFile file = Drive.DriveApi.getFile(mGoogleApiClient, mSelectedFileId);
  file.addChangeListener(mGoogleApiClient, changeListener);
  
  DriveFile file = Drive.DriveApi.getFile(mGoogleApiClient, mSelectedFileId);
  file.removeChangeListener(mGoogleApiClient, changeListener);
  
  final private Listener&lt;ChangeEvent&gt; changeListener = new Listener&lt;ChangeEvent&gt;() 
   {
   @Override
   public void onEvent(ChangeEvent event) 
       {
       mLogTextView.setText(String.format("File change event: %s", event));
       }
   };
  </code></pre>