public TestProperties(Context context){
  this.context=context;
  InputStream stream=null;
  try {
    String filename="test.properties";
    stream=getPropertyFileAsStream(filename);
    if (stream != null) {
      Log.i("TestProperties","Loading properties from: '" + filename + "'");
      properties.load(stream);
    }
  }
 catch (  Exception e) {
    Log.e("TestProperties","caught exception:",e);
  }
 finally {
    if (stream != null) {
      try {
        stream.close();
      }
 catch (      IOException e) {
        Log.e("TestProperties","caught exception:",e);
      }
    }
  }
}

public TestProperties ( Context context ) { this . context = context ; InputStream stream = null ; try { String filename = "test.properties" ; stream = getPropertyFileAsStream ( filename ) ; if ( stream != null ) { Log . i ( "TestProperties" , "Loading properties from: '" + filename + "'" ) ; properties . load ( stream ) ; } } catch ( Exception e ) { Log . e ( "TestProperties" , "caught exception:" , e ) ; } finally { if ( stream != null ) { try { stream . close ( ) ; } catch ( IOException e ) { Log . e ( "TestProperties" , "caught exception:" , e ) ; } } } }
reads properties from a properties file
