Hi all.
   This is driving me nuts.  I setup search in my application and it works 
great if you hit the search button on the device or if I call 
onSearchRequested() from the onStart method of my activity.  But I have a 
listview that has a onItemClickListener that implements the onItemClick 
listener.  If I call onSearchRequested() from there, I get a 
NullPointerException.  I have tried using a handler to send a message and 
for the handler to execute the onSearchRequested(), but I get the same 
error.  the code is up over at stack overflow too: 
http://stackoverflow.com/questions/11247880/calling-search-dialog-from-onitemclicklistener

Thanks,
-James

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to