Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

activity did not call through super.onresume exception

In my xamarin forms app, there is crash which is as follows from App Center crashlytics: - line 7138
android.util.SuperNotCalledException: Activity
did not call through to super.onResume()$H.handleMessage

I just use onResume() in my Shared Library project like:

public partial class App : Application
protected override void OnResume()
Utility.LogMessage("OnResume: ",;

**I did not implement/use onResume() in the MainActivity class of android project.
Where and why this crash occured? And also would it be cause app to crash continously when user tries to open the app?


  • JoeMankeJoeManke USMember ✭✭✭✭✭

    Add base.OnResume(); to your override. super in Java means the same thing as base in C#.

  • sunkarisunkari Member ✭✭

    Thanks for the response @JoeManke .

    I use onResume() in only shared project's App.xaml.cs file (which extends Application). I did not use onResume() override method in MainActivity.cs file of Android project.

    Then why the above error says the crash is related to MainActivity class?

  • JoeMankeJoeManke USMember ✭✭✭✭✭

    I can't diagnose all of your Android problems based on 3 lines of cross-platform code. Post your MainActivity code. And if you have an Application class in your Android project (Android.App.Application) it might be helpful to post that too.

  • sunkarisunkari Member ✭✭

    Below are the MainActivity and Application class files of my android project

  • JoeMankeJoeManke USMember ✭✭✭✭✭

    Possibly an issue with ScreenOrientation = ScreenOrientation.Portrait in your Activity attribute? See

  • sunkarisunkari Member ✭✭
    edited November 2018

    Its difficult to say it's a fix as this error happens to few users randomly. Also, I want my app in Portrait mode all the time irrespective of the orientation.

Sign In or Register to comment.