The Kyocera only provides 128K Dynamic Heap in its modified
version of Palm OS 3.5 while almost all other recent Palm
devices running Palm OS 3.5 provide 256 KB Dynamic Heap.
Also, NetLib requires 32KB of Palm OS dynamic heap
in order to be activated. The PalmOS cannot suggest
to the JVM that is it time to garbage collect,
it just returns the error.
Perhaps
you should garbage collect just before you create the
HttpConnection (which will call NetLib). That will give back
to PalmOS as much memory as possible, thus giving NetLib
the best chance of the Palm OS having enough.