mobile
Optimizing J2mepolish Build Proccess
J2mepolish as a build framework is great! I have been using parts of it since before it was in beta.
J2mepolish provides different licenses depending on how you use the product now while this can be looked on in a bad light but I quite like the fact that it is open-source as well as long as you your self release the code under the same license should you wish to release under a different license there are other payed options available.
The build framework is licensed under GPL no matter how you use it.
I have found that the build proccess can be pretty slow and time consuming I have also found that with out obsfication it by default includes ALL classes in the framework include the GUI/Utils. While you don’t make use of them you aren’t violating the license it does increase the application size. There are a few tweeks that one can make to their own personal setup to improve this.
Firstly tmpfs and mounting your /build and /dist directory into memory (For debugging only I wouldn’t mount a full build) You would have to replace the standard build clean target since the standard user shouldn’t have permissions to delete/create tmpfs
Standard:
<delete dir=\"dist\" />
Changed
<delete includeemptydirs=\"true\">
<fileset dir=\"dist\" includes=\"**/*\" defaultexcludes=\"false\"/>
</delete>
Secondly the since the build proccess includes all the J2mepolish source files by default you should be able to just set polish.client.source to a empty directory but it contains a reference Locale which also contains references to other files(Which are not 100% needed unless you actually use the Utilities provided by J2mepolish)
So a simple fix is create a folder structure with /path/to/directory/de/enough/polish/util/Local.java and place this Local.java in there.
In the build file or one of the config files set
polish.client.source=/path/to/directory
and you should be all set. I noticed huge build time improvements but I don’t currently make sure of the GUI/Utils.
Hope this helps make you more productive. If you have any other tweaks I would love to hear them.
Setting Up MMS On Android
I have had my G1 for quite some time. When I first got it I added the APN settings for basic Internet. Over the last 2 days I have received 2 mms’s I kept getting “Failed to download” oops I had forgotten to set up the MMS proxy settings.
How to get there; Settings -> Wireless Controls -> Mobile Networks -> Access Point Names -> (Select One or create one via Menu->Add APN)
Correct APN settings:
Vodacom:
Name: Vodacom Internet
APN: Internet
Proxy: Leave blank
Port: Leave blank
UserName: Leave Blank
MMSC: Leave Blank
MMS Proxy: 196.6.128.13 (I had it as mmsc.vodacom4me.co.za but this doens’t work)
MMS Port: 8080
MMC: 655
MNC: 01
APN Type: Leave Blank
MTN(I haven’t tested these but they should work):
Name: Internet
APN: Internet
Proxy: Leave blank
Port: Leave blank
UserName: Leave Blank
MMSC: Leave Blank
MMS Proxy: 196.11.240.241
MMS Port: 8080
MMC: 655
MNC: 01
APN Type: Leave Blank
Hope this at least helps some one.
HTC Creates A Hero
Htc announces their Hero specs on gsmarena.
From what I have seen this might be the most user appealing of all the Android HTC phones. It just seems more slick.
I read this from engadgetmobile. I had a good chuckle at their linked video
Sun Unreleases WTK3.0
I have heard alot about how amazing J2me development on their new WTK3.0 is.
The reason I say “have heard” is I refuse to use/try it until they release the Linux based version. I mean the product wont even run on their own Solaris OS way to go on marketing your own products.
The windows version has been out for more ages. I have logged a bug request on their site, I didn’t get a reply not that I was actually expecting to get one.
Under the Requirements section “Windows” are you kidding me, The guys that have been pushing and that revolutionized cross platform development.
For now at least my beliefs hold strong and I wont touch their shiny new toy until they release a Linux version. </EndRant>
Kfm Joins Mobile Fail
Today I was listening to kfm like I do most mornings on the way to work and wanted to download one of the snippets from the show but more on that at a latter date.
Currently I have noscript installed and all scripts/iframes/flash/java are disabled until explicitly allowed. Seriously I don’t know what I would do with out it.
Firstly when trying to hit kfm.co.za it just times out, but www.kfm.co.za firstly odd but something that surprised me even more wasn’t that the webserver wasn’t configured to handle urls with out the www but rather that the 2 host names resolve to different ips.
www.kfm.co.za – 196.37.145.90
kfm.co.za – 196.2.132.146
Ok what does this have to do with mobile?
Their home page has this content.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>KFM - The Cape's No.1 hit music station</title>
<script type="text/javascript">
if ((screen.width<801) && (screen.height<360)) {
window.location.replace('http://www.kfm.co.za/mobilesite/index.asp');
}
else {
window.location.replace('http://www.kfm.co.za/index.asp');
}
</script>
</head>
<body>
</body>
</html>
I seriously have to ask, how does a screen resolution dictate mobility? further more phones that are mobile do tend to not support JavaScript. Another issue why are they doing redirection on the client side are do they not understand the concept of server side detection?
Ok so I thought I would follow the mobile version of the site and maybe give them the benefit of the doubt maybe their actual mobile site wont be as bad….
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
They clearly care about stats about their sites (Pity that they wont generate any mobile stats since they tend to not load JavaScript in the first place)
They mobile site is riddled with tables and nested tables images in the places no images should ever go.
Some stats about their mobile optimized site…

Just thinking but their Hot Jocks page is only 179kb at a current rate of R2.00 per meg 34.96 Cents to load that page…
</end-rant>