×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    7

    Hi! Making a simple java app that can make the phone make a call to a specific number

    Hi!

    Im trying to make a simple java app that can make the phone make a call to a specific number that is sent from my app to a phone trough bluetooth.

    Can I do this with Java?

    I've noticed AT-commands - is that a good way of doing it and what is the syntax then?

    thanks!

  2. #2
    Registered User
    Join Date
    Mar 2006
    Location
    Ahmedabad
    Posts
    38

    Re: Hi! Making a simple java app that can make the phone make a call to a specific number

    Yes u can!
    User bluecove.jar for bluetooth programming on pc side..
    find all device and select your mobile from list and send phone number as string to your mobile device ..

    at mobile side there should be mobile application developed on j2me and receive this string as phone number and use platformRequest() for making call from j2me application..

    Thanks..
    Premal

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    7

    Re: Hi! Making a simple java app that can make the phone make a call to a specific nu

    Great,

    I will take a closer look on bluecove.jar then! Do you have any more recommendation on where to start?

    Do you perhaps know if a mobile application developed on j2me will run on a non-symbian s40, like nokia 6300?

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    30

    Re: Hi! Making a simple java app that can make the phone make a call to a specific nu

    Well... the application will run on any phone that has JSR-82(btapi). for a list of phone that supports btapi, check the link below

    http://www.j2mepolish.org/devices/devices-btapi.html

    You can start with the example given in benhui.net

    http://www.benhui.net/modules.php?na...owser_v20.html

    Regards
    Sreekanth
    Sreekanth Bellur,
    Symbian C++ Developer,
    Ravensoft Ltd.,
    Manchester,
    United Kingdom

  5. #5
    Super Contributor
    Join Date
    Feb 2006
    Posts
    689

    Re: Hi! Making a simple java app that can make the phone make a call to a specific nu

    Hi,
    r u looking for this

    mport javax.microedition.lcdui.Display;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class PhoneCall extends MIDlet{
    String _phoneNum,_message;

    boolean _results;
    public void PhoneCall(){ }
    public void startApp() {
    makePhoneCall(); inputForm(); }
    public void pauseApp() { }
    public void destroyApp( boolean unconditional ) { }
    void makePhoneCall() {
    _message ="in make phonecall";
    try {
    _results = platformRequest("tel:+Phone number");
    if(_results) _message = "Connection is ok";
    else _message = "Connection is fail";
    }catch(IllegalArgumentException e){
    System.out.println("IllegalArgument Exception :" +e.toString());
    }
    catch(Exception e) { System.out.println("Exception: "+e.toString());
    } }
    private void inputForm(){
    Form _inputForm = new Form("Make Phonecall");
    _inputForm.append("Phone call Result : "+_message);
    Display.getDisplay( this ).setCurrent(_inputForm);
    }
    }

    Thanks
    soku

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-10, 13:19
  2. Get Phone number of incoming call
    By asdfghjkl_asdfghjkl in forum Symbian
    Replies: 7
    Last Post: 2006-11-19, 08:53
  3. Can a Java app grab a phone number
    By cj901 in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-06, 05:29
  4. Making a phone call
    By Urizen in forum Mobile Java General
    Replies: 0
    Last Post: 2002-10-04, 10:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •