https://kotlinlang.org logo
#android
Title
# android
d

dewildte

04/20/2020, 2:23 PM
Does anyone know why
System.console
returns null?
c

Casey Brooks

04/20/2020, 2:42 PM
Android apps aren’t run from a terminal session, they’re started and managed directly by the OS. Since there’s no interactive character-based terminal, there is no Console object. The Javadoc for that method described that it should return null in this case https://developer.android.com/reference/java/lang/System#console()
d

dewildte

04/20/2020, 6:38 PM
thanks
12 Views