BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-20-2004, 03:54 PM   #1 (permalink)
New Member
 
Join Date: Sep 2004
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Making phone calls through Java API

Please Login to Remove!

I've been scouring for an answer to this lately and can only find half-answers. Is it possible to place a phone call through a program using the available APIs? On other boards, I've seen people say it can be done and then I've seen others say that it can be done when RIM releases their Phone API. I'm not sure who to believe, but I don't see any support for it from what I've looked at in the API docs. Does anyone know if it's possible? If not, does anyone know when the PhoneAPI is going to be released? Thanks much.
Offline  
Old 09-20-2004, 04:24 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
kirson's Avatar
 
Join Date: Aug 2004
Location: Chicago
Model: 9000
Carrier: ATT
Posts: 421
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have seen the same posts you have...bottom line seems to be that 4.0 will offer access to the phone API. There is a rumor floating around that you can get to it even now, but those who know are refusing to share -- someone even claimed they are trying to make some money selling the information. Personally, I don't think it can be done yet. Let's see if 4.0 offers a solution.
Offline  
Old 09-21-2004, 12:30 PM   #3 (permalink)
New Member
 
Join Date: Sep 2004
Location: San Diego
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am fooling around with that problem myself.


What I was able to find is that you should be able to make an http connection and pass in "tel:555-1212" instead of a URL. I've tried with no success, but I don't think I am setting up the request properly.

If you look at the HTML that the browser sees when it displays "linked" phone numbers, you see the <a> tags with an "href"="tel:...."

I think what you have to do is fire off the browser with the right args and it will redirect for the phone. Like I said, I've fooled with it a bit but get an arrayOutOfBounds exception when firing off the browser.

Anyone care to add ideas, or see if they can get it to work?
Offline  
Old 09-21-2004, 06:08 PM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2004
Posts: 22
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm new to developing BB apps, but I will wager that this is/will be a "controlled API", i.e. will require a code signature - can you imagine the mayhem if some of those long distance slammer outfits could trick folks into installing a seemingly useful business app or utility and the bloody thing phoned barbados every few minutes...?
Offline  
Old 09-21-2004, 09:14 PM   #5 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm almost 100% sure you can't use a "phone API" to make calls. I reviewed the 4.0 javadocs and there was no phone api. I think the people saying there is a way are pulling your leg. The only way I can see it is if you are an ISV alliance member, would you have access to that API.

If you look at a device dir via javaloader you will see net_rim_bb_phone_api.cod? Interesting...
Offline  
Old 09-22-2004, 12:01 AM   #6 (permalink)
New Member
 
Join Date: Sep 2004
Location: San Diego
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The clue to doing a dial from within other apps via an href is here on the BB forum at RIM.
Offline  
Old 09-22-2004, 12:07 AM   #7 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually I stand corrected. There are APIs for the phone: Class PhoneArguments.

And of course they need to be signed by RIM to use.

Very interesting...
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.