10-01-2008 10:23 AM
10-01-2008 12:00 PM
program doesn't throw any exception. only the debuger pointer doesn't move to the next statement in the code. it stops executing other statement in the code.
let say if i have code
Invoke.invokeApplication(Invoke.APP_TYPE_MEMOPAD, new MemoArguments( MemoArguments.ARG_EDIT , blackBerryMemo ));
System.out.println("after invoke call");
then jde debugger doesn't execute the next statement and even doesn't thrown any exception.
thanks in advance
10-01-2008 01:38 PM
OK - I understand. The Invoke() call is blocking - so the thread is now out of your application and into the memopad (or whatever). The MemoPad application should now pop up and assume the focus.
If this is not happening, it may be because your application is not in foreground when the invoke() is called. If this is indeed the case, try a UiApplication.requestForeground() just prior to the invoke.
10-01-2008 02:12 PM
As i have mentioned in my post that below statements are working
Invoke.invokeApplication(Invoke.APP_TYPE_MEMOPAD, new MemoArguments( ));
with the help of above statements, i am able to invoke native apps with list screen
so, my question is
if invokeApplication() is blocking call, then why from above statements i am able to invoke native apps and not with other invokeApplication() calls that is used to invoke with native object(memo/contact).
one more thing the i am trying to open the native apps with existing objects (committed).
thanks in advance
10-01-2008 02:28 PM
Just to clarify, you say that you are able to get the MemoPad application to invoke with the default arguments, but any attempt to invoke with a new BlackBerryMemo object fails "silently".
I still think you may have a foreground focus issue. I have recorded very uneven results from Invoke when the calling application is not in the foreground. Sometimes the Invoked application appears and sometimes it does not. Then, when you re-enter the program by clicking the application icon, the "invoked" application suddenly appears. This applies only if the invoking application is not already in foreground.
You migh also want to post your OS and JDE version so that RIM folks can chime in if there is a known issue.
10-01-2008 02:59 PM
yes, you are right i am able to get the MemoPad application to invoke with the default arguments, but any attempt to invoke with a existing BlackBerryMemo object fails "silently".
i have tried with all JDE versions i.e greater than 4.2.1.And in all JDE's i am getting same issue.
just to clarify, my requirement is to invoke native apps from a dialog screen's button click and i trying to invoking native apps from inside Dialo'gClosedListener's dialogClosed(Dialog dialog, int choice) event.
Thanks in advanc
10-01-2008 04:04 PM - edited 10-01-2008 04:04 PM
Never tried this exact scenario - this implies that the dialog is modeless, so where was it created from? Is your application still in foreground when the listener is hit? Maybe you should call isForeground() in this listener and verify this.
Can you post a more complete code snippet?
10-06-2008 07:09 AM
Can anybody help me on this issue??
Thanks in advance..
10-06-2008 01:19 PM