0

I need to communicate with other app through my ime,i wanted to run this code:

 Intent intent=new Intent("someaction");
        PackageManager packageManager = getPackageManager();
        List activities = packageManager.queryIntentActivities(intent,
                PackageManager.MATCH_DEFAULT_ONLY);
        boolean isIntentSafe = activities.size() > 0;

and the if isIntentSafe to use startActivityForResult ,but i can't do it through IME because it is not an activity, any suggestions how can I do this ?

startActivity starts an activity from another app ,so if call startActivityForResult from there the result will stay there i will not see it in InputMethodService

Thank you

Maxim Toyberman
  • 1,906
  • 1
  • 20
  • 35

0 Answers0