Skip to content

Commit

Permalink
Merge pull request #4 from langgehenlang/master
Browse files Browse the repository at this point in the history
Add userId and deviceId api
  • Loading branch information
jeejio authored May 27, 2020
2 parents 75b6ead + ccc0962 commit 89153ac
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
Binary file modified OSSDKDemo/app/libs/CloudserviceLib.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.jeejio.ossdk.demo;

import android.app.Application;
import android.provider.Settings;
import android.util.Log;

import com.jeejio.cloudservice.sdk.HMessage;
Expand All @@ -22,7 +23,6 @@ public class MyApplicaion extends Application {
public void onCreate() {
super.onCreate();
registerOSSDK();
Log.e(TAG, JeejioCloudService.SDK_VERSION);
}

@Override
Expand All @@ -33,6 +33,18 @@ public void onTerminate() {


private void registerOSSDK(){

//获取sdk版本信息
Log.i(TAG, JeejioCloudService.SDK_VERSION);

//获取设备id
String deviceid = JeejioCloudService.getDeviceId(this);
Log.i(TAG, "deviceId = " + deviceid);

//获取userId
String userId = JeejioCloudService.getUserId(this);
Log.i(TAG, "userId = " + userId);

if (mCloudMessageListener == null){
mCloudMessageListener = new CloudMessageListener();
//注册云服务
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,28 @@ public class InputEventListener implements OnInputEventListener {
InputEventService.getInputEventService(mContext).unRegisterEventListener(mEventListener);
```

**3、获取基础信息**

```java
//获取sdk版本信息
Log.i(TAG, JeejioCloudService.SDK_VERSION);

//获取deviceId
String deviceid = JeejioCloudService.getDeviceId(this);
Log.i(TAG, "deviceId = " + deviceid);

//获取userId
String userId = JeejioCloudService.getUserId(this);
Log.i(TAG, "userId = " + userId);
```



## 更新日志

| 版本号 | 发布时间 | 更新内容 |
| ------ | ---------- | ------------------------------------------ |
| 1.2.1 | 2020.05.27 | ●增加获取userId、deviceId等基础信息接口 |
| 1.1.1 | 2020.05.15 | ●增加sdk版本信息接口 |
| 1.0.1 | 2020.03.24 | ●增加设备按键监听<br>●修改参数和返回值类型 |
| 1.0.0 | 2019.09.27 | ●提供注册与云服务交互 |
Expand Down

0 comments on commit 89153ac

Please sign in to comment.