Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored Oct 16, 2020
1 parent 0e28c14 commit 0647e21
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,7 @@ void RequestReview();

### Android setup

You need to add the following line to your OnCreate method in the main activity class:
```csharp
Xamarin.Essentials.Platform.Init(this, bundle);
```

It should look like this:
```csharp
protected override void OnCreate(Bundle savedInstanceState)
{
// Rest of method omitted for simplicity
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
}
```
Ensure that you follow the [Xamarin.Essentials setup steps](https://docs.microsoft.com/xamarin/essentials/get-started?WT.mc_id=docs-github-jamont).

### Android code shrinker (Proguard & r8)

Expand Down

0 comments on commit 0647e21

Please sign in to comment.