Join Today
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11

    Default Re: Good news for J2ME development accessing BT, telnet, ...

    cytux- "Anyway it is now possible to control the whole linux from java."

    This is awesome, thanks!!! I'm going to try it out right now!!!

  2. #12
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default Re: Good news for J2ME development accessing BT, telnet, ...

    You're welcome! Please give me feedback, if it works or if there are difficulties. Thank you!
    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:

  3. #13
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default Re: Good news for J2ME development accessing BT, telnet, ...

    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:

  4. #14

    Default Re: Good news for J2ME development accessing BT, telnet, ...

    @cytux:
    I have been playing around with the app and browsing your source (have not yet grabbed v4.1) and this stuff is great!!! what a great way to learn java and bash scripting at the same time!!

    I did notice that your rms.java file now has a loadres function that uses getResourceAsStream to grab the shell exec output. Where is this function defined? can a similar thing be done w/ an "OutputStream" and/or what kinds of "Resources" can we use for streaming? and as always, thanks!!

  5. #15
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default Re: Good news for J2ME development accessing BT, telnet, ...

    Thank you - I'm very happy that you find it useful!

    I grabbed the infos about getResourceAsStream from here and there in the web. Here is one example:

    http://mindprod.com/jgloss/getresourceasstream.html

    No, it's not possible to write the same way, because of java security concerns. If this would be possible, an app could destroy everything. Because of this restriction I used the recordstore method for writing. There is a specific rms header but if you look at the demon it's no problem to cut the stuff out and the content is clearly readable.

    If u like to write to any other location you may extend the java code. For example write another recordstore and a bash script which will move it to anywhere in the filesystem.

    You may also write huge bash scripts and call them. This will work.

    There is already Cy4th 0.4.1a out where only the demon was changed a little bit to delete the "cache commands".
    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:


 
+ Reply to Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. good news for e6 fans
    By shantanu in forum E6 Firmware
    Replies: 132
    Last Post: 05-27-2011, 09:03 AM
  2. Good news for J2ME development:
    By cytux in forum Development
    Replies: 1
    Last Post: 11-07-2010, 12:47 AM
  3. Choosing a good phone for development
    By zbojnik83 in forum Development
    Replies: 3
    Last Post: 10-29-2006, 05:54 AM
  4. problems accessing some files via telnet
    By ohli in forum A1200 General Chat
    Replies: 3
    Last Post: 07-21-2006, 02:26 PM
  5. J2ME development for the e680(i)
    By cytux in forum Development
    Replies: 80
    Last Post: 08-11-2005, 10:51 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