Commit ec2b5f24 authored by coderhyme's avatar coderhyme Committed by JungHo Kim

[IOT-1032][IOT-1033][IOT-1034] Fixed for an issue with android sample application.

It seems discovered resource is not what it should be in sample client.
It happens because method finding resource is changed.

Change-Id: Ib820319658038f7969fbd503b374c9d1933adb09
Signed-off-by: default avatarcoderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6265Reviewed-by: default avatarMarkus Jung <markus.jung85@gmail.com>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarMadan Lanka <lanka.madan@samsung.com>
parent a986bf9f
......@@ -63,6 +63,7 @@ public class ResourceClientActivity extends Activity
private static final int MSG_ID_ATTRIBUTE_RECEIVED = 1;
private static final int MSG_ID_PRINT_LOG = 2;
private static final String RESOURCE_TYPE = "oic.r.temperature.sensor";
private static final String ATTR_KEY_TEMPERATURE = "Temperature";
private TextView mLogView;
......@@ -287,7 +288,7 @@ public class ResourceClientActivity extends Activity
if (mDiscoveryTask == null) {
try {
mDiscoveryTask = RcsDiscoveryManager.getInstance()
.discoverResource(RcsAddress.multicast(),
.discoverResourceByType(RcsAddress.multicast(), RESOURCE_TYPE,
mOnResourceDiscoveredListener);
mDiscoveryBtn.setText(R.string.cancel_discovery);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment