protected DataInputStream openFileOnMountedObb(String obbPath,String fileName){
  assertTrue("Cannot open file when OBB is not mounted!",mSm.isObbMounted(obbPath));
  String path=mSm.getMountedObbPath(obbPath);
  assertTrue("Path should not be null!",path != null);
  File inFile=new File(path,fileName);
  DataInputStream inStream=null;
  try {
    inStream=new DataInputStream(new FileInputStream(inFile));
    Log.i(LOG_TAG,"Opened file: " + fileName + " for read at path: "+ path);
  }
 catch (  FileNotFoundException e) {
    Log.e(LOG_TAG,e.toString());
    return null;
  }
catch (  SecurityException e) {
    Log.e(LOG_TAG,e.toString());
    return null;
  }
  return inStream;
}

protected DataInputStream openFileOnMountedObb ( String obbPath , String fileName ) { assertTrue ( "Cannot open file when OBB is not mounted!" , mSm . isObbMounted ( obbPath ) ) ; String path = mSm . getMountedObbPath ( obbPath ) ; assertTrue ( "Path should not be null!" , path != null ) ; File inFile = new File ( path , fileName ) ; DataInputStream inStream = null ; try { inStream = new DataInputStream ( new FileInputStream ( inFile ) ) ; Log . i ( LOG_TAG , "Opened file: " + fileName + " for read at path: " + path ) ; } catch ( FileNotFoundException e ) { Log . e ( LOG_TAG , e . toString ( ) ) ; return null ; } catch ( SecurityException e ) { Log . e ( LOG_TAG , e . toString ( ) ) ; return null ; } return inStream ; }
mounts an obb file and opens a file located on it
