From ccc09629fb5fd233b042bedfc7a5ca3dbedce05f Mon Sep 17 00:00:00 2001 From: wanglang Date: Wed, 27 May 2020 15:37:24 +0800 Subject: [PATCH] Add userId and deviceId api --- OSSDKDemo/app/libs/CloudserviceLib.jar | Bin 28322 -> 28506 bytes .../com/jeejio/ossdk/demo/MyApplicaion.java | 14 +++++++++++++- README.md | 16 ++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/OSSDKDemo/app/libs/CloudserviceLib.jar b/OSSDKDemo/app/libs/CloudserviceLib.jar index 2ffee8b6824d2440a593487d5391cfc2fbbdb171..0b9f8f84fc5f4a2698f48086f7d03d00ef49f080 100644 GIT binary patch delta 4038 zcmY*cc|6o#7alW~X(T%_c7yEMmz1^aTZZhiFEjRioos`$#8@K`A)yumc;2dAmo-1XJxyDzkmXg11)ah5<&3#~R+bU8~@1WfyiJHsa z2rg~r?`i4kU3e4o6Ar7T>!PZRu)9xPYM#YYbyvRw9g}}Cwxg9GfWNr@cHL}Wa?N>h zqipMw$dmB2_`bk-#Sw3reTzyl>2Vgza2t6Zb9-~GgO-r*9O}}WmId}Oakf^Qs?6pl z$4n$1W?e2LzNvUg4&)^vQvMz7hzhN#4fq%c+$IhC^a5^^5H@ow-qiqYV>kQ)f?Ki$ zts=Rv4#bL=r7?f>4Y$MTf^yqjI%0Ewo$3OcRJ(!(>Bk!r-rlD;0`Oz3s zyOVJ+bppl{AhzRI(fa5;_AU#nhu26&eFJ8Ee(b9)&<=U%Pcle=!i%^QP*$urGzu3F z68cs*oIui3YWjuU*Q@L)XCPjPLolasbBR4gu*|HwahE{z%S96N+m92dzBpJxyDY&!cSMBP+knMM8|cP8 zu`IH`*(5f$Soz00U7jQU#QV{rM^)FX!wT)?3Wkj6hm&;jn{&g&P|!X6`;ya#;CB*o zu|0L@YwE+LRCXVK_-p@iKiFAY_oi-0APJ?H#rKKX zXP@9AC@t>6J{#UzN0IMJnk$JZ8wdEa6rEnS<@L-6TTUDSRhZmC-E!I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java index 047c038..e089099 100644 --- a/OSSDKDemo/app/src/main/java/com/jeejio/ossdk/demo/MyApplicaion.java +++ b/OSSDKDemo/app/src/main/java/com/jeejio/ossdk/demo/MyApplicaion.java @@ -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; @@ -22,7 +23,6 @@ public class MyApplicaion extends Application { public void onCreate() { super.onCreate(); registerOSSDK(); - Log.e(TAG, JeejioCloudService.SDK_VERSION); } @Override @@ -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(); //注册云服务 diff --git a/README.md b/README.md index 8190868..5e802c3 100644 --- a/README.md +++ b/README.md @@ -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 | ●增加设备按键监听
●修改参数和返回值类型 | | 1.0.0 | 2019.09.27 | ●提供注册与云服务交互 |