Hasty Briefsbeta

Bilingual

Jokes and Humour in the Public Android API

a year ago
  • #API
  • #Humor
  • #Android
  • ActivityManager.isUserAMonkey() detects if the UI is being tested by the UI Exerciser Monkey tool, preventing unintended actions like emergency calls.
  • UserManager.isUserAGoat() started as a joke but later detected Goat Simulator app installation, then reverted to always return false for privacy reasons.
  • UserManager.DISALLOW_FUN is a real device policy restricting 'fun' activities, like disabling Android version easter eggs.
  • Chronometer.isTheFinalCountdown() opens the YouTube video for 'The Final Countdown' by Europe when called.
  • PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND refers to devices supporting 5 touch inputs, named after Jazz hands.
  • Log.wtf() logs 'What a Terrible Failure' messages for unexpected errors.
  • AdapterViewFlipper.fyiWillBeAdvancedByHostKThx() has a humorous name and is called by AppWidgetHost to advance views.
  • IBinder.TWEET_TRANSACTION and LIKE_TRANSACTION are joke transaction types in the Android Binder system, referencing Twitter and app 'likes'.
  • SensorManager.SENSOR_TRICORDER references Star Trek, and GRAVITY_DEATH_STAR_I and GRAVITY_THE_ISLAND are joke gravity constants.
  • The hidden <blink> tag in Android's layout system makes children blink, mimicking the old HTML <blink> tag.