Playing sounds on Samsung M220 (Telus Canada) - MIDP 1.0 - java-me

We're porting some Java applications for the Samsung M220 (Telus). This is a MIDP 1.0 phone and we're stuck when trying to play sounds on it.
As far as I know, MIDP 1.0 does not support our audio functions except system beeps.
Is there any way to play sounds on the M220 (Telus Canada)?

Samsung allows its own proprietary class called the AudioClip(), google it and you will be able to find information on it. Since this being a MIDP 1.0 phone the only api that supports playing sound is the com.samsung.... [don't remember the exact package] AudioClip class.
Hope this helps!

Related

J2ME Polish: Targeting Android, BlackBerry, and J2ME devices

I’m working on an app which is required to run on multiple different platforms. The original code is written in J2ME (Java ME).
The documentation online regarding using J2ME Polish for targeting multiple platforms is scarce and difficult to follow.
Can anyone here offer advice on targeting these 3 platforms using one code base? I’m currently using NetBeans 7.3 + the J2ME Polish plugin.
I’d ideally like to support:
Android 2.1+
BlackBerry OS 5.0+
J2ME/Java ME devices

can we build for Symbian^3 same code done in s60 3rd edition using lwuit

I have made application in j2me using lwuit and successfully built on S60 3d edition FP2, now to make wide compatibility i want to make build for Symbian^3, so is it possible?
Yeah its possible. Because LWUIT supports both touch and non touch mobiles and no need to change the code for this. AFAIK you have to check following steps,
Resolution: Because resolution of symbian s60 3rd edition not more than 240x320 or 320x240. But symbian^3 smartphone having 640x360 or 360x640.
MenuBar: Look on this blog
Drag and Drop: You can enable drag and drop the components If you needs.
Just test the LWUITDemo application from repository on symbian s60 3rd editon and symbian^3 mobiles. Then you can find the what are all the changes have to do. Also look on this wiki information about Symbian.
You should be able to use the same jar file on the Symbian^3 devices, unless some of the APIs have changed. At least this was true for S60 5th edition, I've never used j2me on Symbian^3 myself.

Save Call on Java Mobile / Phone to mp3 or any Audio format / file

I want to Save Call on Java Mobile / Phone to mp3 or any Audio format / file .
How should I go ahead with.
I am quite well versed with Core Java.
I found apps supporting above mentioned functionality in symbian Phones only but NOT in Java phones whose MIDP version is 2.1 and above.
Thanks for your Idea ( obviously practical one's ! )
or
sharing some links relevant to this
or some sort of pseudo-code in java for this.
I want solution for Java Phones with MIDP 2.1 & above.Please don't recommend symbian or other such things.
If you are willing to record incoming call using j2me , than unfortunately it is not possible.
with Java ME API's in the currently available Nokia phones its not possible, But you can try with Symbian C++.
j2me security will not allow to do this
you can do it with symbian.
I think nobody developed a call recorder in Java platform. All that you can do to record is to call divert to a land line which is connected to computer which can record calls.
Something for your reference (these can't provide you with Java phone call recording but can guide you , why it can't be with Java & S60 would be better(&only) option. )
Java Voice Recorder ported from E398
Need to develop a call recorder
and if change your mind from Java to Symbain then here's a code which you can have a look at.
Try Symbian!

Getting started with JavaMe

I'm trying to make a very simple program run on my Nokia 5000.
On the Nokia website, there is a SDK (Series 40). I included this SDK in my IntelliJ project.
The problem is, when I try to run the helloWorld app on my phone, I get an error message.
(http://wiki.forum.nokia.com/index.php/Hello_World_in_Java_ME)
Can anyone help me out?
Thanks in advance!
Any chance you have created a MIDP 2.1 / CLDC 1.1 application?
For Series40 phones, I would definitely start with just MIDP 2.0 / CLDC 1.0
Otherwise post your jad file and your manifest file.

Can A Midlet invoke another Midlet?

I been looking around and at sources like this one they say that a Midlet can invoke another if they are in the same suite, or if they are in the same namespace and in the same jar file.
I do not understand what a Midlet-Suite is?
Also after searching through the web I did not find any documentation or code examples for One Midlet invoking another Midlet.
A MIDlet suite is basically the JAR file. There are many J2ME applications that contain several MIDlet classes in the jar, see some of Sun's examples that come with WTK.
Edit: There's an example called MMAPIDemos that comes with sun's WTK that uses 3 MIDlets in one suite.
The other replies are pretty much taking care of your questions about MIDlet Suites but I would suggest reading the MIDP specification to get the information first-hand:
http://www.jcp.org/en/jsr/detail?id=118
On recent phones (Series60 5th edition from Nokia Sony-Ericsson and Samsung, other Sony-ericsson phones), the Content Handling API (CHAPI) is supported for MIDlet-to-MIdlet invocation.
That's JSR-211. You can read the specification for that here:
http://www.jcp.org/en/jsr/detail?id=211
The latest version of the Nokia Java Developers Library will contain more explanation:
http://www.forum.nokia.com/Tools_Docs_and_Code/Documentation/Java/
The latest JavaME SDK will contain CHAPI code examples:
http://java.sun.com/javame/downloads/sdk30.jsp
Edit: CHAPI is also available on non-Symbian Nokia phones from Series 40 5th Edition, Feature Pack 1 onward, according to the Nokia Java Developers Library. You can find which nokia phone is running which version of Series40 at:
http://www.forum.nokia.com/devices/matrix_all_1.html
You can try PushRegistry as a more generic way. You should be able to launch MIDlets from other suites as well. Try this link for more information.

Resources