public VacuumSounpackInstallState installSoundpack ( String url , String md5 , int soundId ) throws CommandExecutionException { if ( url == null || md5 == null ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_PARAMETERS ) ; JSONObject install = new JSONObject ( ) ; install . put ( "url" , url ) ; install . put ( "md5" , md5 ) ; install . put ( "sid" , soundId ) ; JSONArray ret = sendToArray ( "dnld_install_sound" , install ) ; if ( ret == null ) return null ; return new VacuumSounpackInstallState ( ret . optJSONObject ( 0 ) ) ; }
Install a new soundpack to the device .