谁能告诉我他们有什么区别?我看了下query里传入的参数是一样的,但不知道什么时候用哪个?我现在完全乱了

解决方案 »

  1.   

    ContentResolver里面最后一般来说都是调用的SQLiteDatabase的接口,只是封装了一层。
      

  2.   

    这事封装和继承的啊,用户端写程序当然用ContentResolver里的了。通过这个Resolver系统就可以找到适当的provider给你提供服务,这个provider里面要求有你的SQLiteDatabase。Resolver的借口统一的,只要你制定uri即可帮你找到适当的provider用户端直接 
    context.getContentResolver().query(uri, projection, selection, selectionArgs, sortOrder);
    就可以了。