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
  • 97,681
  • 90
  • 411
  • 885
P.Henderson
  • 1,001
  • 2
  • 13
  • 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
  • 66
  • 2