maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Google Maps Official (Java Version) (https://talk.maemo.org/showthread.php?t=88182)

Val Demar 2013-01-01 11:31

Re: Google Maps Official (Java Version)
 
Thanks guys! I've been struggling lately to find reasons to make a decision to replace my N900 with something else, now it is pretty much impossibe :)

Anyone knows if it is possible to icrease heap space for a midlet? Having difficulty with the live traffic as the app tends to run short on memory when it's enabled and it gets turned off automatically.

Edit: OMG, street view works too!

jukk 2013-01-01 16:01

Re: Google Maps Official (Java Version)
 
Very nice, thanks!

semdev01 2013-01-02 05:12

Re: Google Maps Official (Java Version)
 
Quote:

Originally Posted by Val Demar (Post 1309675)
Thanks guys! I've been struggling lately to find reasons to make a decision to replace my N900 with something else, now it is pretty much impossibe :)

Anyone knows if it is possible to icrease heap space for a midlet? Having difficulty with the live traffic as the app tends to run short on memory when it's enabled and it gets turned off automatically.

Edit: OMG, street view works too!

hi val! happy new year :D

it seems you have technical knowledge of java better than myself.

so for increasing heap space, i suggest you contact davy directly as creator of PhoneME (all credits goes to him as i've always recited)

Val Demar 2013-01-02 08:37

Re: Google Maps Official (Java Version)
 
I poked around and couldn't figure out how to pass max heap size to cvm through runmidlet, maybe there is a cleaner way but I ended up using the full command line for the Exec property in my googlemaps.desktop file, notice the -Xmx parameter which now sets max heap size to 24m instead of default 12:

Code:

Exec=/opt/phoneme/bin/cvm -Xmx24m -Xbootclasspath/a:/opt/phoneme/lib/jsr234.jar -Dmicroedition.profiles=MIDP-2.1 -Dmicroedition.location.version=1.0 -Dsun.midp.library.name=midp -Dsun.midp.home.path=/opt/phoneme/midp/midp_linux_fb_gcc -Dcom.sun.midp.mainClass.name=com.sun.midp.main.CdcMIDletSuiteLoader sun.misc.MIDPLauncher -suitepath /opt/phoneme/googlemaps.jar -jadpath /opt/phoneme/googlemaps.jad -1 com.google.googlenav.GoogleNav
With this value I couldn't trigger the low memory condition which used to occur fairly soon after enabling traffic and zooming in/out several times. In theory this may help to speed up the app somewhat as the garbage collector doesn't have to run full sweeps as often.

Val Demar 2013-01-10 07:18

Re: Google Maps Official (Java Version)
 
Dang, can no longer run the app. It attempts to show the Terms and Conditions screen on launch and then craps out with a "serious error" message. Anyone else has this problem?

semdev01 2013-01-10 08:44

Re: Google Maps Official (Java Version)
 
nope, mine runs fine

Val Demar 2013-01-10 08:51

Re: Google Maps Official (Java Version)
 
Weird, I've installed a couple of apps since I was able successfully run it last time. Uninstalled them and it didn't help. Do you remember seeing "terms and conditions" screen? I don't, even if was shown initially it is unclear why it is being opened again. Maybe it stores a file with persistent settngs which is now corrupt. hmm.

semdev01 2013-01-10 09:00

Re: Google Maps Official (Java Version)
 
T & C screen occasionally appear but the maps run just fine (btw i don't make a change to google.desktop file)

Val Demar 2013-01-10 09:09

Re: Google Maps Official (Java Version)
 
I removed my changes from the desktop file but no use. Wondering if yours will stop working the next time you see the T&C screen.

Val Demar 2013-01-10 09:19

Re: Google Maps Official (Java Version)
 
Is it possible that some of the components that cvm depends on got replaced with other versions because I installed some apps which broke cvm (java vm)?


All times are GMT. The time now is 18:12.

vBulletin® Version 3.8.8