I have ad task manager working in another projec, but when I converted the code it gave me an error when I tried to run it. The error is
E/AndroidRuntime(681): java.lang.RuntimeException: Unable to start activity ComponentInf {com.screenssample/com.sudarmuthu.android.taskmanager.ViewTasksActivity}: java.lang.ClassCastException: android.app.Application
and I do not know how to find errors by debugging it, but shouldn’t be any errors if it works in another project correct?
It seems you are trying to cast one class type to another type which are no way related. Some code may help in getting more accurate answer.