public void testInsert()throws Exception
{
Uri uri = Uri.parse("cn.dzr.provides.personprovider/person");
ContentResolver resolver = this.getContext().getContentResolver();
ContentValues values = new ContentValues();
这段代码,我是在测试代码里写的。
this.getContext()
获取的Context是哪儿的Context呢。
------解决方案--------------------
当前Activity的Context