Code example for AssetManager

Methods: openFd

0
	    return null; 
	} 
		 
	try { 
	    String filePath = file.substring(22);
	    return assets.openFd(filePath);
	} catch (IOException e) {
	    e.printStackTrace();
	    return null; 
	} 
    } 
	 
    protected void pausePlaying(String file) {
	MPlayerStatus status = mPlayers_file.get(file);
	if ( status != null && status.isPlaying && !status.isPaused ) {
	    status.player.pause();
	    status.isPaused = true;
	} 
    } 
 
    protected void resumePlaying(String file) {