Page 1 of 3

Have you programed your mobile

Posted: Fri Nov 02, 2007 7:19 pm
by mburnz
Has anyone had a crack at this (ie developed an application on a computer to run on a mobile phone) and would care to explain how they did it? Can you show us the steps to get a 'hello world' application up.

Can any one suggest any (free) resources?

It has to be java right?

Posted: Mon Nov 05, 2007 3:25 pm
by iBye
No idea but it sure sounds very cool :O

ah ha

Posted: Mon Nov 05, 2007 7:49 pm
by mburnz
I found this...handy explanation from aau in denmark. That will keep me quiet for a while..

Posted: Thu Nov 08, 2007 11:51 am
by Tails5
The link doesn't work. Is there a mirror?

try again

Posted: Sat Nov 24, 2007 11:55 pm
by mburnz
I just checked it out and the link was ok.

I also downloaded the java thing and and netbeans and the mobile netbeans blah blah blah, installed all and then downloaded a little program called 'helloworld'. Proceeding as instructed created a new project and compiled said program. Then when I found where the .jar file was stored I loaded it on to the mobile using the sw that came with that. Hey presto the new item on the phone's collection menu does what it say on the tin and puts up a little line 'hello world'.

That was a bit boring so I had a look around java.com and found the free games demo, downloaded the source then compiled etc. Now I have a snake game like my old phone used to and a push puzzle.

I havn't done any coding yet and I forsee problems.
I am used to languages where the 'hello world' program is something like

START
PRINT ('Hello world')
END

In Java its

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class HelloWorld extends MIDlet {
Display display;
Form form;

public void destroyApp(boolean unconditional) {
notifyDestroyed();
}

public void pauseApp() {
}

public void startApp() {
display = Display.getDisplay(this);
form = new Form("Helloworld example");
form.append("Hello World!");
display.setCurrent(form);
}
}

Couldn't they make it any more complicated?
I am reminded of the saying
'Why be difficult when with a little effort you can be b***y impossible.'

Posted: Sun Nov 25, 2007 2:22 am
by Tails5
I see your point, infact one "Hello World" program just consists of 1 line:

Code: Select all

mob/Login(){usr<<"Hello World")

Posted: Tue Dec 04, 2007 10:07 pm
by iBye
Thats cool, does it work on every phone, I think mine is to crappy.

Posted: Thu Dec 06, 2007 12:56 am
by Tails5
Hahaha, I'm going to get a phone that supports it. But my parent's phone doesnt even let you download ringtones O.o

mobile

Posted: Tue May 13, 2008 11:03 pm
by Gebbo
no i havent programmed my mobile but now that youve brought it up i have a lot of ideas of what to do :P

Posted: Sat May 24, 2008 12:37 pm
by jasondsouza
hey that seems to be real cool and yes of course it can be done.... they use java or in short J2ME.... so have your crack at it.... for tutorials search it in google .com .... don't spam by asking tutorials links in the forums