1 |
package dk.thoerup.traininfo.provider; |
package dk.thoerup.traininfo.provider; |
2 |
|
|
|
import java.io.EOFException; |
|
3 |
import java.io.File; |
import java.io.File; |
4 |
import java.io.FileInputStream; |
import java.io.FileInputStream; |
5 |
import java.io.FileOutputStream; |
import java.io.FileOutputStream; |
28 |
|
|
29 |
StationBean stations = new StationBean(); |
StationBean stations = new StationBean(); |
30 |
|
|
31 |
|
public boolean hasStations() { |
32 |
|
return (stations != null && stations.entries.size() > 0); |
33 |
|
} |
34 |
|
|
35 |
|
|
36 |
public boolean loadStations(Context context) throws Exception { |
public boolean loadStations(Context context) throws Exception { |
37 |
long start = System.currentTimeMillis(); |
long start = System.currentTimeMillis(); |