0
如果我有與列的表:我需要爲每列添加adduri嗎?
COMPANION_ID
COMPANION_NAME
COMPANION_TYPE
做我需要做的
uriMatcher.addURI(AUTHORITY,"COMPANION/#",COMPANION_ID);
uriMatcher.addURI(AUTHORITY,"COMPANION/*",COMPANION_NAME);
uriMatcher.addURI(AUTHORITY,"COMPANION/*",COMPANION_TYPE);
或做我做的:
uriMatcher.addURI(AUTHORITY,"COMPANION/COMPANION_ID/#",COMPANION_ID);
uriMatcher.addURI(AUTHORITY,"COMPANION/COMPANION_NAME/*",COMPANION_NAME);
uriMatcher.addURI(AUTHORITY,"COMPANION/COMPANION_TYPE/*",COMPANION_TYPE);
你需要查詢/刪除由「名」和/或「輸入」 /更新? – pskink
@pskink是的我需要 –
所以請按照路徑#2 – pskink