Search for JSR 75: FileConnection API
(I googled this topic on this forum, but no recent answers)
Hi guys,
how can we access a file either on the phone, or on the SD card, using J2ME?
I want to write a customized player using J2ME, which of course needs to access the files (open).
I heard we MUST have a special permission from Motorola, is that stil true now? I read some post before (year 2005) saying there are ways to get around. But I can not find out how.
Any ideas?
Thanks a lot.![]()
Search for JSR 75: FileConnection API
I am not java programmer but may be http://www.penguinpower.de/ator/index.htm can help you.
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6
Hey, how about make a java interface for my xmms-embedded? So, all ezx device have posibility to use xmms. If your java app can exec unix command (write to stdin, read from stdout), may be it's enough. I can write a simple c application interfacing your java application to xmms-embedded.
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6
blackhawk, I'm new to all this linux phone thing. I've got my A1200i 2 weeks ago. I used Linux and other *nix only at college and Master course.Originally Posted by blackhawk
I am a Windows C++/Java/Phyton programmer and never made an j2me program.
But all this activity around these little devices in this forum made me wish to learn and develop for a1200 in Java and C (why not?).
Regarding your question, from my knowlogy MIDP 2.0 applications has a huge restriction to access native stuff.
There's no EXEC method (can't invoke external app directly). And I see no way to read stdin (your stdout).
I haven't tried eXmms and xmms until now. But from your post it seems that they interact through stdin/stdout. My answare to this is: no way.
The only way I can figure now is to interact thru the Filesystem or Sockets.
For exemple: create an eXmms-Faceless-version that spans the Java interface and that controls xmms.
The java user interface interact with eXmms-Faceless using one socket or two files.
I think it is too complicated and I think it is easier to port the current version of the exmms.
ps. i will set up an i386 debian to run mkezx to create a1200i apps. I think soon I will need support to get things working. I think I will need help to build Mkezx and to boot from USB (I have an L4_G_11.40.0FR ming). I am hoping that the bootloader is able to load the available firmware images.
Of cource we can make a socket listener application to control xmms-embbeded. We can make it as stand alone application or plugin for xmms. For an example, web-control xmms plugin have embedded http serverCan you/or java expert here help me on java interface side?
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6
How about J2ME local TCP/IP access. I build bemusedlinuxserver today and running succesfully on E680i, listen on port 7654. Using my OpieMused I have ported for E680i, I have full control on xmms. Set OpieMused server address to 127.0.0.1 port 7654. If you have rpconnect's bluez package, you can control xmms running on E680i from Symbian phone or JSR-82 enabled device![]()
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6
xmms <--> bemused server <--> TCP/IP or bluetooth connection <--> bemused client
If J2ME can access local TCP/IP address, this is a smart method. No need to write a new protocol but using bemused protocol. No need to write a new java bemused client, we can make modification on existing java bemused client out there (forgot the name).
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6
what? what are you talking about? why control one phone mplayer using another phone?Originally Posted by blackhawk
Sure MIDP2 can open sockets to localhost given the right permissions.
After monday I will have time to look at this. But Remember...I still have to setup all my development environment and I have to remember all linux stuff I forgot in 8 years of ms windows (and today I work 90% of the time with MS Word & Visio & MS Project).
Ah, This may be a problem. I have an A1200i. Do you think we can build bemused server for A1200?
Clovis
Just for funOpen our device, so Symbian user can stolen our mp3 collections
File download supported by bemused protocol.
Bemusedlinuxserver is standard C command line app. I am sure will run on A1200. May be we can remove bluetooth support because I am not sure bluez running on A1200.
For first step, better download exmms-0.1-beta2 and try xmms (eXMMS backend) on A1200.
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6