Android应用程序组件Content Provider的启动过程源代码分析(4)
接下去这个代码判断当前要获取的Content Provider是否允许在客户进程中加载,即查看一个这个Content Provider否配置了multiprocess属性为true,如果允许在客户进程中加载,就直接返回了这个Content Provider的信息了: if(r!=null&&cpr.canRunHere(r)){ //Ifthisisamultiprocessprovider,thenjustreturnits //infoandallowthecallertoinstantiateit.Onlydo //thisiftheprovideristhesameuserasthecaller's //process,orcanrunasroot(socanbeinanyprocess). returncpr; } 在我们这个情景中,要获取的ArticlesProvider设置了要在独立的进程中运行,因此,继续往下执行: //Thisissingleprocess,andourappisnowconnectingtoit. //Seeifwearealread...