Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
89014d1eb9
2 changed files with 8 additions and 1 deletions
|
@ -68,6 +68,7 @@ android {
|
|||
jniLibs.srcDirs = ["libs"]
|
||||
aidl.srcDirs = ["src"]
|
||||
java.srcDirs = ["src"]
|
||||
resources.srcDirs = ["src"]
|
||||
renderscript.srcDirs = ["src"]
|
||||
res.srcDirs = ["res"]
|
||||
assets.srcDirs = ["assets"]
|
||||
|
|
|
@ -6,7 +6,13 @@ import android.os.Environment;
|
|||
import net.osmand.osm.AbstractPoiType;
|
||||
import net.osmand.osm.MapPoiTypes;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.StringReader;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
public class SampleApplication extends Application
|
||||
|
@ -27,7 +33,7 @@ public class SampleApplication extends Application
|
|||
|
||||
private void initPoiTypes() {
|
||||
poiTypes = MapPoiTypes.getDefaultNoInit();
|
||||
poiTypes.init(new File(Environment.getExternalStorageDirectory(), "poi_types.xml").getAbsolutePath());
|
||||
poiTypes.init(Environment.getExternalStorageDirectory() + "/osmand/poi_types.xml");
|
||||
poiTypes.setPoiTranslator(new MapPoiTypes.PoiTranslator() {
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue