Using Files in Android Apps

The FileRequests class provides static methods for creating RestRequest objects that perform file operations. Each method returns the new RestRequest object. Applications then call the ownedFilesList() method to retrieve a RestRequest object. It passes this object as a parameter to a function that uses the RestRequest object to send requests to the server:

This example passes null to the first parameter (userId). This value tells the ownedFilesList() method to use the ID of the context, or logged-in, user. The second null, for the pageNum parameter, tells the method to fetch the first page of results.

For native Android apps, file management classes and methods live in the package.

See Also