Fix gradle config

This commit is contained in:
Alexey Kulish 2016-06-16 18:14:22 +03:00
parent 79f53d9a5c
commit 46b83f672b
2 changed files with 8 additions and 1 deletions

View file

@ -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"]

View file

@ -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