Reply – Re: Attach shapefile on Android
Your Name
Subject
Message
or Cancel
In Reply To
Re: Attach shapefile on Android
— by moovida moovida
I confirm that by substituting just the sidecar file searching using DirectoryStream with something simple:

        File tmpFile = new File(fileNamePrefix + ".shx");
        if (tmpFile.exists())
            shxFile = tmpFile;
        tmpFile = new File(fileNamePrefix + ".dbf");
        if (tmpFile.exists())
            dbfFile = tmpFile;
        tmpFile = new File(fileNamePrefix + ".prj");
        if (tmpFile.exists())
            prjFile = tmpFile;

The SHPDriver works also on Android.

Not sure if this might be a change you would consider to make this work on Android?

Else is it possible to substitute the class used in the attach shp statement?


Thanks,
Andrea