Installing a JAR File on a Phone (Part 2)

Ah, I wanted to tell you about my Windows adventure, just for completeness' sake. As you might have noticed from my recent blog entries, I am switching between Linux, Windows and MacOS a great deal (It certainly doesn't hurt to be "platform-independent" as a living being too, hence the cryptic title of this whole blog).

So, this time, it's Java ME in Windows. Or rather, Bluetooth in Windows. Like MacOS X, Windows has a proper out-of-the-box Bluetooth setup, and the phone's PC-software works well directly after installing. (My trick is -- I only use Windows when I have to. This way it doesn't get misconfigured or over-worked or fragmented or whatever its problem is. So the three times or so I needed to use Windows, it worked pretty decently.)

I had already 'paired' my mobile with my notebook earlier, so Windows recognizes it immediately when I activate Bluetooth. That's why after installation, the first Nokia PC Suite wizard immediately recognized all Bluetooth enabled devices and mounted the Nokia phone in the 'My Computer' window. I dug around a bit on the device, and came up with the brilliant idea to backup all those wacky Nokia Themes and Cliparts I never use to my harddrive, and then delete them from the phone. >:-D Well, three Themes turned out to be undeletable (the Delete menu item was grayed out), but that's OK, I have now almost 1.8 MB of free space on my mobile. (Gosh that reminds me of our Mac LC days. "1.8 MB! Who'd ever need so much space!?") If you're the guy who creates Themes at Nokia: I regret to tell you I did not like them at all, except maybe for the yellow+red one, which was kind of okay-ish. (is there a way to create your own themes? Maybe I can copy and hack one of the existing ones... Hmmm...)

As another aside, one of the Nokia 6822's weeknesses really is its small amount of disk space, so deleting unused items helps a lot. Its second weekness, by the way, is its small screen, only 128\*128 (color). It's enough to work with, but current devices are of course better equipped in both aspects.

Back to installing JAR files via Bluetooth in Windows: It's really not so exciting. After you established the connection to the phone (note the coffee bean thing in the system tray? That's the Nokia menu, if you need it), the first thing you notice is, you can't just drag and drop the JAR to the phone in the explorer. Instead you need to click the last button of the PC Suite setup Wizard, and it opens a nice interface with several tasks, one of which is Installing Applications --

-- But! If you now go back and look at your JAR file in the Explorer, you notice that ta-daa, its file icon has changed to four colorful squares. I don't know whether that's good or bad. But anyway, if you double-click the JAR now, PC Suite immediately suggests to install it on the mobile device via Bluetooth -- that's it. (Sounds user-friendly, but this could be a bummer if I ever wanted to do anything else with JAR files later. Like. Execute them?) The mobile app silently appears in a directory on the phone without any further interaction or dialog on the phone's side. I assume this is because you paired the PC and the phone, meaning the phone trusts you to only send secure files. (Good luck, phone. I wrote that sample app. How secure can it be?) And also note that, even though you know the application you sent is a game, it does not appear under Applications > Games, but under Applications > Collection, where all general applications are stored on Nokia phones.

Oh hey, and while you're in Application > Collection menu: If you're not into stock options, you can totally save another couple of KBs by deleting the 'Portfolio' application! If you're the guy who pre-installs applications at Nokia: Don't get me wrong, I appreciate Nokia providing us with sample applications, and I know the phone was targeted for businessmen, etc etc, I'm not complaining. I am just... customizing it. =-)


Just wanted to let you know that you can make your own themes easily using Nokia theme studio. It's a free download and I think you just have to sign up to get a serial key for it. See,6566,034-601,00.html which is the theme studio for series 40 phones (which with a 128 \* 128 screen I guess your phone would be). I tried it for my Series 60 phone but I didn't do too much because the app is sooooo slow. I'd highly recommend signing up to the Nokia forum if you haven't because they have heaps of cool tools, documents, device specs and code samples. Have fun.

Posted by Adam Freeman on June 26, 2006 at 06:30 PM CEST #

Post a Comment:
Comments are closed for this entry.

NetBeans IDE, Java SE and ME, 3D Games, Linux, Mac, Cocoa, Prague, Linguistics.


« June 2016

No bookmarks in folder