Preventing Unwanted Content from Google Keyboard

1 · Daniel Lew · March 25, 2019, 7:04 p.m.
Android 7.1 added the ability for IMEs to send images (and more) to EditTexts. Supporting rich content requires you to explicitly opt-in by overriding EditText.onCreateInputConnection(). It's a bit of a hassle, and not everyone wants to accept rich content, so unsurprisingly many apps don't support it. Normally if...