Sunday, February 23, 2014
android: contentprovider uri judgment, seeking the god coming! ! !
if ((MATCHER.match (uri))! = PERSONS)
{
sqlqb.appendWhere ("_id =" + uri.getLastPathSegment ());
}
Why regardless MATCHER.match (uri) What value can pass judgment (PERSONS constant value fixed value)? ? ? ?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
I tried if (1! = 1) {
.....
}
Is possible
Reply:
You print log look. You should all be satisfied.
Reply:
Thank you, 2nd Floor, log condition false print but I also entered the
sqlqb.appendWhere ("_id =" + uri.getLastPathSegment ());
I do not know why? Obviously conditions are not met yet entered
Reply:
(MATCHER.match (uri)) that returns true / false
This PERSONS your constant?
Reply:
Although entered if the braces but did not enter the method. . . Eclipse should be my problem. . . Give you a
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment