The "getStringValue()" in String identifier = responses.get(0).getStringValue(); method shown below is not available to me in Android Studio or my version of Java (not sure). What should I do in order to retrieve the newly created resource ID? Thanks!!!
`bridge.createResource(scene, BridgeConnectionType.LOCAL, new BridgeResponseCallback() {
@Override
public void handleCallback(Bridge bridge, ReturnCode returnCode, List responses, List errors) {
if (returnCode == ReturnCode.SUCCESS) {
// Identifier of the created resource
String identifier = responses.get(0).getStringValue();
// ...
} else {
// ...
}
}
The "getStringValue()" in
String identifier = responses.get(0).getStringValue();
method shown below is not available to me in Android Studio or my version of Java (not sure). What should I do in order to retrieve the newly created resource ID? Thanks!!!`bridge.createResource(scene, BridgeConnectionType.LOCAL, new BridgeResponseCallback() {
)};`
Going off the examples shown here: https://developers.meethue.com/documentation/hue-sdk-guide-java