I've got a game which works on all versions of Symbian. The game's JAR size is about 2.8MB, out of which about 800KB is the actual code and images and 2MB is taken by a precomputed table used by the AI in the game.
The goal is to have the very same JAR work on old Symbian AND on the new Asha phones. Because of the table however the JAR is too large to work on the Ashas (2MB limit).
The table is non-essential to the game and I can drop it (and thus drop one feature from the game: ability to play against the computer) if I want. However, I'd rather keep this feature if possible.
The question: what are my options? Obviously on the Asha 311, 310, etc (everything <501) the hard limit is 2MB with no way around it, right? So I'd need to get my table from 2MB to less than 1.2MB, which is impossible (it is already compressed on bit level, i.e. every single bit is used ) The code is also stripped, png-optimized and all of that.
In principle it is possible to simply do not include this table in the JAR but compute it on the device the first time user tries to play against the computer and then save it in RMS. The computation takes about 20minutes on a Nokia E7 however so this is also not a practical approach.
The table is really composed of 5 independent datasets. I imagine I could include only 3 smaller ones in the JAR (and the JAR would be 800KB + 1.12MB = 1.92MB then) and compute the last 2 remaining datasets on the device. I haven't measured yet, but it looks like that would still take some 5-7 minutes on a Nokia E7, and probably longer on the Ashas. So still hardly a practical approach to make the user wait so long.
Can I install a JAR and tell the Nokia Store to download the 2MB table from the network?
In Google Play for example I can have one item in the Store which has several .apk files , each one for some group of devices. That nicely solves the problem at hand - I'd simply have a 2.8MB JAR with the table for the Symbians, and a 0.8MB version with no table and playing against the computer switched off for the Ashas. That is sadly missing from Nokia Store AFAIK...