Sfoglia il codice sorgente

Make common files independent of content providers

master
Chris Smith 14 anni fa
parent
commit
cc3901d1e7

+ 2
- 4
code/Common/model/Journey.java Vedi File

@@ -24,8 +24,6 @@ package uk.co.md87.android.common.model;
24 24
 
25 25
 import android.net.Uri;
26 26
 
27
-import uk.co.md87.android.contextanalyser.JourneysContentProvider;
28
-
29 27
 /**
30 28
  * A journey is a sequence of actions which were observed as the user travelled
31 29
  * between one known {@link Place} and another.
@@ -40,8 +38,8 @@ public class Journey {
40 38
     public static final String STEPS = "steps";
41 39
     public static final String NUMBER = "number";
42 40
 
43
-    public static final Uri CONTENT_URI = Uri.parse("content://"
44
-                + JourneysContentProvider.AUTHORITY + "/journeys");
41
+    public static final Uri CONTENT_URI = Uri.parse("content://uk.co.md87"
42
+            + ".android.contextanalyser.journeyscontentprovider/journeys");
45 43
     public static final String CONTENT_TYPE = "vnd.contextanalyser.journey";
46 44
 
47 45
     private final long id;

+ 2
- 3
code/Common/model/JourneyStep.java Vedi File

@@ -23,7 +23,6 @@
23 23
 package uk.co.md87.android.common.model;
24 24
 
25 25
 import android.net.Uri;
26
-import uk.co.md87.android.contextanalyser.JourneysContentProvider;
27 26
 
28 27
 /**
29 28
  * A journey step is a single activity which occurred one or more times in a
@@ -39,8 +38,8 @@ public class JourneyStep {
39 38
     public static final String JOURNEY = "journey";
40 39
     public static final String NEXT = "next";
41 40
 
42
-    public static final Uri CONTENT_URI = Uri.parse("content://"
43
-                + JourneysContentProvider.AUTHORITY + "/steps");
41
+    public static final Uri CONTENT_URI = Uri.parse("content://uk.co.md87"
42
+            + ".android.contextanalyser.journeyscontentprovider/steps");
44 43
     public static final String CONTENT_TYPE = "vnd.contextanalyser.journeystep";
45 44
 
46 45
     private final long id;

+ 2
- 4
code/Common/model/Place.java Vedi File

@@ -24,8 +24,6 @@ package uk.co.md87.android.common.model;
24 24
 
25 25
 import android.net.Uri;
26 26
 
27
-import uk.co.md87.android.contextanalyser.PlacesContentProvider;
28
-
29 27
 /**
30 28
  * A place is a named location which has some significance for the user. Most
31 29
  * places come about when the user remains stationary for a period of time.
@@ -39,8 +37,8 @@ public class Place {
39 37
     public static final String LATITUDE = "lat";
40 38
     public static final String LONGITUDE = "lon";
41 39
 
42
-    public static final Uri CONTENT_URI = Uri.parse("content://"
43
-                + PlacesContentProvider.AUTHORITY + "/places");
40
+    public static final Uri CONTENT_URI = Uri.parse("content://uk.co.md87"
41
+            + ".android.contextanalyser.placescontentprovider/places");
44 42
     public static final String CONTENT_TYPE = "vnd.contextanalyser.location";
45 43
 
46 44
     private final long id;

Loading…
Annulla
Salva