New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

InTheHand.AndroidActivity

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

InTheHand.AndroidActivity

A dependency free method of determining the current activity in a cross-platform app running on Android.

Source
nugetNuGet
Version
1.0.5
Version published
Maintainers
2
Created
Source

InTheHand.AndroidActivity

Provides a mechanism to store a reference to the main activity in cross-platform projects

Usage

The library is only required on Android, but can be used by cross-platform libraries such as 32feet.NET in Xamarin or .NET MAUI projects. You need to set the CurrentActivity by assigning it inside your platform-specific MainActivity.cs or similar.

Supported Frameworks

  • Xamarin Forms
  • .NET MAUI
  • Uno Platform
  • Xamarin Android
  • .NET Android (non-MAUI)
  • Avalonia UI

Set the current Activity in your MainActivity OnCreate method:-

protected override void OnCreate(Bundle savedInstanceState)
{
   // provide reference to current activity
   InTheHand.AndroidActivity.CurrentActivity = this;

   base.OnCreate(savedInstanceState);
}

Nuget (with prereleases)

Keywords

android

FAQs

Package last updated on 15 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts