07-25-2008 01:47 AM
I am using JDE 4.3 and testing my app on emulator.
I am trying to invoke blackberry's phone app from my application as follows
Please note i am inoking phone app in the function of FieldChangeListener interface implemented by a class in my app.
public void fieldChanged(Field field, int context)
PhoneArguments call = new PhoneArguments(PhoneArguments.ARG_CALL, DestNumber); Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call);
Problem i am seeing is that phone app is not invoked at all as i couldn't see phone app screen trying to initiate outgoing call.
What could be the reason ? Kindly provide inputs.
07-25-2008 01:54 AM
Try to set the permissions for the application.
Go to Options -> Advanced Options -> Applications -> <yourApp> -> MenuButton -> Set permissions to 'Allow'.
07-25-2008 06:35 AM
07-25-2008 11:49 AM
The application won't show up in the installed Applications list if it was installed using javaloader or in the case of the BlackBerry Simulator, copied to the simulator directory. You can still adjust an applications settings by selecting Edit Default Permisions from the menu of the application list.
However, by default the BlackBerry simulator does not enforce these permissions. Are you getting any exception when you try to invoke the phone? Are you able to invoke any other types of applications?
07-28-2008 06:17 AM
I am not getting any exception.
I had posted following issue on old /www.blackberry.com/developers/forum/Retrieve dialled number
In above scenario i was able to invoke default phone app in my code by selecting my customized menuitem which i was adding in phone book contact and in default phone app itself
But in the new code snippet i posted in this thread i am not able to invoke default phone app.
I don't understand this difference in behaviour
07-28-2008 10:11 AM
09-01-2008 07:14 AM
Yes PaoloLim, i have debugged my code and control does go to invoke line. Yes it indeed works on device but b'cos of this issue i am not able to test another issue, which i am facing on device, on simulator.
Link to my other issue where i need testing on simulator.
need help as i am stuck with the problem from quite a sometime :-(