[android-developers] onSearchRequested gives null pointer exception when called from an OnItemClickListener's onItemClick member function

2012-06-29 Thread James Becwar
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

[android-developers] Re: Many app share one Class?

2010-08-03 Thread James Becwar
You need to make a JAR and add them to both projects as external libs.
-James
http://www.jamesbecwar.com


On Aug 3, 12:04 am, 汪健飞 wangjf...@gmail.com wrote:
 I mean don't find MessageVo in the testTwoApp,because testTwoApp and
 MessageVo don't together project.

 2010/8/3 Floaters puhao7117...@gmail.com





  I think it's easy, maybe you can refre this document:
 http://developer.android.com/guide/topics/intents/intents-filters.html

  2010/8/3 汪健飞 wangjf...@gmail.com

  I want many app share one class,for example,I have MessageVo,I want
  testApp and testTwoApp share MessageVo.but I don't know TestTwoApp use
  MessageVo.

  --
  Cary

  --
  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.comandroid-developers%2Bunsubs
   cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

   --
  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Cary

-- 
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