You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am opening the GalleryActivity by the following statements (Kotlin) -
val intent = Intent(context, GalleryActivity::class.java)
val params = Params()
// set Picker Limit to ONE to enable only SINGLE IMAGE click
params.pickerLimit = 1
params.toolbarColor = resources.getColor(R.color.colorPrimary)
params.actionButtonColor = resources.getColor(R.color.colorPrimary)
intent.putExtra(Constants.KEY_PARAMS, params)
startActivityForResult(intent, Constants.TYPE_MULTI_PICKER)
Upon opening the GalleryActivity, I get a "NullPointerException" at the bottom (in a Snackbar), and the following message in the exception stacktrace - System.err: at com.vlk.multimager.activities.GalleryActivity$ApiSimulator.doInBackground(GalleryActivity.java:339)
GalleryActivity -
protected ArrayList<Image> doInBackground(@NonNull Void... voids) {
ArrayList images = new ArrayList();
Cursor imageCursor = null;
try {
String[] e = new String[]{"_id", "_data", "date_added", "height", "width"};
String orderBy = "date_added DESC";
imageCursor = GalleryActivity.this.getContentResolver().query(Media.EXTERNAL_CONTENT_URI, e, (String)null, (String[])null, "date_added DESC");
---> while(imageCursor.moveToNext()) {
long _id = imageCursor.getLong(imageCursor.getColumnIndex("_id"));
Here is the screenshot of the error -
This is only happening on devices with API Level 16 (ICS), but not on devices with API levels >= 19 (kitkat).
Thanks.
The text was updated successfully, but these errors were encountered:
I am opening the GalleryActivity by the following statements (Kotlin) -
Upon opening the GalleryActivity, I get a "NullPointerException" at the bottom (in a Snackbar), and the following message in the exception stacktrace -
System.err: at com.vlk.multimager.activities.GalleryActivity$ApiSimulator.doInBackground(GalleryActivity.java:339)
GalleryActivity -
Here is the screenshot of the error -
This is only happening on devices with API Level 16 (ICS), but not on devices with API levels >= 19 (kitkat).
Thanks.
The text was updated successfully, but these errors were encountered: