Difference between revisions of "Nokia Development"

From University of Washington - Ubicomp Research Page
Jump to: navigation, search
 
Line 59: Line 59:
  
 
* If you get security errors on phone, Go into Menu: Tools: App Mgr. Then select Options: Settings. Make sure software installation is "All".
 
* If you get security errors on phone, Go into Menu: Tools: App Mgr. Then select Options: Settings. Make sure software installation is "All".
 +
 +
== Links ==
 +
* [http://www.java2s.com/Code/Java/J2ME/CatalogJ2ME.htm J2ME Source] Tons of examples.
 +
* [http://www.j2mepolish.org/ J2ME Polish] The easiest way to do GUIs, logging, and other useful things.
 +
* [http://www.benhui.net/ J2ME Bluetooth Apps] Before you do anything with Bluetooth in J2Me, check this out.
 +
* [http://mpowerplayer.com/ J2ME on a Mac] An emulator for doing J2ME on a Mac. Talk to yanokwa@cs for more Mac details.
 +
* [http://www.midpjni.com Framework for talking to native code over a socket] J2ME (java for phones) doesn't have JNI, so this is useful.
 +
* [http://discussion.forum.nokia.com/forum/archive/index.php/t-71420.html Symbian WLAN Signal Strength] - Code for getting RSSI.
 +
* [http://discussion.forum.nokia.com Forum Nokia] All things development on Nokia
 +
* [http://nokia.howardforums.com/ Howard Forums] The premier phone site, Nokia section

Revision as of 22:25, 20 April 2007

Python

Python on Symbian gives you access to hardware while still offering relatively easy development.

Java (NetBeans)

NetBeans is generally easier than Eclipse, but Eclipse is Nokia's "standard tool". Install the following tools (in order).


If you haven't used NetBeans or done J2ME, try the following:

  • Press F11 to build the application. The console will display the location of the .jar file you want. Once you've built find the jar, and use Nokia Application Installer (in Nokia PC Suite, Install Applications) to move it to the phone.

Java (Eclipse)

Most people use Eclipse and it's the Nokia standard. That said, the SDK seems to be crash prone. Install the tools below in order.


A few things to keep in mind:

  • If emulation isn't working, you should check to see if Eclipse is using Java 1.4 to compile. If known working apps aren't working on the phone, it's most likely the wrong compiler. (Window > Preferences > Java > Compiler > Compiler compliance level should be 1.4)
  • If deployment isn't working, you probably updated the Nokia PC Suite. Uninstall the entire PC suite and all Nokia connectivity drivers. Firmware updates seem to be OK, but unless you have a reason to update firmware, stay away.
  • Make sure you hit the refresh button before you generate the new JAD/JAR files, or you may get stale files sent to the phone.

C++ (Carbide)

While you can build your own toolchain, Carbide.c++ is much easier and more stable.


Symbian tends to be a pain, so these will help you get started:

  • The Carbide.c++ tutorial is in Help-> Getting Started-> First Application Example.
  • If you want on device debugging, you need €299 to pay for the developer edition of Carbide.
  • The (very slow) emulator may look like an emulator, but it isn't. The phone will behave differently.
  • To deploy an app, change the build type in Carbide to "Deploy (release)", then double click HelloWorld/sis/HelloWorld.sis to install
  • If you get security errors on phone, Go into Menu: Tools: App Mgr. Then select Options: Settings. Make sure software installation is "All".

Links