It's not a secret anymore!
The moose likes Java Micro Edition and the fly likes Question about Java functionalities on mobile phones Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Question about Java functionalities on mobile phones" Watch "Question about Java functionalities on mobile phones" New topic

Question about Java functionalities on mobile phones

Steffen Bluemm

Joined: Jun 10, 2009
Posts: 4

I am pretty new to this ... so maybe not the smartest question

If a mobile phone (java one) has WLan than it can use RMI, right? How about sockets?

Is there a way to tell the mobile phone from java to vibrate? (say having a function that activates vibrations for a specific amount of time)?


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

That will depend entirely on the phone, since any version of Java that expects to access resources internal to the phone - including the addressbook, Bluetooth and LAN interfaces and so forth - has to have been customized to do so by the phone supplier.

The basic standard for Java in mobile devices is spelled out in the Sun J2ME specifications. There are 2 primary architectures covered there, with JavaDocs that describe what features are available. A lot of phone vendors also add one one or more of the JSR extensions such as the one for Bluetooth.

Of course, now we also have another Java option for mobile phones - Android. It, too has a set of specs, provided by Google. And we have a forum for Android on the JavaRanch as well!

An IDE is no substitute for an Intelligent Developer.
Steffen Bluemm

Joined: Jun 10, 2009
Posts: 4
Thanks for your reply ...

I looked at the API (sun API) and there is RMI - but of course, it has to be implemented ...

For some Nokia phones it seems that one an access the vibrator from within Java .... which is not that bad to know ...

Android, yes, seems interesting ... some of the Nokia phones no also have accelerator sensors like the iPhone and stuff like that, which is quite nice ... but I will definitely have a look at the Samsung Android ...

Thanks ...

Sathya Srinivasan
Ranch Hand

Joined: Jan 29, 2002
Posts: 379
J2ME is comprised of a number of specifications and what your phone supports depends on what specs the manufacturer has implemented in the phone model. That said, the bare minimum API that is typically supported is CLDC and MIDP for mobile phones and these APIs support basic sockets, SMS, UDP, and HTTP. I don't think RMI is supported by default.

Apart from this, other APIs such as Bluetooth, WMA, and PIM provide support for other modes of communication.

Support for phone vibration is provided in the MIDP API by default and hence, is supported in most phones with basic J2ME capability. You can look at the MIDP API to find the appropriate methods and additional functionality (such as backlighting, which is also supported)

Cheers, Sathya Srinivasan - SCJP 1.2, SCWCD 1.2, SCMAD 1.0
Co-Author of Whizlabs SCMAD Certification Exam Simulator and SCMAD Exam Guide Book
I agree. Here's the link:
subject: Question about Java functionalities on mobile phones
jQuery in Action, 3rd edition