Bug 32059 - ArgumentException when starting to debug on locked device
Summary: ArgumentException when starting to debug on locked device
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.4
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-07-17 04:45 UTC by Falko Schindler
Modified: 2015-07-20 16:30 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Falko Schindler 2015-07-17 04:45:59 UTC
Since Xamarin.Forms 1.4.4-pre1 I get the following exception when I start debugging an app while the Android device is still locked.

[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] System.ArgumentException: inputView should be of type EditText, SearchView, or TextView
[MonoDroid] at Xamarin.Forms.Platform.Android.KeyboardManager.HideKeyboard (Android.Views.View,bool) <IL 0x00061, 0x00434>
[MonoDroid] at Xamarin.Forms.Platform.Android.FormsApplicationActivity.OnPause () <IL 0x00007, 0x0004b>
[MonoDroid] at Android.App.Activity.n_OnPause (intptr,intptr) [0x00009] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/platforms/android-15/src/generated/Android.App.Activity.cs:3222
[MonoDroid] at (wrapper dynamic-method) object.b0604714-0c17-4b43-864a-dfd251cfbb49 (intptr,intptr) <IL 0x00011, 0x0003b>
[AndroidRuntime] Shutting down VM

After getting the exception and unlocking the device I see a black screen and the status bar.

When unlocking the device *first* and starting to debug afterwards, there are no exceptions.
Comment 1 Jason Smith [MSFT] 2015-07-20 16:30:46 UTC
Should be fixed in 1.4.4-pre3