Skip to content

Commit 39918ce

Browse files
committed
Set the AppName and DeviceName according to our recommendations.
1 parent de8b650 commit 39918ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

QuickStartApp/src/com/philips/lighting/quickstart/PHHomeActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ protected void onCreate(Bundle savedInstanceState) {
5656
phHueSDK = PHHueSDK.create();
5757

5858
// Set the Device Name (name of your app). This will be stored in your bridge whitelist entry.
59-
phHueSDK.setDeviceName("QuickStartApp");
59+
phHueSDK.setAppName("QuickStartApp");
60+
phHueSDK.setDeviceName(android.os.Build.MODEL);
6061

6162
// Register the PHSDKListener to receive callbacks from the bridge.
6263
phHueSDK.getNotificationManager().registerSDKListener(listener);

0 commit comments

Comments
 (0)