Join Today
+ Reply to Thread
Page 1 of 4 1234 LastLast
Results 1 to 10 of 31
  1. #1

    Default File access on phone or SD card for A1200 with J2ME?

    (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.

  2. #2
    Join Date
    Jan 2007
    Location
    Belo Horizonte, MG, Brazil
    Posts
    375

    Default

    Search for JSR 75: FileConnection API

  3. #3
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    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

  4. #4
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    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

  5. #5

    Default

    Quote Originally Posted by blackhawk
    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.
    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.
    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.

  6. #6
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    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 server Can you/or java expert here help me on java interface side?
    eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6

  7. #7
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    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

  8. #8
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    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

  9. #9

    Default

    Quote Originally Posted by blackhawk
    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
    what? what are you talking about? why control one phone mplayer using another phone?

    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

  10. #10
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    Just for fun Open 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


 
+ Reply to Thread
Page 1 of 4 1234 LastLast

Similar Threads

  1. INFO: Way to access ''.system'' file through phone!!
    By laksluvmoto in forum A1200 General Chat
    Replies: 7
    Last Post: 11-03-2008, 09:20 PM
  2. Replies: 5
    Last Post: 09-05-2008, 01:52 PM
  3. J@ME file access
    By sreenathsreenath in forum A1200 General Chat
    Replies: 1
    Last Post: 04-14-2007, 04:15 PM
  4. Access to a 4Gb SD Card in phone over USB with Linux PC.
    By ycyas in forum E680i General Chat
    Replies: 0
    Last Post: 11-24-2006, 04:12 PM
  5. [A780] J2ME file access (read and write)
    By eakrin in forum Development
    Replies: 44
    Last Post: 07-01-2006, 05:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1