You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Toast.makeText(context, "Need for Studyplus 2.14.0+", Toast.LENGTH_SHORT).show();
39
+
}
40
+
```
41
+
42
+
Then save its result.
43
+
44
+
```java
45
+
@Override
46
+
protectedvoid onActivityResult(int requestCode, int resultCode, Intent data) {
47
+
CertificationStore.create(context).update(data);
48
+
}
49
+
```
50
+
51
+
### Post a record to Studyplus
52
+
53
+
Create ApiRequest and send it with ApiClient.
54
+
55
+
```java
56
+
ApiRequest request =StudyRecordPostRequest.of(
57
+
newStudyRecordBuilder()
58
+
.setComment("perfect!")
59
+
.setAmountTotal(30)
60
+
.setDurationSeconds(2*60)
61
+
.build()
62
+
);
63
+
64
+
try {
65
+
StudyplusApi.getClient(context).send(request);
66
+
} catch (AccessTokenNotFound e) {
67
+
e.printStackTrace();
68
+
Toast.makeText(context, "Access token not exists", Toast.LENGTH_SHORT).show();
69
+
}
70
+
```
71
+
72
+
### More
25
73
26
-
Coming Soon
74
+
* See also [actual examples](https://github.com/studyplus/Studyplus-Android-SDK/blob/master/SDKExample/src/main/java/jp/studyplus/android/sdk/example/ExampleActivity.java).
0 commit comments