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


NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS  picture

NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS

$80.75



A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board picture

A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board

$350.00



Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW picture

Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW

$79.95



NEW OPTICAL LASER PICKUP HEAD for AMIGA CD 32 SYSTEM CONSOLE picture

NEW OPTICAL LASER PICKUP HEAD for AMIGA CD 32 SYSTEM CONSOLE

$31.68



New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598 picture

New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598

$35.85



1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ picture

1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ

$228.00







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