An android library aimed at helping in the structured querying of the MediaStore to get media files in the simplest way possible taking in account both storage mediums on device
107
stars
25
forks
source link
SQLite Exception for android version lower than Marshmallow #11
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.gi.musicsystem, PID: 25889
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.gi.musicsystem/com.gi.musicsystem.HomeActivity}: android.database.sqlite.SQLiteException: no such column: bucket_id (code 1): , while compiling: SELECT _data, title, bucket_id, album_id, album, artist, duration, _display_name, _id FROM audio WHERE (is_music != 0) ORDER BY LOWER (title) ASC
at android.app.ActivityThread.deliverResults(ActivityThread.java:4179)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4222)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6238)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:933)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: android.database.sqlite.SQLiteException: no such column: bucket_id (code 1): , while compiling: SELECT _data, title, bucket_id, album_id, album, artist, duration, _display_name, _id FROM audio WHERE (is_music != 0) ORDER BY LOWER (title) ASC
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:179)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
at android.content.ContentResolver.query(ContentResolver.java:534)
at android.content.ContentResolver.query(ContentResolver.java:475)
at com.CodeBoy.MediaFacer.AudioGet.getAllAudioFolderContent(AudioGet.java:324)
at com.gi.musicsystem.HomeActivity.setStats(HomeActivity.java:488)
at com.gi.musicsystem.HomeActivity.permissionGranted(HomeActivity.java:301)
at com.gi.musicsystem.HomeActivity.onRequestPermissionsResult(HomeActivity.java:168)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7273)
at android.app.Activity.dispatchActivityResult(Activity.java:7125)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4175)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4222)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6238)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:933)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
I/Process: Sending signal. PID: 25889 SIG: 9
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.gi.musicsystem, PID: 25889 java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.gi.musicsystem/com.gi.musicsystem.HomeActivity}: android.database.sqlite.SQLiteException: no such column: bucket_id (code 1): , while compiling: SELECT _data, title, bucket_id, album_id, album, artist, duration, _display_name, _id FROM audio WHERE (is_music != 0) ORDER BY LOWER (title) ASC at android.app.ActivityThread.deliverResults(ActivityThread.java:4179) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4222) at android.app.ActivityThread.-wrap20(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6238) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:933) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823) Caused by: android.database.sqlite.SQLiteException: no such column: bucket_id (code 1): , while compiling: SELECT _data, title, bucket_id, album_id, album, artist, duration, _display_name, _id FROM audio WHERE (is_music != 0) ORDER BY LOWER (title) ASC at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:179) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) at android.content.ContentProviderProxy.query(ContentProviderNative.java:421) at android.content.ContentResolver.query(ContentResolver.java:534) at android.content.ContentResolver.query(ContentResolver.java:475) at com.CodeBoy.MediaFacer.AudioGet.getAllAudioFolderContent(AudioGet.java:324) at com.gi.musicsystem.HomeActivity.setStats(HomeActivity.java:488) at com.gi.musicsystem.HomeActivity.permissionGranted(HomeActivity.java:301) at com.gi.musicsystem.HomeActivity.onRequestPermissionsResult(HomeActivity.java:168) at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7273) at android.app.Activity.dispatchActivityResult(Activity.java:7125) at android.app.ActivityThread.deliverResults(ActivityThread.java:4175) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4222) at android.app.ActivityThread.-wrap20(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6238) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:933) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823) I/Process: Sending signal. PID: 25889 SIG: 9