Bug 58958 - Missing Activity attributes (android:showForAllUsers, android:enableVrMode, etc)
Summary: Missing Activity attributes (android:showForAllUsers, android:enableVrMode, etc)
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: 15.7
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2017-08-22 18:41 UTC by dpedrinha
Modified: 2018-01-24 15:49 UTC (History)
3 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 for Bug 58958 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description dpedrinha 2017-08-22 18:41:18 UTC
It's not really a bug, but Xamarin is missing the showForAllUsers attribute for Activities.

https://developer.android.com/reference/android/R.attr.html#showForAllUsers

Please add it.

Meanwhile is there a workaround besides editing the debug/release manifest every time I compile?
Comment 1 Jon Douglas [MSFT] 2017-08-22 19:26:03 UTC
Seems like this is indeed missing:

Quick Overall Comparison of Android Studio -> Xamarin.Android with respect to Activity attributes:

Android Studio:

allowEmbedded
allowTaskreparenting
alwaysRetainTaskState
autoRemoveFromRecents
banner
clearTaskOnLaunch
colorMode
configChanges
description
directBootAware
documentLaunchMode
enabled
enableVrMode
excludeFromRecents
exported
finishOnCloseSystemDiaglos
finishOnTaskLaunch
hardwareAccelerated
icon
immersive
label
launchMode
lockTaskMode
logo
maxAspectRatio
maxRecents
multiprocess
noHistory
parentActivityName
permission
persistableMode
process
recreateOnConfigChanges
relinquishTaskIdentity
resizeableActivity
resumeWhilePausing
rotationAnimation
roundIcon
screenOrientation
showForAllUsers
showOnLockScreen
singleUser
splitName
stateNotNeeded
supportsPictureInPicture
taskAffinity
theme
uiOptions
visibleToInstantApps
windowSoftInputMode

Xamarin.Android:

Name                    
AllowEmbedded           
AllowTaskReparenting    
AlwaysRetainTaskState   
ClearTaskOnLaunch       
ConfigurationChanges    
DirectBootAware         
Enabled                 
ExcludeFromRecents      
Exported                
FinishOnTaskLaunch      
HardwareAccelerated     
Icon                    
Label                   
LaunchMode              
LayoutDirection        
MainLauncher            
MultiProcess            
NoHistory               
ParentActivity          
Permission              
Process                 
ResizeableActivity
RoundIcon               
SupportsPictureInPicture
ScreenOrientation       
StateNotNeeded          
TaskAffinity            
Theme                   
UiOptions                          
WindowSoftInputMode     
Immersive

https://github.com/xamarin/xamarin-android/blob/6d48391c55637de04a4d9ef49d97f509cfde1264/src/Xamarin.Android.NamingCustomAttributes/Android.App/ActivityAttribute.cs               

A quick diff shows the following missing from Xamarin.Android:

autoremovefromrecents
banner
colormode
description
enablevrmode
finishonclosesystemdiaglos
locktaskmode
logo
maxaspectratio
maxrecents
persistablemode
recreateonconfigchanges
relinquishtaskidentity
resumewhilepausing
rotationanimation
showforallusers
showonlockscreen
singleuser
splitname
visibletoinstantapps

Thus I am updating the title of this bug to be a little more descriptive that more items are missing than just this one.
Comment 2 dpedrinha 2017-08-22 21:27:20 UTC
Great! Thanks for the addition.