0

I am using Maxmind Geo IP to read data from a database (in Java Android app). I have copied the database to the /src/main/assets folder. Below is a piece of code supplied by Maxmind to start reading from the database.

File database = new File("/path/to/GeoIP2-City.mmdb");

What is the correct path to use? I have tried:

"/data/data/com.mydomain.app/GeoIP2-Country.mmdb"

But that didn't work (file not found).

jww
  • 90,984
  • 81
  • 374
  • 818
P.Henderson
  • 891
  • 2
  • 12
  • 23

1 Answers1

0

MaxMindDBFile COUNTRY_DB /usr/local/share/GeoIP/GeoIP2-Country.mmdb MaxMindDBFile CITY_DB /usr/local/share/GeoIP/GeoIP2-City.mmdb

Faraz Baig
  • 56
  • 2