Skip to main content

Phone Calls

2 replies [Last post]
HCarrasc
Offline
Joined: 2012-01-23
Points: 0

Hi All :)

I have a question, how can I make a phone call, creating a event, of tipe Action Event in the resource editor? In the StateMachine class the resource editor create a method called onTuDarwin_ButtonAction, but i can't use the platformRequest method, in the code below that method is comented.

protected void onTuDarwin_ButtonAction(Component c, ActionEvent event) {
// If the resource file changes the names of components this call will break notifying you that you should fix the code
super.onTuDarwin_ButtonAction(c, event);

//javax.microedition.midlet.MIDlet.platformRequest("tel:+358-555-1234567");

}

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07
Points: 0

I think you need to add // after the tel:

You can use Display.execute() in LWUIT.

gt8887b
Offline
Joined: 2010-03-15
Points: 0

Are you doing this inside a class that extends MIDlet?

MIDlet.platformRequest() is not a static method.