ersanyakit / FMX.Radio

Delphi XE7 Firemonkey Radio Player
40 stars 18 forks source link

android application crashes #2

Open dannypiojoso opened 8 years ago

dannypiojoso commented 8 years ago

Mobile Device: Samsung Galaxy S4 GT-i9500 Delphi XE7

The application crashes on startup. It shows black screen and does not start.

ersanyakit commented 8 years ago

hello, can u add me skype, ersanyakit@hotmail.com

War3Evo commented 6 years ago

The application crashes is because it's not finding the drivers!

You'll need to make sure the library path is correct and that it's copying the files needed. Check out my version here: https://github.com/War3Evo/FMX.Radio to see if it makes any difference.

You could however force it to copy into the .\assets\internal\ directory and then change the FMX.Radio.Bass.pas near line 1089 to do this:

{$IFDEF ANDROID} Result := IncludeTrailingPathDelimiter(system.IOUtils.TPath.GetDocumentsPath); {$ELSE} Result := IncludeTrailingPathDelimiter(system.IOUtils.TPath.GetLibraryPath); {$ENDIF}

and make sure that

System.StartupCopy, // required to deploy files for android
FMX.Objects // required by system.IOUtils after implementation

is in the top uses clause.

That is what I did at first, but after research I found a better solution and updated https://github.com/War3Evo/FMX.Radio

My version works on Android 6.0.1 and Android 8.0