Jump to content

William23668

Members
  • Content Count

    138
  • Joined

  • Last visited

Posts posted by William23668


  1. 10 minutes ago, Dave Nottage said:

    Which version of Delphi are you using? Which version of Android is on the device? Have you tried running the app via the debugger to check whether there's any errors?

    Delphi 11.2 with October patch. Android 10. Tried the debugger only the splash screen appear and stop at it

     

    this is all I see:

     

    image.png.e21d070095a18970b06acdcf919c962a.png


  2. Hi

     

    I use Delphi 11.2 and I am trying to conenct it to my android device honor 8x . I followed all the steps

     

    https://docwiki.embarcadero.com/RADStudio/Sydney/en/Running_Your_Android_Application_on_an_Android_Device

    https://docwiki.embarcadero.com/RADStudio/Sydney/en/Configuring_Your_System_to_Detect_Your_Android_Device

    https://docwiki.embarcadero.com/RADStudio/Sydney/en/Installing_the_USB_Driver_for_Your_Android_Device

     

    but I got dizzy and I am unable to find device usb driver I tried google usb driver did not work

    http://developer.android.com/sdk/win-usb.html

     

     

    OEM driver also I dont know where to find

    https://developer.android.com/studio/run/oem-usb

    https://consumer.huawei.com/en/support/

     

    the phone is visible in device manager

     

    image.thumb.png.a01a0300bb1c112a6319baa70a47e898.png

     

    image.thumb.png.c90989c4acb2f269e9901b751eb2176d.png

     

    image.thumb.png.3c62e8f1e90bdc37e9e346658c66d759.png

     

    image.thumb.png.1971d10c32969bed55343440c9da5bf5.png

     

     \extras folder in your installed <SDK> directory, only contain folder called intel.

     

    What I am missing ?

     

     

     

     

     

     


  3. I tried to follow the steps as per embarcadero tutorial like that:

    > pip install delphivcl
    Collecting delphivcl
      Using cached delphivcl-0.1.24-cp311-cp311-win_amd64.whl
    Installing collected packages: delphivcl
    Successfully installed delphivcl-0.1.24
    
    > Python
    Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from delphivcl import *
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "C:\Program Files\Python311\Lib\site-packages\delphivcl\__init__.py", line 22, in <module>
        package = new_import()
                  ^^^^^^^^^^^^
      File "C:\Program Files\Python311\Lib\site-packages\delphivcl\__init__.py", line 15, in new_import
        ld = loader.create_module(spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    ImportError: DLL load failed while importing DelphiVCL: The specified module could not be found.

    What is the problem ?


  4. 18 minutes ago, limelect said:

    1.use FDConnection1

    2.FDConnection1BeforeConnect  >>>>FDConnection1.Params.Values['Database'] := 'Applications.db';

    3. FDConnection1AfterConnect>>>>

     FDConnection1.ExecSQL('CREATE TABLE IF NOT EXISTS Files (SectionsId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,MainDirectory TEXT NULL, Files TEXT NULL)');
      FilesFDTable.TableName := 'Files';
      FilesFDTable.Active := True;
     Now you can use table or sql

     

    I dont understand !! the code display error on connect so it does not connect or create a file.


  5. Hi

     

    I am using this code to create the database bute I get error on connect :


     

    var
     MyDBFile: string;
    begin
      MyDBFile := 'C:\db5.sqlite3';
    
      if FileExists(MyDBFile) then
        DeleteFile(MyDBFile);
    
      FDConnection1.Params.Values['Database'] := MyDBFile;
      FDConnection1.Params.Values['DriverID'] := 'SQLite';
      //Connection.Params.Values['Encrypt']  := 'aes-128';
      //Connection.Params.Values['Password'] := '1234';
      FDConnection1.Connected := True;
    
    
    
    ---------------------------
    [FireDAC][Phys][SQLite] ERROR: unable to open database file.
    ---------------------------
    

     

×