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: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2017-08-22 18:41 UTC by dpedrinha
Modified: 2017-08-22 21:27 UTC (History)
2 users (show)

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


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.