問題解決一:
寫了一個類,實作了ContentProvider,在清單檔案中也注冊了。
<provider android:name=".provider.MyProvider"
android:authorities="mytest" />
但是通路的時候出現異常:
java.lang.SecurityException: Permission Denial
解決方案:
清單的配置檔案寫成這樣就可以了:
<provider android:name=".provider.MyProvider"
android:authorities="mytest"
android:exported="true" />
android:exported=["true"|"false"]
是否允許activity被其它程式調用