2018-12-29 20:39:52.764 6129-6129/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.user.emnilauncher, PID: 6129
java.lang.ClassCastException: android.app.Application cannot be cast to com.example.user.emnilauncher.MainActivity
at com.example.user.emnilauncher.AppAdapter$2.onLongC lick(AppAdapter.java:67)
at android.view.View.performLongClickInternal(View.ja va:5752)
at android.view.View.performLongClick(View.java:5710)
at android.view.View.performLongClick(View.java:5728)
at android.view.View$CheckForLongPress.run(View.java: 22610)
at android.os.Handler.handleCallback(Handler.java:836 )
at android.os.Handler.dispatchMessage(Handler.java:10 3)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.jav a:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:924)