r/javahelp • • Oct 30 '19

Codeless How to get into JavaME ?

Hello! I recently picked up what has to be my most favorite phone of all time, a sony ericsson w705. It runs what i understand to be some form of java. I really want to make a simple, single station web radio receiver so that i can listen to music on it over wifi. This isnt the only thing, I actually want to learn code, but this is what i want to do right now. Does anybody have any books that could help point me in that direction? Or help with a specific code?

17 Upvotes

12 comments sorted by

6

u/marcelofrau Oct 30 '19

java me for these phones used the cldc specification, so you are in a very limited environment like less than a megabyte of ram to work.. quite a bit challenge to develop something for these environments nowadays.. I have some old links, will take a look into it and share with you.

3

u/BetheBandetto Oct 30 '19

Sure! That would be awesome! All i really want to do right now is make a simple program with a preset web link that can stream the audio from that link. It doesn’t really need a gui either other than to tell me its operating. The link is streaming 320kbp mp3 data continuously. All the old web streaming apps no longer work, and the one that does wont let you add specific stations. If there was a way to edit that specific one i would tbh.

2

u/marcelofrau Oct 30 '19 edited Oct 30 '19

Like I promised, some links that can help you in this journey:

https://netbeans.org/kb/72/javame/quickstart.html

https://docs.oracle.com/javame/dev-tools/lwuit-1.3/LWUIT_Developer_Guide.pdf

https://mobileswdev.wordpress.com/2009/03/13/building-a-java-me-application-with-maven/

http://techalpine.com/how-to-create-midlet-in-j2me/

https://www.oracle.com/technetwork/articles/javame/lwuit-intro-138622.html

https://j2me.fandom.com/wiki/Development_Tools

And I think the best one I found today maybe is this one:

https://j2me.fandom.com/wiki/J2ME_development_Wiki

These applications were also called Midlets.. maybe you can find more documentation about it.. but I put above some links that can be a starting point do do stuff..

By the way, your mobile phone has internet connection still today?

I have some old palm devices that used to be quite good at the time and I also developed some software to mobile phones and PDAs at the time.. this was circa 2004, if you need any help, feel free to reach me if you want.. Maybe I can still remember one thing or another.

I think this is a great experience because you are going to program in a very limited environment and at least in my opinion, these kind of environment makes you think a lot on how to make stuff work in such env. It is a challenge and you will learn a lot.

You could also make the project opensource, in github for example.

Also, in advance, since you are going to use it to play some streams, you will have to look the Media API specification.

https://www.jcp.org/en/jsr/detail?id=135

The one below is a video player, maybe you can use as inspiration:

https://www.roseindia.net/j2me/video-midlet.shtml

And last but not least, an example showing how to code and stream some media:

http://www.java2s.com/Tutorial/Java/0430__J2ME/StreamingMedia.htm

2

u/BetheBandetto Oct 30 '19

Thank you so much! Yes. The phone has wifi and with the opera browser can access almost every website. However it has trouble playing back youtube (unwatchable and the audio is at like 12kbps)

2

u/marcelofrau Oct 30 '19

cldc stands for connected limited devices config, and you also need to seek about MIDP, luwit, jad specification and stuff like that..

3

u/Mordan Oct 30 '19

what do you like that much about the w705?

I still have a W850i, a W810i and a P990i. I keep them for nostaligia.

Great phones!

1

u/BetheBandetto Oct 30 '19

The design, satisfying sliding mechanism, camera quality (for the time) it still accesses the internet (and reddit :)

2

u/firsthour Profressional developer since 2006 Oct 30 '19

Do you know Java? First you need to learn that, check the sidebar for some help getting started.

3

u/BetheBandetto Oct 30 '19

I have been wanting to start for some time now. Now that i got this phone i have an application for learning. Ill check it out. Thanks!

6

u/firsthour Profressional developer since 2006 Oct 30 '19

Just as long as you understand that this is essentially an obsolete platform you're targeting and you will be learning APIs that are not supported anymore with probably next to zero relevant help on the internet.

4

u/BetheBandetto Oct 30 '19

I dont mind it at all.

2

u/dgcooke Oct 30 '19

I have a bus time table app that I wrote to learn ME probably around 2005, it is probably not very good but I can share it with you if you PM me.