Changeset 209
- Timestamp:
- 05/08/08 14:21:02 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bbtracker/trunk/src/org/bbtracker/mobile/BBTracker.java
r164 r209 19 19 20 20 import java.util.Timer; 21 import java.util.Vector; 21 22 22 23 import javax.microedition.lcdui.Alert; … … 59 60 private static boolean bluetoothAvailable = false; 60 61 62 // #ifndef AVOID_FILE_API 61 63 private static boolean fileUrlAvailable = false; 64 65 // #endif 62 66 63 67 private final TrackManager trackManager; … … 162 166 } 163 167 168 // #ifndef AVOID_FILE_API 164 169 public static boolean isFileUrlAvailable() { 165 170 return fileUrlAvailable; 166 171 } 172 173 // #endif 167 174 168 175 protected void destroyApp(final boolean force) throws MIDletStateChangeException { … … 227 234 fileUrlAvailable = (fileConnectionVersion != null); 228 235 addAPI("File", fileUrlAvailable); 229 // #else230 // @ fileUrlAvailable = false;231 236 // #endif 232 237 233 final TrackStore[] trackStores = new TrackStore[fileUrlAvailable ? 2 : 1]; 234 trackStores[0] = new RMSTrackStore(); 238 final Vector stores = new Vector(); 235 239 // #ifndef AVOID_FILE_API 236 240 if (fileUrlAvailable) { 237 trackStores[1] = new FileTrackStore();241 stores.addElement(new FileTrackStore()); 238 242 } 239 243 // #endif 244 stores.addElement(new RMSTrackStore()); 245 final TrackStore[] trackStores = new TrackStore[stores.size()]; 246 stores.copyInto(trackStores); 240 247 final LocationProvider locationProvider; 241 248
Note: See TracChangeset
for help on using the changeset viewer.