BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-11-2007, 05:55 AM   #1 (permalink)
New Member
 
Join Date: Jun 2007
Model: 8700
PIN: N/A
Carrier: vodafone
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question illegalStateException on invokeApplication

Please Login to Remove!

I try to create a new memo, but i alway running into an exception (illegalStateException):
Code:
        System.out.println("create arguments.");
        MessageArguments mes = new MessageArguments (MessageArguments.ARG_NEW, "webmaster@blackberryblog.com", "Cool Recipe on KarensRecipes.com", "bmp");
        System.out.println("send Message");
        Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, mes);
                
        
        System.out.println("Test");
What could be wrong?
Offline  
Old 07-17-2007, 06:35 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i suppose u want to send an e-mail...i use this only line that is almost the same an it is working:

Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES , new MessageArguments(MessageArguments.ARG_NEW,
"address@address.com", "Email", "Body"));
Offline  
Old 07-17-2007, 06:42 AM   #3 (permalink)
New Member
 
Join Date: Jun 2007
Model: 8700
PIN: N/A
Carrier: vodafone
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, its not applicable to my problem. I want to create a blank memo with an attached image-file (my next problem) ...
Offline  
Old 07-17-2007, 06:46 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok..Sorry....Can u tell me how can i send a sms with predefined text...i start a new thread in the forum about my next problem...do u know something about that...thank u!
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.