I'm having problems with running the code on my device [duplicate]
This question already has an answer here: Explanation of “ClassCastException” in Java 11 answers Here is my problem. Below is my class (Events.java) below it is the error. I continue to run my code on my phone but continue to get that error. I don't know what exactly the problem is and I don't know how to fix it. I tried everything I looked up but kept getting errors. Please help I'm a noob obviously. package com.androidapp.restart; import android.app.Fragment; import android.app.LoaderManager; import android.app.ProgressDialog; import android.content.ContentUris; import android.content