Results 1 to 12 of 12
  1. #1
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default command line program in java for mobile phone?

    Is it possible to write simple command line programs for java-enabled mobile phones? Or do they have to be gui?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: command line program in java for mobile phone?

    Does your mobile phone have a terminal/command prompt window where you can enter commands?

  3. #3
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: command line program in java for mobile phone?

    I was thinking of buying a java-enabled phone and write simple applications for it so I had presumed it to be present on every such phone(!).

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: command line program in java for mobile phone?

    I had presumed it to be present
    Better check first.

  5. #5
    jDennis79 is offline Member
    Join Date
    Aug 2010
    Posts
    23
    Rep Power
    0

    Default Re: command line program in java for mobile phone?

    Quote Originally Posted by rng View Post
    I had presumed it to be present on every such phone(!).
    Being well aware of the fact that this question is relevant to an awful lot of mobile phone features nowadays, but: of what possible use would a command prompt be in a mobile phone?

  6. #6
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: command line program in java for mobile phone?

    For simple programs performing only some maths functions on command line parameters, such programs are easy to make and run. I wanted to know if this would be possible on all java-enabled phones.

  7. #7
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: command line program in java for mobile phone?

    Is Math class available in java for mobile phone (J2ME or MIDP). Can I use functions like Math.pow(56, 0.234) ?

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: command line program in java for mobile phone?

    Why don't you check the API instead of asking that? If you're going to do anything in Java ME you'll need to read that API frequently, so now is a good time to start.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  9. #9
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: command line program in java for mobile phone?

    I tried but cannot get proper website url. I could not find it at: Java ME & Java Card Documentation
    Kindly guide me to proper site.

  10. #10
    jDennis79 is offline Member
    Join Date
    Aug 2010
    Posts
    23
    Rep Power
    0

    Default Re: command line program in java for mobile phone?

    "Java for Mobile Devices" - "Get Documentation & APIs" is the very first thing in your link!? So don't take it as an offense, if I reply just a kind "wtf?"...

  11. #11
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: command line program in java for mobile phone?

    Quote Originally Posted by rng View Post
    I tried but cannot get proper website url. I could not find it at: Java ME & Java Card Documentation
    Kindly guide me to proper site.
    Did you try the links on that page? or at least those with "API" as part of the anchor text?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  12. #12
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: command line program in java for mobile phone?

    OK. I got all the links. Thanks.

Similar Threads

  1. How do I run my program through Command Line?
    By s0meb0dy in forum New To Java
    Replies: 3
    Last Post: 10-03-2010, 02:13 AM
  2. Replies: 2
    Last Post: 07-02-2010, 03:20 PM
  3. Replies: 14
    Last Post: 01-21-2010, 10:10 AM
  4. Replies: 5
    Last Post: 11-02-2008, 08:58 PM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 01:23 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
  •