Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

During activity lifecycle, is the class constructor ever invoked?

TojurTojur Member ✭✭

I am quite new to Xamarin and C# so please pardon my lack of knowledge.

I need to resolve a dependency and was advised by a senior to do it in the Activity's parameterless constructor, but I am not entirely sure if even such constructor is invoked when activity is created. From my understanding the OnCreate() is where all initialisation should be performed, and where I should resolve my dependency?

Best Answer

Answers

Sign In or Register to comment.