开发者

Android ActivityGroup: pressing search button crashes app

I have a tab host, for each tab, an ActivityGroup is associated, and there are activities in each group, now I want to use search button, I followed Google's documentation, but when I press search button, I got an exception:

java.lang.IllegalArgumentException: no ident

My ActivityGroup subclass overrides onSear开发者_运维技巧chRequested() and calls current activity's onSearchRequested(), and my activity(inside ActivityGroup) overrides onSearchRequested() method, when it returns false, nothing appears and no crash, but when it returns true, the app crashes, does anyone know what the problem is?

Thanks!


In your Acyivity

@Override
  public boolean onSearchRequested(){
      return true;
  }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜