Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / service / protocol-plugin / plugins / Android / plugin.hue / src / oic / plugin / hue / Activator.java
index 64f831c..22eb81b 100644 (file)
@@ -230,7 +230,7 @@ public class Activator extends Activity implements BundleActivator {
                                                            System.currentTimeMillis());
 
                                            PlatformConfig cfg = new PlatformConfig(
-                                                   this,
+                                                   getBaseContext(),
                                                    ServiceType.IN_PROC,
                                                    ModeType.CLIENT_SERVER,
                                                    "0.0.0.0", 0,
@@ -244,7 +244,7 @@ public class Activator extends Activity implements BundleActivator {
                                                        .registerResource(
                                                                "/a/huebulb",
                                                                "device.light",
-                                                               "oc.mi.def",
+                                                               OcPlatform.DEFAULT_INTERFACE,
                                                                entitycb,
                                                                EnumSet.of(ResourceProperty.DISCOVERABLE));
                                            } catch (OcException e) {