Cursor wrapping/unwrapping in ContentProvider

前端 未结 3 987
南方客
南方客 2021-02-02 13:27

I\'m creating ContentProvider which is a proxy of another ContentProvider (for security issues and to give access to part of functionality of full app).

public          


        
3条回答
  •  北荒
    北荒 (楼主)
    2021-02-02 13:49

    As far as I know you can't unwrap the Cursor because the wrapper class is private (it could be possible using reflections but the SecurityManager won't allow it probably) but you could try to create your own wrapper which implements CrossProcessCursor, wraps the returned cursor and is returned by your ContentProvider.

提交回复
热议问题