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

Xamarin.Forms.Portable Android MainActivity.OnCreate() - An unhandled exception occured

$
0
0

Hi,

Using VS2013, Win8.1.

In a Xamarin.Forms.Portable project, in the Android project I have the following code:

[Activity(Label = "XamarinFormsPortable", MainLauncher = true)]
    public class MainActivity : AndroidActivity
    {
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Forms.Init(this, bundle);

            SetPage(App.GetMainPage());
        }
    }

I get a runtime error (An unhandled exception occured) when calling:
Forms.Init(this, bundle);

Notice that bundle is null.

Using Xamarin.Forms version 1.2.1.6229.

Any help is appreciated.


Viewing all articles
Browse latest Browse all 58056

Trending Articles