The FileInputStream class has three constructors:



FileInputStream(File file);
FileInputStream(FileDescriptor fdObj);
FileInputStream(String name);


You're using the third one, correctly...