How to dial a number programmatically

I want to dial a number by pressing a button. I could not find any documents.

+3
source share
3 answers

Rough code to help you:

PhoneArguments arguments = new PhoneArguments(PhoneArguments.ARG_CALL, "dial num.")    
ButtonField buttonField = new ButtonField("Dial",ButtonField.CONSUME_CLICK)
        {
            protected boolean navigationClick(int status, int time) 
            {
                Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, arguments);
                return true;
            }
        };

I hope this helps you.

+2
source

Invoke API allows you to run native BlackBerry applications.

In the same way, you can open / launch / execute other Blackberry native applications, such as calendar, camera, phone call, contacts, etc ...

thank

+1
source

The following native applications that you can run with custom arguments:

      APP_TYPE_ADDRESSBOOK
      APP_TYPE_BLUETOOTH_CONFIG
      APP_TYPE_CALCULATOR
      APP_TYPE_CALENDAR
      APP_TYPE_CAMERA
      APP_TYPE_MAPS
      APP_TYPE_MEMOPAD
      APP_TYPE_MESSAGES
      APP_TYPE_PHONE
      APP_TYPE_SEARCH
      APP_TYPE_TASKS
0
source

All Articles