it seems like your device uses different file paths. Try to use a
generic approach like this:
mapView.setMapFile(Environment.getExternalStorageDirectory().getAbsolutePath()
+ "/kaluga3.map");
Regards,
Karsten
2012/2/24 Olga Efremova <o_efr...@mail.ru>:
24 февраля 2012, 17:44 от Karsten Groll <karste...@googlemail.com>:
> Hello,
>
> it seems like your device uses different file paths. Try to use a
> generic approach like this:
>
> mapView.setMapFile(Environment.getExternalStorageDirectory().getAbsolutePath()
> + "/kaluga3.map");
>
> Regards,
>
> Karsten
>
> 2012/2/24 Olga Efremova <o_efr...@mail.ru>:
С уважением
Ефремова Ольга
"Российские космические системы"
o_efr...@mail.ru
To find out the correct directory, you can write a small application
that creates a file in your desired directory:
File f = new File(Environment.getExternalStorageDirectory().getAbsolutePath()
+ "/test.txt");
f.createNewFile();
Run this application and check where the file has been created.
Regards,
Karsten
2012/2/27 Ольга Ефремова <o_efr...@mail.ru>:
mapView.setMapFile(Environment.getExternalStorageDirectory().getAbsolutePath() + "/sdcard/kaluga3.map");
Thank you!
27 февраля 2012, 14:02 от Karsten Groll <karste...@googlemail.com>:
> I assume you use ADB to push files to your device. If there is just a
> sdcard directory, try to push your file to that directory. The problem
> might be that your device has internal and external memory available.
>
> To find out the correct directory, you can write a small application
> that creates a file in your desired directory:
>
> File f = new File(Environment.getExternalStorageDirectory().getAbsolutePath()
> + "/test.txt");
> f.createNewFile();
>
> Run this application and check where the file has been created.
>
> Regards,
>
> Karsten
>
> 2012/2/27 Ольга Ефремова <o_efr...@mail.ru>:
> > Hi!
> > Thank you very much for answer. I've checked the path, like you write. My program give me path /mnt/storage/kaluga3.map.
> > But I do not understand how to put my file kaluga3.map to this place. Because when I connect android device to the computer, I do not see directory /mnt/storage. I see sdcard directory and several android directories, but there is not /mnt/storage. Can you help me, how to put kaluga3.map file to the /mnt/storage directory. Maybe is it necessary to use the settings from android device? Help me, please!
> > Thank you.
> >
> >
> >
> > 24 февраля 2012, 17:44 от Karsten Groll <karste...@googlemail.com>:
> >> Hello,
> >>
> >> it seems like your device uses different file paths. Try to use a
> >> generic approach like this:
> >>
> >> mapView.setMapFile(Environment.getExternalStorageDirectory().getAbsolutePath()
> >> + "/kaluga3.map");
> >>
> >> Regards,
> >>
> >> Karsten
> >>
> >> 2012/2/24 Olga Efremova <o_efr...@mail.ru>: