Skip to content

Commit 27626c0

Browse files
committed
Add API key to BackupRestore sample code.
Change-Id: If80cbceffc213fdc6059fe22bf0e24520fba5f2d Bug: 2735063
1 parent 39d7a74 commit 27626c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

samples/BackupRestore/AndroidManifest.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
<application android:label="Backup/Restore"
3131
android:backupAgent="ExampleAgent">
3232

33-
<activity android:name="BackupRestoreActivity">
33+
<!-- Some backup transports may require API keys or other metadata -->
34+
<meta-data android:name="com.google.android.backup.api_key"
35+
android:value="INSERT YOUR API KEY HERE" />
36+
37+
<activity android:name="BackupRestoreActivity">
3438
<intent-filter>
3539
<action android:name="android.intent.action.MAIN" />
3640
<category android:name="android.intent.category.LAUNCHER" />

0 commit comments

Comments
 (0)