Skip to content

Instantly share code, notes, and snippets.

@freeonterminate
Created February 25, 2016 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freeonterminate/d54ced3aadf777f675f2 to your computer and use it in GitHub Desktop.
Save freeonterminate/d54ced3aadf777f675f2 to your computer and use it in GitHub Desktop.
Is ATOK ?
function IsATOK: Boolean;
var
Name: JString;
begin
Result := False;
Name :=
TJSettings_Secure.JavaClass.getString(
TAndroidHelper.Context.getContentResolver(),
TJSettings_Secure.JavaClass.DEFAULT_INPUT_METHOD);
if (Name = nil) then
Exit;
Result := JStringToString(Name).ToLower.IndexOf('atok') > -1;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment