I am working on a simple android app that uses sqlite. I have a simple multi device app. There is a list view connected to the fdquery1, and fdconnection1. When i compile to my android phone i get the black screen with fire icon. If i turn of the fdconnection1 then the app will compile(NO Data Display In Listview). Has anyone run into this before ? I am using Delphi Community edition. Thanks for your help. here is link to my sorcecode
The only code i have is for android.
procedure TForm4.FDConnection1BeforeConnect(Sender: TObject);
begin
{$IF DEFINED(iOS) or DEFINED(ANDROID)}
FDConnection1.Params.Values['Database'] :=
TPath.Combine(TPath.GetDocumentsPath, 'flatrate.db3');
{$ENDIF}
end;
I disconnected the fdconnection1 and connected it on the forms on show event. The app will now compile to android but I am having trouble exeacuting the query1 sql to show the data in the list view.
procedure TForm4.Button1Click(Sender: TObject);
begin
FDQuery1.SQL.Text := 'select * from main';
fdquery1.ExecSQL;
FDQuery1.Open;
end;
When I click on the button on my android phone i get message "error no such table main"