J'ai ajouté un BroadCastReceiver à mon application. Je veux appeler ma méthode inputMethod mais je ne trouve pas de moyen d'accéder à son instance.Appel d'une méthode inputMethod lorsqu'un BroadcastReceiver est appelé
Je lis que je peux obtenir un InputMethodManager par:
InputMethodManager manager = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
mais je ne pouvais pas trouver un moyen d'obtenir l'instance InputMethod du InputMethodManager.
Est-ce que faire un singleton est la seule façon d'y accéder?