Bug 37981 - ActivityManager getLockTaskModeState() equivalent in Xamarin.Android
Summary: ActivityManager getLockTaskModeState() equivalent in Xamarin.Android
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2016-01-25 10:02 UTC by Vaikesh
Modified: 2016-01-30 04:50 UTC (History)
2 users (show)

Tags: BZCU
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Vaikesh 2016-01-25 10:02:06 UTC
What is the C# equivalent of ActivityManager public int getLockTaskModeState () in Android.

Refer : http://developer.android.com/reference/android/app/ActivityManager.html#getLockTaskModeState()

How to get the current state of task locking in Xamarin.Android ?
Comment 1 Ashley Gazich [MSFT] 2016-01-28 15:18:22 UTC
Hi Vaikesh,

This appears to be an informational request rather than a Xamarin product issue. For assistance with these types of questions, please consult the developer community in venues such as the Xamarin forums or Stack Overflow:


This report will now be closed.
Comment 2 Jonathan Pryor 2016-01-29 14:36:02 UTC
@Vaikesh: get and set methods are bound as Properties, when applicable:


Consequently, you want the ActivityManager.LockTaskModeState property.
Comment 3 Vaikesh 2016-01-30 04:50:16 UTC
Thanks @Jonathan_Pryor.

I got it cleared.