How to pass two or more selection argument in “query” method

后端 未结 4 2012
温柔的废话
温柔的废话 2020-12-11 04:00

I am using query method, but I don\'t no how to pass more than one selection argument in query method.

My query method should return result as same as this sql stat

4条回答
  •  青春惊慌失措
    2020-12-11 04:17

    You can use it like that

    String strSelection = android.provider.CallLog.Calls.TYPE + " = " + CallLog.Calls.MISSED_TYPE+ " OR " + android.provider.CallLog.Calls.TYPE + " = " + CallLog.Calls.INCOMING_TYPE ;

提交回复
热议问题