Modify ApplicationInfo to Process.GetCurrentProcess
authorHyunho Kang <hhstark.kang@samsung.com>
Tue, 21 Mar 2017 01:46:19 +0000 (10:46 +0900)
committerjusung son <jusung07.son@samsung.com>
Wed, 22 Mar 2017 00:43:30 +0000 (09:43 +0900)
Change-Id: I7310b55b127f0f6db879188809f92eb522ee4bea
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/Tizen.Applications.DataControl/Tizen.Applications.DataControl.project.json
src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/MatrixCursor.cs

index ed5f888..2cdb4d9 100755 (executable)
@@ -1,6 +1,7 @@
 {
   "dependencies": {
     "NETStandard.Library": "1.6.0",
+    "System.Diagnostics.Process": "4.1.0",
     "System.Threading.Thread": "4.3.0",
     "Tizen": "1.0.2",
     "Tizen.Applications": "1.2.0"
index c0d8047..e01e2dc 100755 (executable)
@@ -19,6 +19,7 @@ using System.IO;
 using System.Text;
 using System.Collections.Generic;
 using System.Threading;
+using System.Diagnostics;
 
 namespace Tizen.Applications.DataControl
 {
@@ -384,7 +385,7 @@ namespace Tizen.Applications.DataControl
                 index++;
                 fileTable[threadID] = index;
 
-                path = DATACONTROL_DIRECTORY + Application.Current.ApplicationInfo.ApplicationId + "_"+Application.Current.ApplicationInfo.ProcessId.ToString() + "_" + threadID.ToString() + "_" + index.ToString();
+                path = DATACONTROL_DIRECTORY + Application.Current.ApplicationInfo.ApplicationId + "_" + Process.GetCurrentProcess().Id.ToString() + "_" + threadID.ToString() + "_" + index.ToString();
 
                 return path;
             }