Add activity for NFC Transport.
authorJaehong Jo <jaehong.jo@samsung.com>
Mon, 21 Mar 2016 00:23:00 +0000 (09:23 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Tue, 5 Apr 2016 13:27:29 +0000 (13:27 +0000)
The activity required for the NFC adapter.

Change-Id: Id735532944dfb2f496043620c0b7b3230d534957
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6111
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 40fad8c44605a63a8c4943f5da5f62ea0535caf8)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7613

android/android_api/base/src/main/java/org/iotivity/base/PlatformConfig.java
android/examples/simpleclient/src/main/java/org/iotivity/base/examples/SimpleClient.java
android/examples/simpleserver/src/main/java/org/iotivity/base/examples/SimpleServer.java

index e298514..487f6a9 100644 (file)
@@ -105,7 +105,7 @@ public class PlatformConfig {
      *                         specify port
      * @param qualityOfService quality of service
      */
-    //Avoid breaking building java samples due to persistent storage SVR DB changes.
+    // Avoid breaking building java samples due to persistent storage SVR DB changes.
     public PlatformConfig(Context context,
                           ServiceType serviceType,
                           ModeType modeType,
@@ -128,9 +128,9 @@ public class PlatformConfig {
      *                         specify port
      * @param qualityOfService quality of service
      */
-    //Avoid breaking building java samples due to persistent storage SVR DB changes.
+    // Avoid breaking building java samples due to persistent storage SVR DB changes.
     public PlatformConfig(Activity activity,
-                            Context context,
+                          Context context,
                           ServiceType serviceType,
                           ModeType modeType,
                           String ipAddress,
index e96a444..a9d06a2 100644 (file)
@@ -78,6 +78,7 @@ public class SimpleClient extends Activity implements
         Context context = this;
 
         PlatformConfig platformConfig = new PlatformConfig(
+                this,
                 context,
                 ServiceType.IN_PROC,
                 ModeType.CLIENT,
index 7c41aea..707e1a1 100644 (file)
@@ -65,6 +65,7 @@ public class SimpleServer extends Activity {
         Context context = this;
 
         PlatformConfig platformConfig = new PlatformConfig(
+                this,
                 context,
                 ServiceType.IN_PROC,
                 ModeType.SERVER,