Skip to content

Commit

Permalink
Security exception fix?
Browse files Browse the repository at this point in the history
java.lang.SecurityException: Failed to find provider null for user 0; expected to find a valid ContentProvider for this authority
	at android.os.Parcel.readException(Parcel.java:1942)
	at android.os.Parcel.readException(Parcel.java:1888)
	at android.content.IContentService$Stub$Proxy.notifyChange(IContentService.java:801)
	at android.content.ContentResolver.notifyChange(ContentResolver.java:2046)
	at android.content.ContentResolver.notifyChange(ContentResolver.java:1997)
	at android.content.ContentResolver.notifyChange(ContentResolver.java:1967)
	at com.activeandroid.Model.save(Model.java:162)
	at info.puzz.a10000sentences.dao.Dao.importLanguage(Dao.java:33)
	at info.puzz.a10000sentences.activities.BaseActivity$1._onResponse(BaseActivity.java:131)
	at info.puzz.a10000sentences.activities.BaseActivity$1.onResponse(BaseActivity.java:110)
	at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:68)
  • Loading branch information
tkrajina committed Oct 25, 2018
1 parent 1af81cb commit 4af8b6e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 10000sentencesapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
applicationId "info.puzz.a10000sentences"
minSdkVersion 19
targetSdkVersion 26
versionCode 56
versionCode 57
versionName "0.3.01"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
Expand Down
20 changes: 16 additions & 4 deletions 10000sentencesapp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />-->
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />-->

<uses-feature android:name="android.hardware.screen.portrait" />

Expand All @@ -16,9 +16,21 @@
android:supportsRtl="true"
android:theme="@style/AppTheme">

<meta-data android:name="AA_DB_NAME" android:value="10000sentences.db" />
<meta-data android:name="AA_DB_VERSION" android:value="10" />
<meta-data android:name="AA_MODELS" android:value="info.puzz.a10000sentences.models.Language,info.puzz.a10000sentences.models.Sentence,info.puzz.a10000sentences.models.SentenceCollection,info.puzz.a10000sentences.models.SentenceHistory,info.puzz.a10000sentences.models.Annotation,info.puzz.a10000sentences.models.WordAnnotation" />
<provider
android:name="com.activeandroid.content.ContentProvider"
android:authorities="info.puzz.a10000sentences"
android:enabled="true"
android:exported="false" />

<meta-data
android:name="AA_DB_NAME"
android:value="10000sentences.db" />
<meta-data
android:name="AA_DB_VERSION"
android:value="10" />
<meta-data
android:name="AA_MODELS"
android:value="info.puzz.a10000sentences.models.Language,info.puzz.a10000sentences.models.Sentence,info.puzz.a10000sentences.models.SentenceCollection,info.puzz.a10000sentences.models.SentenceHistory,info.puzz.a10000sentences.models.Annotation,info.puzz.a10000sentences.models.WordAnnotation" />

<activity
android:name=".activities.CollectionsActivity"
Expand Down

0 comments on commit 4af8b6e

Please sign in to comment.