Unable to return the Contact object!
Nice day
In trying to return to a contact in the address book, I get a runtime error that States "push modal screen is called from a thread not event," I know very well off the coast. In this case, I decided to use the trick of invokeAndWait update a screen on the thread of the Main Event. But now, even if the address book is displayed, he refuses to return to a contact. To return to my application, the only way is by the "ESC" key, which, of course, does not return a contact object.
Does anyone know of a work around that? It's confusing me now,
1) tap address book to the queue of the event.
(2) turning a contact to the application without entering the key "ESC".
See you soon,.
Nik
UiApplication.getApplication().invokeAndWait ( new Runnable () { public synchronized void run() { try { final BlackBerryContactList list = (BlackBerryContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST,PIM.READ_WRITE); Contact contact = list.choose(null, BlackBerryContactList.AddressTypes.EMAIL,false); if (contact != null) { String email = contact.getString(Contact.EMAIL, 0); System.out.println ("Name is : "+email); } } catch (PIMException pe){} } } );
AW... Is not serious... think about it...
If the contact does not have an e-mail address, it selects it, rather than the contact does is display.
Use the method BlackBerryContactList.choose (No params).
See you soon,.
Nik.
Tags: BlackBerry Developers
Similar Questions
-
Unable to access the doc object
Hello
I'm unable to access the doc object, as in doc.mailForm ().
I tried to access this object as follows, a field event and a global module:
This.doc (undefined)
App.doc (undefined)
Event.Target.doc (undefined)
doc (blocks JavaScript).
The app object is OK, I can use app.alert ().
I use Designer version 8.2.1, using a dynamic XML form.
Just use event.target which will return the doc object.See the code example belowvar doc = event.target;doc. Print();doc.saveAs ();doc.closeDoc ();Nith
-
The import Skype contacts you return the Contact request?
I want to import the contacts from my old Skype account, exported in my new Skype account.
Skype will return the contact request to all the imported contacts?
N ° you need me to send the invitation contact for each of the imported contacts.
-
How to return the sprite object?
I want to load both image and add each image to each sprite object, like photo one sprite1 and photo b to spriteb, I know that I can load a pictue with the following code:
loadImage ('a');
loadImage ('b');
private void loadImage(imagePath:String):void {}
var loader: Loader = new Loader();
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onImageLoaded);
Loader.Load (new URLRequest (imagePath));
}
private void onImageLoaded(event:Event):Sprite {}
var loaderInfo:LoaderInfo = event.target as LoaderInfo;
_loadedBitmap = LoaderInfo.Content as Bitmap;
Return runPostImageLoad (_sprite);
}
private void runPostImageLoad(_sprite:Sprite):Sprite {}
... photo of //load
}But I want to make my code like the following, because I want to use sprite1, sprite2 for something else:
var sprite1:Sprite = loadImage ('a');
var sprite2:Sprite = loadImage ('b');I don't know how to change the loadImage function to return the sprite object. Could someone tell me how to do?
Thank you
use:
private var _sprite:Sprite;
.
.
private void loadImage(imagePath:String):Sprite {}
var loader: Loader = new Loader();
Loader.Name = "Loader";
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onImageLoaded);
Loader.Load (new URLRequest (imagePath));
_sprite = new Sprite();
_sprite. AddChild ("Loader");
return _sprite
}
private void onImageLoaded(event:Event):void {}
var loaderInfo:LoaderInfo = event.target as LoaderInfo;
_loadedBitmap = LoaderInfo.Content as Bitmap;
runPostImageLoad();
}
private function runPostImageLoad (): void {}
just draw the shape of the irregular part
If (_loadedBitmap...) {
_sprite.removeChild (_sprite.getChildByName ("loader"));
_sprite. Graphics.drawRect (...);
}
}
p.s. Please check the correct and useful.
-
Should I return the JSON object or object java SOA?
Hi gurus,
A question that I hope makes sense - can SOA return a JSON object JAVA object, not XML?
Thank you
Anatoliy
First "SOA" is not a thing, so it's difficult to give a Yes or no
This is a technical product feature if it will be possible to expose data in xml/json/etc. formats
When we look at the Oracle portfolio, we have a preview for example Oracle SOA Suite and Oracle Service Bus (other Oracle products can do the same thing).
With these two products, you will be able to represent your data in other formats in addition to XML.
some links to help you get started.
https://blogs.Oracle.com/jeffdavies/entry/using_json_with_oracle_service
http://Biemond.blogspot.nl/2010/05/HTTP-binding-in-SOA-Suite-11g-PS2.html
http://javaoraclesoa.blogspot.nl/2012/12/receiving-JSON-requests-in-Oracle-BPEL.html
Oracle Service Bus can also store Java objects in jms queues, so, like, that you can carry your data too.
Hope it will be a little helpful
-
I finished to download Firefox for my Mac OS 4.o. X.
When I try to open a Web site, I get the message:
[JavaScript Application] cannot create the plugin object of mcafee: TypeError: components.classes['@ [cid] is undefined
If I click on the OK button, the site opens, but without the alert McAfee at the bottom of the window.
I had just downloaded 3.6.16 and got box suggesting version 4.0 download for better security, but that seems to be where the problem is!This indicates that an add-on that you use is not compatible, considering the other errors, maybe it's the McAfee add-in. To confirm that the module is originally, use the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
-
Original title: Android mobile phone via bluetooth, I get an error on my phone.
When I try to send a file by my Android phone to my laptop via bluetooth, I get an error on my phone saying "cannot start service Object Push Profile (OBEX OPP)". Reason: The return value is "false", but I can send files from my laptop to my phone OK.
Hi steve3624,
We recommend to check if there is no parameter which must be activated on your phone, then try to transfer the file to your laptop.
We also advise to check if there are any service name Object Push Profile and start it. To do this, try the following steps:
a. Click Start, type services.msc and press to enter.
b. in the list of services, locate Object Push Profile service and double-click it.
c. change the startup type to automatic and click on the Start button to start the service.
d. click ok to apply the changes.For further assistance, please get in touch with the assistance of the Android team.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
Cannot return the custom object method in the module of the application
Hi all
I use Jdeveloper 11 g R2 (11.1.2.3) & Weblogic 10.3.5.0
I need to add a method with a custom object as return in my application module sometingh like this:
public MyObject-myMethod (line myRow) {}
my code...
}
After add request module is not displayed in the Client interface, so I'm not able to expose to view projects
But if I change it to:
public Long myMethod (line myRow) {}
my code...
}
so it's OK
Can someone tell me I expect much? or a bad thing?
Is that more than a service of class of the interface?
Thank you
MohsenYour custom class must be serialized, otherwise it will not be displayed as a client method.
Timo
-
Unable to expose the ERP objects like services
Hello
In fact, we have created an object in ERP and could not able to expose the object created as a service of s.
Can someone please help with that?
Thanks in advance,
Nitesh Kumar
What ERP application you're talking about? which adapter is used?
We will not be able to respond with very little information
Ravi
-
Unable to convert the dataprovider object to VO
What are the conditions to be able to ride like this:
< s:DropDownList prompt = "Select user" labelField = "name" id = "users" width = "240" skinClass = "nikos.skins.comboBoxDropDown_Long_blueGrad" >
< s:change >
<! [CDATA]
appUserChanged.dispatch (users.selectedItem as model.vo.User);
[]] >
< / s:change >
< / s:DropDownList >the fields in objects in the dataprovider corresponding with the user, but I still get null after melting.
package model.vo
{
[Bindable]
public class User
{
public var SAMAccountName:String;
public var name: String;
public var email: String;
public var commentsView:Boolean;
public var commentsUsersSelect:Boolean;
public var ratingsView:Boolean;
public var dateCreated:Boolean;}
}Thank you
I do not believe you can cast that way, but you could get round this way:
appUserChanged.dispatch (new model.vo.User (users.selectedItem.SAMAccountName, param2, etc...));
and add a constructor to the User class:
public void user (SAMAccountName:String, etc...)
{
This. SAMAccountName = SAMAccountName;
etc...
}
-
It happened once that shortly after Firefox the default browser and I could not have restored functional, even after disabling restore on all drives, restarting and creating a manual restore point. I then did a clean install of Windows XP and found a functional restoration. On several occasions after reloading I tested all restoration programs and it worked normally. Now, two weeks later he did it again. I wonder if it might be Firefox or Norton.
Yes, it's a known conflict of Norton.
1. "Norton 2006 and later products have a safety feature that prevents outside programs from making changes to the Norton product.» This security feature can prevent the Windows system restore from changing Norton files, resulting in the "Restoration incomplete" message
Temporarily disable the Norton product protection before running the Windows system restore. »
http://Service1.Symantec.com/support/sharedtech.nsf/pfdocs/2005113009323013
2. you can also see here for more details: http://service1.symantec.com/support/nav.nsf/docid/2001012915055706
-
Unable to get the targeted object
Try getLeafFieldWithFocus(), I always find it going past the Manager and gets the real field.
-
Download GPS Latitude and Longitude of the Contact
I'm stuck with this problem.
I want to get the GPS latitude and longitude of the contact object.
Can any post related code. ??
Kind regards
V: Vinay
Thanks for the suggestion
My code works fine now.
I me call Blackberry card for the most part after the return of the thread.
Now, I m call from BB after invoking card application
landmarkArray = Locator.geocode (_search, null);
in the thread itself. It works very well.
Thank you all,.
V: Vinay
-
ore.doEval funciton return the error
Hello
I just started business Oracle R bent.
I installed the 11.2.0.3 and R database in Oracle Linux guest machine. and the connection of the machine host windows8. I am able to correctly configure the client and server and be able to connect to the database.
But, when I use "ore.doEval" function, I get the following error. Could you please someone suggest me...
> library (ORE)
> ore.connect (user = "rquser", sid "orcl" is, host = "linux02.linux", password is "admin123", port = 1521, all = TRUE)
> ore.is.connected)
[1] TRUE
> ore.doEval (function () {123})
Error in .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,):
Error in try ({: ORA-20000: error RQuery})
Error in dyn.load (file, DLLpath = DLLpath,...):
Unable to load the shared object ' / u01/app/oracle/product/11.2.0.3/R/library/OREserver/libs/OREserver.so':
libgfortran.so.1: cannot open shared object file: no such file or directory
ORA-06512: at "RQSYS. RQEVALIMPL', line 104
ORA-06512: at "RQSYS. RQEVALIMPL', line 101
Kind regards
RAMU.
got the metalink solution below and it worked.
-------------------------------------------------------------------------------
Oracle Database - Enterprise Edition - Version 11.2.0.1.0 to 11.2.0.4 [version 11.2]
Information in this document applies to any platform.
Symptoms
The following error occurs:
[oracle@ore ~] $ R
Distribution of R of Oracle version 3.0.1 (-)-"good Sport".
Copyright (C) the Foundation of R for statistical computing
Platform: x86_64-unknown-linux-gnu (64-bit)R is free software, and comes WITHOUT ANY WARRANTY.
You are welcome to redistribute it under certain conditions.
Type "license()" or "licence()" for more details of distribution.Language natural but running in an English language environment
R is a project in collaboration with many contributors.
Type 'contributors()' for more information and
"citation()" on how to cite R or R packages in publications.Type "demo()" for demos, "help()" in the online help, or
"help.start ()" for a browser interface HTML to help him.
Type 'q()' to exit R.You use distribution Oracle of R. Please contact
Oracle Support for any problems you encounter with this
range.Loading required package: OREbase
Loading required package: utilsFixing Pack?: OREbase?
The following objects are hidden from? package: base? :
cbind data.frame, eval, interaction, order, dough, pmax, pmin,
rbind, tableLoading required package: OREembed
Loading required package: OREstats
Loading required package: stats
Loading required package: MASS
Loading required package: grDevices
Loading required package: graphics
Loading required package: OREgraphics
Loading required package: OREeda
Loading required package: OREmodels
Loading required package: OREdm
Loading required package: lattice
Loading required package: OREpredict
Loading required package: ORExml
Loading required package: ROracle
Loading package perl: DBIConnected to database 12 c ORE 1.4
> ore.ls)
[1] "IRIS" "ONTIME".
> ore.doEval (function () {123})
Error in .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,):
Error in try ({: ORA-20000: error RQuery})
Error in dyn.load (file, DLLpath = DLLpath,...):
Unable to load the shared object ' / u01/app/oracle/product/12.1.0.1/dbhome_1/R/library/OREserver/libs/OREserver.so':
libgfortran.so.1: cannot open shared object file: no such file or directory
ORA-06512: at "RQSYS. RQEVALIMPL', line 104
ORA-06512: at "RQSYS. RQEVALIMPL', line 101Cause
This is caused by the required library 'libgfortran.1.0 '.
Solution
Install the "compat-libgfortran-41 - 4.1.2 - 39.el6.x86_64.rpm", i.e.:
[oracle@ore ~] $ R
Distribution of R of Oracle version 3.0.1 (-)-"good Sport".
Copyright (C) the Foundation of R for statistical computing
Platform: x86_64-unknown-linux-gnu (64-bit)R is free software, and comes WITHOUT ANY WARRANTY.
You are welcome to redistribute it under certain conditions.
Type "license()" or "licence()" for more details of distribution.Language natural but running in an English language environment
R is a project in collaboration with many contributors.
Type 'contributors()' for more information and
"citation()" on how to cite R or R packages in publications.Type "demo()" for demos, "help()" in the online help, or
"help.start ()" for a browser interface HTML to help him.
Type 'q()' to exit R.You use distribution Oracle of R. Please contact
Oracle Support for any problems you encounter with this
range.Loading required package: OREbase
Loading required package: utilsFixing Pack?: OREbase?
The following objects are hidden from? package: base? :
cbind data.frame, eval, interaction, order, dough, pmax, pmin,
rbind, tableLoading required package: OREembed
Loading required package: OREstats
Loading required package: stats
Loading required package: MASS
Loading required package: grDevices
Loading required package: graphics
Loading required package: OREgraphics
Loading required package: OREeda
Loading required package: OREmodels
Loading required package: OREdm
Loading required package: lattice
Loading required package: OREpredict
Loading required package: ORExml
Loading required package: ROracle
Loading package perl: DBIConnected to database 12 c ORE 1.4
> ore.ls)
[1] "IRIS" "ONTIME".
> ore.doEval (function () {123})
[1] 123 -
Lenovo K900 - displaying only and not the contacts when I call
Hello, I bought my K900 phone a few days ago in the shop in India. When I dial a contact or a contact trying to call me, only numbers and not the name of the contact on the phone. Help, please
Hello, the issue of the sorted mate. I did return the contacts, remove the phone and them even once, Voila - restored to work like a jewel
Maybe you are looking for
-
I don't have access to the internet
Separated from this thread. I don't have access to the internet. How can I get it back
-
Where can you find the dialogue or the button/box RUN?
Where can you find the dialogue or the button/box RUN?
-
Hi all I need to display an image as a logo to the top of my screen pf, and below that I should have the ListField. I just need to know how to add pictures. can anyone help?
-
The icons are not displayed to the top
I was looking for something in the Task Manager and accidentally remove Microsoft (something). How can I put everything to normality?
-
Trying to assign a Joint Action at various elements of text in an individual shape smart
HelloI'm looking for the best way of allocation for joint action to different elements of text in an individual shape smart and I was wondering if anyone can offer advice?As this situation seems pretty complex (for me at least), I'll try to explain b