Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Mar 9, 2021
1 parent 166bcae commit 7f243d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ I co-host a weekly development podcast, [Merge Conflict](http://mergeconflict.fm

## Version 4 Major Update - Android

We now use Xamarin.Essentials for getting access to the current activity. So ensure you initialize Xamarin.Essentials in your Android app.
We now use Xamarin.Essentials for getting access to the current activity. So ensure you [initialize Xamarin.Essentials](https://docs.microsoft.com/xamarin/essentials/get-started?WT.mc_id=friends-0000-jamont) in your Android app.

Also if you get a null exception the linker is being aggressive so write the following code in your MainActivity:

```csharp
var context = Platform.AppContext;
var activity = Platform.CurrentActivity;
var context = Xamarin.Essentials.Platform.AppContext;
var activity = Xamarin.Essentials.Platform.CurrentActivity;
```

Version 4.X updates to the new Android billing client. This means there are few important changes:
Expand Down

0 comments on commit 7f243d4

Please sign in to comment.