protected static InputStream getConfigurationFileFromAssets ( Context context , String fileName ) { if ( context == null ) { return null ; } AssetManager assets = context . getAssets ( ) ; if ( assets == null ) { return null ; } try { return assets . open ( fileName ) ; } catch ( IOException e ) { return null ; } }
Gets an input on a configuration file placed in the application assets .