OSDN Git Service

複数プロセス、プリファレンス保存の不具合あり master
authorYuji Konishi <yuji.k64613@gmail.com>
Sat, 17 Sep 2011 02:44:26 +0000 (11:44 +0900)
committerYuji Konishi <yuji.k64613@gmail.com>
Sat, 17 Sep 2011 02:44:26 +0000 (11:44 +0900)
workspace/TrainDelayed/src/com/td/utility/PrefUtilImpl.java

index bd5a8e3..23f46dd 100755 (executable)
@@ -18,7 +18,7 @@ public class PrefUtilImpl implements PrefUtil {
 //                             Context.MODE_WORLD_READABLE | Context.MODE_WORLD_WRITEABLE);\r
                SharedPreferences pref = null;\r
                try {\r
 //                             Context.MODE_WORLD_READABLE | Context.MODE_WORLD_WRITEABLE);\r
                SharedPreferences pref = null;\r
                try {\r
-                       Context ctxt = context.createPackageContext("com.td", 0x02);\r
+                       Context ctxt = context.createPackageContext("com.td", Context.CONTEXT_RESTRICTED);\r
                        pref = ctxt.getSharedPreferences("TrainDelayedActivity",\r
                                        Context.MODE_WORLD_READABLE | Context.MODE_WORLD_WRITEABLE);\r
                } catch (NameNotFoundException e) {\r
                        pref = ctxt.getSharedPreferences("TrainDelayedActivity",\r
                                        Context.MODE_WORLD_READABLE | Context.MODE_WORLD_WRITEABLE);\r
                } catch (NameNotFoundException e) {\r
@@ -44,7 +44,7 @@ public class PrefUtilImpl implements PrefUtil {
 //                             Context.MODE_WORLD_READABLE);\r
                SharedPreferences pref = null;\r
                try {\r
 //                             Context.MODE_WORLD_READABLE);\r
                SharedPreferences pref = null;\r
                try {\r
-                       Context ctxt = context.createPackageContext("com.td", 0x02);\r
+                       Context ctxt = context.createPackageContext("com.td", Context.CONTEXT_RESTRICTED);\r
                        pref = ctxt.getSharedPreferences("TrainDelayedActivity",\r
                                        Context.MODE_WORLD_READABLE);\r
                } catch (NameNotFoundException e) {\r
                        pref = ctxt.getSharedPreferences("TrainDelayedActivity",\r
                                        Context.MODE_WORLD_READABLE);\r
                } catch (NameNotFoundException e) {\r