Skip to content

Instantly share code, notes, and snippets.

@alexjlockwood
Created June 12, 2012 15:49
Show Gist options
  • Save alexjlockwood/2918323 to your computer and use it in GitHub Desktop.
Save alexjlockwood/2918323 to your computer and use it in GitHub Desktop.
public class SampleActivity extends Activity {
private AlbumStorageDirFactory mAlbumFactory;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/* Implementation not shown */
mAlbumFactory = AlbumStorageDirFactory.newInstance();
File sampleAlbumDir = getAlbumDir("sample_album");
}
private File getAlbumDir(String albumName) {
return mAlbumStorageDirFactory.getAlbumStorageDir(albumName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment