Android Question MP3 conversion error

uniplan

Active Member
Licensed User
Longtime User
I have recorded an audio file in .wav format with AudioStreamer library.
I am able to correctly hear the .wav file produced.
I tried to convert the wav files to mp3 with liblameEncoder library.
I use this code:
B4X:
Try
    Dim LameEncoder As liblameEncoder
    LameEncoder.Initialize("LameEncoder")
   
    If LameEncoder.SetFiles(File.Combine(perc_to_save, mFileName), File.Combine(perc_to_save, mFileNameMP3)) Then
        ProgressDialogShow2("Encoding...", False)
        LameEncoder.Encode
    Else
        Log("An error occurred while calling LameEncoder.SetFiles")
        CallSub2(module, eventName,"KO")
    End If
Catch
    Log(LastException)
End Try

But I have this error:

 

uniplan

Active Member
Licensed User
Longtime User
Yes. I have tested it on real device (Huawei P9 lite and Samsung S6).

This is my targetSdkversion:
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="24"/>
 
Upvote 0

uniplan

Active Member
Licensed User
Longtime User
I tried to set the targetSDKversion to 22 but when I compile I have this error:
[100%] /data/local/tmp/map_RAPID_DEBUG.apk
pkg: /data/local/tmp/map_RAPID_DEBUG.apk
Failure [INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE]
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…