Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

OnStart, OnSleep, and OnResume Are Not Getting Called

$
0
0

I created a new Blank Xamaring.Forms App called Test. I updated all packages, then changed the options in the Test.Droid project disabling the Use shared Mono runtime and settings the Supported ABIs to armeabi-v7a and x86. In the Test.App file I added a Debug.WriteLine call to the OnStart, OnSleep, and OnResume methods as well as placed a breakpoint on each Debug.WriteLine call I just added. When I run the app using the Xamarin Emulator with the Nexus 4 (KitKat) option, the breakpoints are hit correctly.

Then, I add a new folder called Interfaces to the Test project and create a new interface called IPersistence although I don't add any method definitions. When I try to re-run the app, the breakpoints are no longer hit. Any ideas why?

Thanks!
Andrew


Viewing all articles
Browse latest Browse all 77050

Trending Articles