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>
Mon, 28 Mar 2016 09:50:12 +0000 (09:50 +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>
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 e2985144a4cc48e357c42ecece51fd449039c223..487f6a92d10ebbaebddbdaba1cbdba6fab33273d 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 e96a4446d14eb176c3d7b5f24a21d3b2c60ea300..a9d06a2b3a0e3bda36e0ef0ceb91727bc91e9a70 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 7c41aea81f451359cb0554efb199f1aa694a3746..707e1a1928478ebd9c145f82b235552fa09b3bc5 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,