BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-18-2008, 01:55 AM   #1
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default Automatted CallingCard Application...........

Please Login to Remove!

Hi to all,

I want to develop an application for Automated Calling card functionalities to Black Berry device users..

I can able to retrieve the status of PHONE application using AbstractPhoneListener.

If i dial a number from contact i want to disconnect it.. and immediately the app should dial a new number..

Example if i dial 9842532255 then it should disconnect it and dial some other number like 5522352489...

I finished up to Disconnecting the call..

And i want to know how to dial a number automatically after disconnecting the call..

All the suggestions welcome..

Regards

Jayaseelan.V
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-18-2008, 02:54 AM   #2
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Cool

Get the phone number before you disconnect the call and

Generate a call using Phone Arguments Class...
Offline  
Old 06-18-2008, 03:23 AM   #3
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Quote:
Originally Posted by arunk View Post
Get the phone number before you disconnect the call and

Generate a call using Phone Arguments Class...
Hi Arun,

I tried it..But, After Disconnecting the call the phoneargument won't invoke the call..

I tried it in Simulator..

My code is,

Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, new PhoneArguments (PhoneArguments.ARG_CALL, "9842532255"));
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-18-2008, 04:22 AM   #4
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Cool

Try this code:


PhoneArguments phoneArguments = new PhoneArguments(
PhoneArguments.ARG_CALL, "9842532255");

Thread.sleep(2000);

Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, phoneArguments);
Offline  
Old 06-18-2008, 11:22 PM   #5
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Hi Arun,

Thanks for ur reply..

Now its working for me...

But what i have the problem is,

in AbstractPhoneListener,

callConnected(int callId), callDisconnected(int callId), callFailed(int callId, int reason) methods works perfectly..

But in callInitiated methos is not working..

my code is

public void callInitiated(int callid)
{
EventInjector.KeyCodeEvent pressEndKey=new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_DOWN,( char)Keypad.KEY_END,KeypadListener.STATUS_NOT_FROM _KEYPAD,100);
EventInjector.KeyCodeEvent releaseEndKey=new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_UP,(ch ar)Keypad.KEY_END,KeypadListener.STATUS_NOT_FROM_K EYPAD,100);
EventInjector.invokeEvent(pressEndKey);
EventInjector.invokeEvent(releaseEndKey);
checkCall("callInitiated", callid);
}

i want to disconnect the call immediately dialled by the user..

May i know y its not working?

Is there anything wrong in it/
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-19-2008, 12:36 AM   #6
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Cool

try

Thread.sleep(1000);

before invoking the keystroke event
Offline  
Old 06-19-2008, 12:53 AM   #7
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Quote:
Originally Posted by arunk View Post
try

Thread.sleep(1000);

before invoking the keystroke event
Hi,

My problem is not inside the callInitiated() function

The execution the flow not come to this function while initiation the call..

I mean the cfunction is not called while the call is initiated..

Any sugggestion...
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-19-2008, 01:10 AM   #8
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Cool

How come its not coming to that method only?

try giving Println() in the beginning and end of the method...

Then make a call and check....
Offline  
Old 06-19-2008, 01:15 AM   #9
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

public void callInitiated(int callid)
{
System.out.println("\ncallInitiated 12345\n");

EventInjector.KeyCodeEvent pressEndKey=new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_DOWN,( char)Keypad.KEY_END,KeypadListener.STATUS_NOT_FROM _KEYPAD,100);
EventInjector.KeyCodeEvent releaseEndKey=new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_UP,(ch ar)Keypad.KEY_END,KeypadListener.STATUS_NOT_FROM_K EYPAD,100);
EventInjector.invokeEvent(pressEndKey);
EventInjector.invokeEvent(releaseEndKey);

checkCall("callInitiated", callid);
}

I checked those things..

But Println is not working..

I dont know y it is.....
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-19-2008, 04:52 AM   #10
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Cool

I dont know....


In my application its working fine....
Offline  
Old 06-19-2008, 11:54 PM   #11
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Quote:
Originally Posted by arunk View Post
I dont know....


In my application its working fine....
Hi to all,

Any one please tell y callinitiated(int callid)

not working for me only in PhoneListener...
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-23-2008, 01:01 AM   #12
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Hi arun,

Can you tell me which simulator u r using and Version of th JDE?

I think that wil be use ful for me..

I didn't get Solution for Call Initiated(int callID) methods problem,...

Waiting for reply soon.
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-23-2008, 01:16 AM   #13
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Cool

8100 Simulator
and
8800 Simulator

JDE version 4.2.1
Offline  
Old 06-23-2008, 01:28 AM   #14
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Hi arun,

thanks for ur reply

I am using 4.3.0 and 8130 simulator..

So let me check it in 4.2.1 and wil come here.....
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-23-2008, 05:02 AM   #15
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Hi arun,

I installed 4.2.1..

Now it works fine..

And i don't know y its not works in 4.3.0...

Thanks for your useful info..
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-23-2008, 05:35 AM   #16
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Cool



Offline  
Old 07-01-2008, 01:53 PM   #17
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi

Does it works across all BlackBerry models ?

Can you also please share the code if possible ?
Offline  
Old 07-01-2008, 02:13 PM   #18
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi Jaya

I too am having trouble with JDE 4.3

Did you have any other problems with the 4.3 Simulator ?

Which version of JDE are you currently using ?
Offline  
Old 07-02-2008, 01:44 AM   #19
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Hi MobileDeveloper,

4.2.1 and 4.3.0 am tested..

Both were works fine....

Is your app works in 4.2.1?
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 07-02-2008, 05:33 AM   #20
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi Jaya

Can you please say whether you were able to successfuly disconnect the call ?

Did it work fine ?
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL picture

Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL

$8.95



Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M picture

Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M

$2.95



Dell OEM Latitude Rugged Extreme 7404 Left and Right Mouse Buttons 00008 picture

Dell OEM Latitude Rugged Extreme 7404 Left and Right Mouse Buttons 00008

$5.95



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99







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