Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android application crashes #2

Open
dannypiojoso opened this issue Aug 8, 2015 · 2 comments
Open

android application crashes #2

dannypiojoso opened this issue Aug 8, 2015 · 2 comments

Comments

@dannypiojoso
Copy link

Mobile Device: Samsung Galaxy S4 GT-i9500
Delphi XE7

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

@ersanyakit
Copy link
Owner

hello,
can u add me skype,
[email protected]

@War3Evo
Copy link

War3Evo commented Jan 28, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants