Code example for Resources.NotFoundException

Methods: getMessage

0
    JapaneseKeyboardParser parser = new JapaneseKeyboardParser(
        resources, resources.getXml(spec.getXmlLayoutResourceId()), spec, width, height);
    try { 
      return parser.parseKeyboard();
    } catch (NotFoundException e) {
      fail(e.getMessage());
    } catch (XmlPullParserException e) {
      fail(e.getMessage());
    } catch (IOException e) {
      fail(e.getMessage());
    } 
 
    throw new AssertionError("Should never reach here");
  } 
 
  @SmallTest 
  public void testFlick() { 
    JapaneseKeyboardView view = new JapaneseKeyboardView(getInstrumentation().getTargetContext());
    Activity activity = launchActivity(
        getInstrumentation().getTargetContext().getPackageName(), Activity.class, null);
    try {