10
10
import android .content .Context ;
11
11
import android .content .Intent ;
12
12
import android .support .v4 .content .LocalBroadcastManager ;
13
- import android .telephony .CellLocation ;
14
- import android .telephony .TelephonyManager ;
15
13
import android .util .Log ;
16
14
17
15
import com .SecUpwN .AIMSICD .AIMSICD ;
20
18
import com .SecUpwN .AIMSICD .activities .MapViewerOsmDroid ;
21
19
import com .SecUpwN .AIMSICD .adapters .AIMSICDDbAdapter ;
22
20
import com .SecUpwN .AIMSICD .constants .TinyDbKeys ;
23
- import com .SecUpwN .AIMSICD .service .AimsicdService ;
24
21
import com .SecUpwN .AIMSICD .service .CellTracker ;
25
22
26
23
import org .apache .http .HttpResponse ;
@@ -116,9 +113,6 @@ public class RequestTask extends BaseAsyncTask<String, Integer, String> {
116
113
private final Context mAppContext ;
117
114
private final char mType ;
118
115
private int mTimeOut ;
119
- private CellTracker mCellTracker ;
120
- private AimsicdService mAimsicdService ;
121
- private static TelephonyManager tm ;
122
116
123
117
public RequestTask (Context context , char type ) {
124
118
super ((Activity )context );
@@ -320,8 +314,6 @@ protected void onPostExecute(String result) {
320
314
super .onPostExecute (result );
321
315
AIMSICD .mProgressBar .setProgress (0 );
322
316
TinyDB tinydb = TinyDB .getInstance ();
323
- tm = (TelephonyManager )mAppContext .getSystemService (Context .TELEPHONY_SERVICE );
324
- CellLocation cellLocation = tm .getCellLocation ();
325
317
326
318
switch (mType ) {
327
319
case DBE_DOWNLOAD_REQUEST :
@@ -332,9 +324,8 @@ protected void onPostExecute(String result) {
332
324
}
333
325
334
326
mDbAdapter .checkDBe ();
335
- tinydb .putBoolean ("ocid_downloaded" , true );
336
327
337
- mAimsicdService . getCellTracker (). compareLac ( cellLocation );
328
+ tinydb . putBoolean ( "ocid_downloaded" , true );
338
329
} else {
339
330
Helpers .msgLong (mAppContext , mAppContext .getString (R .string .error_retrieving_opencellid_data ));
340
331
}
@@ -349,8 +340,6 @@ protected void onPostExecute(String result) {
349
340
350
341
mDbAdapter .checkDBe ();
351
342
tinydb .putBoolean ("ocid_downloaded" , true );
352
-
353
- mAimsicdService .getCellTracker ().compareLac (cellLocation );
354
343
}
355
344
} else {
356
345
Helpers .msgLong (mAppContext , mAppContext .getString (R .string .error_retrieving_opencellid_data ));
@@ -451,4 +440,4 @@ public static String getOCDBDownloadDirectoryPath(Context context) {
451
440
public static String getOCDBDownloadFilePath (Context context ) {
452
441
return getOCDBDownloadDirectoryPath (context ) + OCDB_File_Name ;
453
442
}
454
- }
443
+ }
0 commit comments