Skip to content

Commit

Permalink
Updated telephony API calls - works now :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil Maj committed Aug 14, 2009
1 parent 96c1e41 commit f1583d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@
*/
public class TelephonyCommand implements Command {

private static final String CODE = "gap://call";
private static final String CODE = "PhoneGap=call";

/**
* Able to run the <i>call</i> command. Ex: gap://call/555666777
*/
public boolean accept(String instruction) {
return instruction != null && instruction.startsWith(CODE);
}
Expand Down
2 changes: 1 addition & 1 deletion blackberry/src/www/js/telephony.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function Telephony() {
*/
Telephony.prototype.call = function(number) {
this.number = number;
Device.exec("call", [this.number]);
device.exec("call", [this.number]);
}

if (typeof navigator.telephony == "undefined") navigator.telephony = new Telephony();

0 comments on commit f1583d5

Please sign in to comment.