Modified MTE with external map loading (from memory card) support

32 views
Skip to first unread message

Gurr

unread,
Apr 28, 2010, 6:09:20 PM4/28/10
to mobile-trail-explorer
Read carefully...

This is a modified version of Mobile Trail Explorer (v1.16beta). I
made some changes to
better suit my needs. Source included. I did not bother with the
copyright text in the
src files...

I changed the following things:
- added Google Hybrid, Google Terrain and Google Maps to maps sources
lists
- added a new caching mechanism, so you can put big maps to your
phone's memory card

!!! NOTE !!! The google sources are added to the cache namespace only,
it will NOT
download any actual map images! The sole purpoes of this is, that you
can -select- those
map sources, and you can put the images to the memory card to be
loaded via the new
mechanism.
I compiled it using JDK and Sony-ericsson WTK (no eclipse), so the
compilation maybe not
the same as the original. Hope the original author will make a
"proper" build from this.
I have reformatted the source code at some places (i could not read it
as it was). You
can format it back if you wish.

Usage:
Install MTE.jad and MTE.jar to you phone.
NOTE MTE.jad is signed with "halmer". Unless you have somehow
installed it to your phone,
it will give you an error, and you will not be able to install it.
"halmer" is not a
requirement, it just enables you to get rid of the security prompts
upon file system
access. Open MTE.jad with notepad, and remove these lines: 'MIDlet-
Certificate-1-1' and
'MIDlet-Jar-RSA-SHA1'. Now you have a non-signed .jad, try the install
again! It should
work now.

At this point you have an identically working MTE, as the original.
You have to download
some maps from google for example. I recommend Mobile Atlas Creator
(get it from here:
http://mobac.dnsalias.org/). In MOBAC select "Mobile Trail Explorer"
as output format;
NOT MTE cachefile! After you downloaded those maps, you will need
MTEMapContainerCreator
to pack it into a single file.

First you go into the downloaded map folder. You will see inside
something like this:
"Google_Hybrid". You have to rename this directory. See the table
below:

Map source Directory name
----------------------------------
Google Terrain gtmmaps
Google Maps gmmaps
Google Hybrid ghmmaps
Openstreet maps osmmaps
T@H maps tahmaps
Cycle maps cyclemaps

This is important, because the new caching mechanism will search files
inside directories
named like that (MTE's own cache does the same btw)!
You can have only one (1) map pack, but you can put several map areas
and map sources into
a single container file!

Ok, you downloaded the maps. Here is a example input directory as it
should look like:

c:\somewhere-on-your-hdd\map-name-you-gave-in-MOBAC\gtmmaps
\25\2341\632.png
c:\somewhere-on-your-hdd\map-name-you-gave-in-MOBAC\gtmmaps
\25\2341\633.png
c:\somewhere-on-your-hdd\map-name-you-gave-in-MOBAC\gtmmaps
\25\2342\632.png
c:\somewhere-on-your-hdd\map-name-you-gave-in-MOBAC\gtmmaps
\25\2342\633.png
c:\somewhere-on-your-hdd\map-name-you-gave-in-MOBAC\ghmmaps
\12\6362\422.png
c:\somewhere-on-your-hdd\map-name-you-gave-in-MOBAC\ghmmaps
\12\6362\423.png
c:\somewhere-on-your-hdd\map-name-you-gave-in-MOBAC\ghmmaps
\12\6362\424.png
c:\somewhere-on-your-hdd\map-name-you-gave-in-MOBAC\ghmmaps
\12\6362\425.png

Now start MTEMapContainerCreator. NOTE For the
MTEMapContainerCreator.exe you will need
the freeimage.dll. Download it from http://freeimage.sourceforge.net/.
In the directory pane select the map's directory; in this example its
"map-name-you-gave-in-MOBAC".
If your phone supports jpeg files, you may mark the "JPEG q:60"
checkbox. This will result
in a LOT smaller container file in the end. Press "Convert" and wait!

The output will be "romap.mmc" in the programs directory. Copy this
file to your phone. Put it
to the same dir as you set in MTE as export folder (same dir as
"mtefilecache" is in)! Its ready
to use! Any map tiles found in the container get automatically loaded,
instead of download from
network.

How well does it work, and how many map tiles you can pack in? The
theoretical limit is 2GB-1byte.
I tested on my SE W810i, currently using with a 186MB ! sized
container. It works pretty well.

Happy GPS mapping with MTE! If you have question try to contact me via
PM...

--
You received this message because you are subscribed to the Google Groups "mobile-trail-explorer" group.
To post to this group, send email to mobile-tra...@googlegroups.com.
To unsubscribe from this group, send email to mobile-trail-exp...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mobile-trail-explorer?hl=en.

ヴィカス ヤダヴァ (vikas yadav)

unread,
Apr 29, 2010, 3:16:17 AM4/29/10
to mobile-tra...@googlegroups.com
Hi,

The change reads very interesting.
Im on SE K790i. On a MTE cache of beyond ~5mb, MTE goes in too long loops locating the right tiles.
Have you worked on the tile locater code of MTE to improve this?

Also, where are your files?

Thanks,
Vikas

Lars Haack

unread,
Apr 29, 2010, 7:39:24 AM4/29/10
to mobile-trail-explorer
Hi,

the necessary files are 'hidden' in the files section of this project
site.
Please have a look for 'modified mte 1.16.rar'

Regards
Lars

On 29 Apr., 09:16, ヴィカス ヤダヴァ (vikas yadav) <mevi...@gmail.com> wrote:
> Hi,
>
> The change reads very interesting.
> Im on SE K790i. On a MTE cache of beyond ~5mb, MTE goes in too long loops
> locating the right tiles.
> Have you worked on the tile locater code of MTE to improve this?
>
> Also, where are your files?
>
> Thanks,
> Vikas
>
> > the freeimage.dll. Download it fromhttp://freeimage.sourceforge.net/.
> > In the directory pane select the map's directory; in this example its
> > "map-name-you-gave-in-MOBAC".
> > If your phone supports jpeg files, you may mark the "JPEG q:60"
> > checkbox. This will result
> > in a LOT smaller container file in the end. Press "Convert" and wait!
>
> > The output will be "romap.mmc" in the programs directory. Copy this
> > file to your phone. Put it
> > to the same dir as you set in MTE as export folder (same dir as
> > "mtefilecache" is in)! Its ready
> > to use! Any map tiles found in the container get automatically loaded,
> > instead of download from
> > network.
>
> > How well does it work, and how many map tiles you can pack in? The
> > theoretical limit is 2GB-1byte.
> > I tested on my SE W810i, currently using with a 186MB ! sized
> > container. It works pretty well.
>
> > Happy GPS mapping with MTE! If you have question try to contact me via
> > PM...
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mobile-trail-explorer" group.
> > To post to this group, send email to
> > mobile-tra...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mobile-trail-exp...@googlegroups.com<mobile-trail-explorer%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/mobile-trail-explorer?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "mobile-trail-explorer" group.
> To post to this group, send email to mobile-tra...@googlegroups.com.
> To unsubscribe from this group, send email to mobile-trail-exp...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/mobile-trail-explorer?hl=en.

Luca Pireddu

unread,
Apr 30, 2010, 8:42:19 AM4/30/10
to mobile-tra...@googlegroups.com
On 29 April 2010 00:09, Gurr <gurr...@gmail.com> wrote:
> Read carefully...
>
> This is a modified version of Mobile Trail Explorer (v1.16beta). I
> made some changes to
> better suit my needs. Source included. I did not bother with the
> copyright text in the
> src files...

<snip>

Hello. I'm very interested in trying out your improvements to MTE.
Will you release the code for the MTEMapContainerCreator utility as
well? I'd be interested in trying to build it for Linux.

Luca

Gurr

unread,
Apr 29, 2010, 2:58:27 PM4/29/10
to mobile-trail-explorer
Hi!

Yeah it's there in the files section, i could not attach it to my
post.

> Have you worked on the tile locater code of MTE to improve this?
I only added more code, did not changed the original file caching
code. The lookup goes first to MTE's original memory cache, then comes
my code, and finally if the tile was found none of those, gets to the
the original file cache. Because this is implemented as a caching
mechanism rather than a map source, tiles from romap cache
(abbreviated from read-only map), will not get written into the
original file cache. Also any tiles found in romap will be copied to
the memory cache (draw happens from there), and no tile query will
reach the file cache (for that tile). I can not tell if it is faster,
than a 5MB file cache, but since my W810i is not a new phone, and
neither is it a very fast one, but still it works pretty good with an
almost 200MB sized romap file, i am fairly certain, that it will beat
the file cache in any way. Of course romap is read-only, so file cache
is useful when you are downloading tiles from the internet. Those
still need to be cached somewhere.

I would say try it yourself. Because i named the WTK project "mte", it
will install with that name to your phone. That means it will not
overwrite your original one. You can in fact have the official
unmodified one alongside my build, and choose which one to use upon
your needs.

Gurr

unread,
Apr 30, 2010, 9:36:25 AM4/30/10
to mobile-trail-explorer
Hello!

That utility is written in Delphi 5, i am not sure if it is possible
to build it on linux. I think you could try to run it with wine.
Though if you are still interested, i will release the code (but i
warn you, it got a bit "thrown" together, so probably it will need
some "maintenance" before releasing).

On Apr 30, 2:42 pm, Luca Pireddu <pire...@gmail.com> wrote:

Luca Pireddu

unread,
May 3, 2010, 5:47:31 PM5/3/10
to mobile-tra...@googlegroups.com
On 30 April 2010 15:36, Gurr <gurr...@gmail.com> wrote:
> Hello!
>
> That utility is written in Delphi 5, i am not sure if it is possible
> to build it on linux. I think you could try to run it with wine.
> Though if you are still interested, i will release the code (but i
> warn you, it got a bit "thrown" together, so probably it will need
> some "maintenance" before releasing).

Nice work on this. I tried it this weekend and managed to bring along
an atlas, 186 MB in size, covering different areas at several zoom
levels. I followed your instructions and everything worked well.

In the end I ran the MTEMapContainerCreator.exe utility on a
VirtualBox virtual machine. It took a while, but it got the job done.
Have you thought about releasing the code?

ヴィカス ヤダヴァ (vikas yadav)

unread,
May 4, 2010, 9:09:47 AM5/4/10
to mobile-tra...@googlegroups.com
Hi,

My compile system is broken these days so can anybody please binary the latest checkout so I can also join the fun?

(me on linux this time and setting up nokia or sony WTKs is seeming impossible. (they only share windows exes). there is a nokia library call from backlight module and i gave up)

Thanks a lot.
Vikas

Gurr

unread,
May 4, 2010, 2:03:10 PM5/4/10
to mobile-trail-explorer
Source uploaded to the files section. I give it to you as is, i did
not had the time cleanup the code...

Gurr

unread,
May 4, 2010, 2:06:21 PM5/4/10
to mobile-trail-explorer

I am not sure what you want, but if you are looking for the modified
version i made, you find it in the files section ('modified mte
1.16.rar').


On máj. 4, 15:09, ヴィカス ヤダヴァ (vikas yadav) <mevi...@gmail.com> wrote:
> Hi,
>
> My compile system is broken these days so can anybody please binary the
> latest checkout so I can also join the fun?
>
> (me on linux this time and setting up nokia or sony WTKs is seeming
> impossible. (they only share windows exes). there is a nokia library call
> from backlight module and i gave up)
>
> Thanks a lot.
> Vikas
>
> On 4 May 2010 03:17, Luca Pireddu <pire...@gmail.com> wrote:
>
>
>
>
>
> > On 30 April 2010 15:36, Gurr <gurrs...@gmail.com> wrote:
> > > Hello!
>
> > > That utility is written in Delphi 5, i am not sure if it is possible
> > > to build it on linux. I think you could try to run it with wine.
> > > Though if you are still interested, i will release the code (but i
> > > warn you, it got a bit "thrown" together, so probably it will need
> > > some "maintenance" before releasing).
>
> > Nice work on this.  I tried it this weekend and managed to bring along
> > an atlas, 186 MB in size, covering different areas at several zoom
> > levels.  I followed your instructions and everything worked well.
>
> > In the end I ran the MTEMapContainerCreator.exe utility on a
> > VirtualBox virtual machine.  It took a while, but it got the job done.
> >  Have you thought about releasing the code?
>
> > Luca
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mobile-trail-explorer" group.
> > To post to this group, send email to
> > mobile-tra...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mobile-trail-exp...@googlegroups.com<mobile-trail-explorer%2B unsub...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/mobile-trail-explorer?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "mobile-trail-explorer" group.
> To post to this group, send email to mobile-tra...@googlegroups.com.
> To unsubscribe from this group, send email to mobile-trail-exp...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/mobile-trail-explorer?hl=en.

Luca Pireddu

unread,
May 11, 2010, 2:40:11 PM5/11/10
to mobile-tra...@googlegroups.com
On 4 May 2010 20:03, Gurr <gurr...@gmail.com> wrote:
> Source uploaded to the files section. I give it to you as is, i did
> not had the time cleanup the code...

Thanks Gurr. I'll try to spend some time on it this week.

mitesh gada

unread,
May 11, 2010, 2:53:15 PM5/11/10
to mobile-tra...@googlegroups.com
Can any1 please send me the updated code for the Mobile Trail Explore...Please I need it
 
 
Regards,
Mitesh Gada

--
Thanks,

Mitesh Gada
Cell #: 09987074970
Go Green!  Please consider the environment before printing.

Mitesh Gada

unread,
May 12, 2010, 6:14:18 AM5/12/10
to mobile-tra...@googlegroups.com, pir...@gmail.com
Hello Sir,
 
how do you do??.Sir I one issue..regarding Mobile trail Explorer application...I hv downloaded this application into my handsets..but its showing KML exception and how to import waypoint please please help me out Sir.
Its showing

KML: Save Failed. Java.lang.Exception: Write to File Open Connector:...
Java.lang.Security Exception: Access Denied

ヴィカス ヤダヴァ (vikas yadav)

unread,
May 12, 2010, 11:29:49 AM5/12/10
to mobile-tra...@googlegroups.com, pir...@gmail.com
Guessing: On first run, you need to set the Settings>output folder correctly. Set it and restart. Then also ALLOW for file access when prompted.

What handset are you using?

mitesh gada

unread,
May 12, 2010, 1:31:22 PM5/12/10
to mobile-tra...@googlegroups.com, mev...@gmail.com
Hello Sir,
 
I am using Nokia 6233 model. where is the settings? and how we need to import files or places. When I am doing it. Its showing me an error Sir...Please help me out by this
 
 
WIll be thankful to YOU
 
I m online @ mitesh...@gmail.com or mitesh_g...@yahoo.com. Please add me
 
 
Regards,
Mitesh Gada
 


 
2010/5/12 ヴィカス ヤダヴァ (vikas yadav) <mev...@gmail.com>
Reply all
Reply to author
Forward
0 new messages