Skip to content
This repository was archived by the owner on Jul 27, 2019. It is now read-only.

Commit e157a55

Browse files
committed
Added Application subclass.
1 parent 381ed00 commit e157a55

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package com.adobe.sendtodesktopapi;
2+
3+
import android.app.Application;
4+
5+
import com.adobe.creativesdk.foundation.AdobeCSDKFoundation;
6+
import com.adobe.creativesdk.foundation.auth.IAdobeAuthClientCredentials;
7+
8+
/**
9+
* Created by ash on 3/12/16.
10+
*/
11+
public class MainApplication extends Application implements IAdobeAuthClientCredentials {
12+
13+
/* Be sure to fill in the two strings below. */
14+
private static final String CREATIVE_SDK_CLIENT_ID = "<YOUR_CLIENT_ID_HERE>";
15+
private static final String CREATIVE_SDK_CLIENT_SECRET = "<YOUR_CLIENT_SECRET_HERE>";
16+
17+
@Override
18+
public void onCreate() {
19+
super.onCreate();
20+
AdobeCSDKFoundation.initializeCSDKFoundation(getApplicationContext());
21+
}
22+
23+
@Override
24+
public String getClientID() {
25+
return CREATIVE_SDK_CLIENT_ID;
26+
}
27+
28+
@Override
29+
public String getClientSecret() {
30+
return CREATIVE_SDK_CLIENT_SECRET;
31+
}
32+
}
33+

0 commit comments

Comments
 (0)