Context fileList - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Context fileList method.

This code example shows how to use the following methods:fileList, getFilesDir
    assertTrue(context.getFilesDir().exists());
  } 
 
  @Test 
  public void fileList() throws Exception { 
    assertThat(context.fileList()).isEqualTo(context.getFilesDir().list());
  } 
 
  @Test 
  public void getExternalFilesDir_shouldCreateDirectory() throws Exception { 
    assertTrue(context.getExternalFilesDir(null).exists());
  } 
 
  @Test 
  public void getExternalFilesDir_shouldCreateNamedDirectory() throws Exception { 
    File f = context.getExternalFilesDir("__test__");
    assertTrue(f.exists());
    assertTrue(f.getAbsolutePath().endsWith("__test__"));
  } 
 
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java

Related Context fileList Questions & Answers:

fileList Method Overview
Returns an array of strings naming the private files associated with this Context's application package.
See Code Examples for other Android Context Methods: