Code example for Intent

Methods: setClassNamesetFlags

  public void resolveService__Match() throws Exception { 
    Intent i = new Intent(Intent.ACTION_MAIN, null);
    ResolveInfo info = new ResolveInfo();
    rpm.addResolveInfoForIntent(i, info);
    assertThat(rpm.resolveService(i, 0)).isSameAs(info);
  public void removeResolveInfosForIntent_shouldCauseResolveActivityToReturnNull() throws Exception { 
    Intent intent = new Intent(Intent.ACTION_MAIN, null).addCategory(Intent.CATEGORY_LAUNCHER);
    ResolveInfo info = new ResolveInfo();
    info.nonLocalizedLabel = TEST_PACKAGE_LABEL;
    info.activityInfo = new ActivityInfo();
    info.activityInfo.packageName = "";
    rpm.addResolveInfoForIntent(intent, info);
    rpm.removeResolveInfosForIntent(intent, "");
Connect your IDE to all the code out there  Get Codota for Java