Saver.startSaving method

Last modified: September 30, 2014

Applies to: Office 365 | OneDrive

In this article
Return value
Remarks
Defined in
Package

Starts a new activity that allows users to pick where on their OneDrive they want to save a file

void startSaving(final Activity activity, final String filename, final Uri file)

Name

Type

Description

activity

Activity

The activity that will start the saver experience

filename

String

The name to save the file as

file

Uri

A readable file stream to upload onto OneDrive

The file parameter can point to the Uri of a single file, in the form file://<path>/<filename>; or, it can point to an Android content provider, in the form content://<path>/<filename>.

Implementing android.app.Activity.onActivityResult is required to get the saver results.

If the OneDrive application is not available, calling this method will open a marketplace so that users can install the OneDrive application.

Saver.java

Show: