×

Discussion Board

Results 1 to 3 of 3

Thread: Making a call

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    43

    Making a call

    Hi all,

    I have tried an application for making a phone call. No error in the code but during execution:
    No emulation available to prompt and dial the following telephone number: <0700123123> this msg will displayed. This is my code


    private final String PHONE_NUMBER = "0700123123";

    private void call(String number) {
    try {
    platformRequest("tel:" + number);
    } catch (ConnectionNotFoundException ex) {
    // TODO: Exception handling
    }
    }

    public void startApp() {
    Display.getDisplay(this).setCurrent(mainForm);
    }
    public void pauseApp(){

    }

    public void commandAction(Command command, Displayable displayable) {
    if (command == callCommand) {
    call(PHONE_NUMBER);
    } else if (command == exitCommand) {
    try {
    // Exit the MIDlet
    destroyApp(true);
    notifyDestroyed();
    } catch (MIDletStateChangeException ex) {
    ex.printStackTrace();
    }
    }
    }

    protected void destroyApp(boolean b) throws MIDletStateChangeException {
    }
    }

    Can anyone tell me how to solve this.

  2. #2
    Super Contributor
    Join Date
    Feb 2004
    Location
    Dallas
    Posts
    605

    Re: Making a call

    That is a message only on emulator because there is no emulator available for call. The code will work fine on device.
    What is the issue here ?

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    43

    Re: Making a call

    ok fine..
    I will try this in the device.

Similar Threads

  1. making a call and creating a new sms
    By amjedab in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2007-10-23, 05:52
  2. Making call after app switch
    By dayashankar in forum Symbian
    Replies: 0
    Last Post: 2006-12-28, 13:24
  3. How to make simultaneous VOICE and DATA call on a Nokia Phone?
    By venkat_nokia in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2004-04-28, 12:15
  4. Establishing a data call
    By aljaz24 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-03-02, 14:24
  5. Making a call in Series 60 phones
    By elon in forum Symbian
    Replies: 1
    Last Post: 2003-03-27, 08:19

Posting Permissions

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