Jump to content

Omar Zelaya

Active subscription
  • Posts

    48
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Omar Zelaya

  1. Hi,

    I'm testing adding the library to add the TBeacon functionality on Android(On iOS works ok). If I just add the TBeacon component I get the following error at startup "Java type com/embarcadero/rtl/bluetooth/le/RTLScanListener could not be found".

     

    Thanks in advance,

    Omar Zelaya

     

  2. Hi,

    I'm using Delphi 11.1 and latest FGX. When I add Embarcadero Android Library for example "core-common-2.0.1.dex.jar" I get the following error when linking.

    "[MSBuild Error] Cannot evaluate the item metadata "%(FullPath)". The item meta-data "%(FullPath)" cannot be applied to the path "". The path is not of a legal form."

    Any hints?

    Thanks in advance,

    Omar Zelaya

  3. Hi,

    I know it is possible to do it "manually", I'm all ready doing it. would be more easy that fgx platform could "auto" create it for us. just like Firemonkey does it for example.

    Thanks in advance,

    Omar Zelaya

    5 hours ago, Stas said:

     1. Place fglayout1 relative

    2 place fgpage control inside layout1 relative flexgrow=1

    3 place fglayout2 inside layout1 absolute

    with anchor left right bottom

    3 place 3 circle inside fglayout2 relative

    4 change circle background when active tabsheet changing 

     

     

  4. Hi,

    Would be nice to add dots display on each page of pagecontrol.

    This is very usefull to show user that pages are available to swipe when tabposition is invisible.

    Thanks in advance,

    Omar Zelaya

     

  5. 1 hour ago, Stas said:

    Its help you?

    Hi,

    I get "[DCC Error] E2597 E:\\android-ndk-r17b\\platforms\\android-22\\arch-arm64\\usr\\lib\\crtbegin_so.o: file not recognized: File format not recognized" when compiling.

    Thanks in advance,

    Omar Zelaya

  6. 1 hour ago, Yaroslav Brovin said:

    Hello,

    Ok, I will check today on 10.4.1 myself and will let know about results.

    Thank you

    Hi,

    I think is my OLD device is not supported anymore, tested with a firemonkey app with same results.

    Thanks in advance,

    Omar Zelaya

  7. 11 hours ago, Yaroslav Brovin said:

    Hello,

    Do you mean crash, when you open demo or when you launch demo on device?

    And what stack trace do you see?

    Hi,

    app crash when launch demo on device. there is no stack trace info.

    Thanks in advance,

    Omar Zelaya

  8. On 8/15/2020 at 6:07 AM, Viktor Akselrod said:

    Hello.

    Could you attach the logs from the device, please?

    Thank you

    Hi, After take first picture camera image get a litte larger, try to take a second picture gets access violation.

    Thanks in advance,

    Omar Zelaya

    Camera demo1.jpeg

    Camera demo2.jpeg

    CameraDemoLog.zip

  9. 2 hours ago, Viktor Akselrod said:

    Hello.

    Could you attach the logs from the device, please?

    Thank you

    Hi,

    Any detail how to generate and extract the device logs?

    Thanks

    Omar Zelaya

  10. Hi I have the issue shown on the image with the camera demo. I think I have tested the camera demo before and it worked ok. My test device Samgung J3 Android 5.1.1

    Thanks in advance,

    Omar Zelaya2120838959_Fotoandroid.thumb.jpeg.40576367ae76c8fb1a97e9dcb31f0ab0.jpeg

  11. Hi,

    usage of thread method.

    CustomThread(/// OnStart
                                   procedure ()
                                   begin
                                     // show some kind of wait message to user
                                   end,
                                   /// OnProcess
                                   procedure ()
                                   begin
                                     // request data
                                   end,
                                   /// On Complete
                                   procedure ()
                                   begin
                                     /// show end data request
                                   end,
                                   // On Error
                                   procedure ()
                                   begin
                                     /// show error on data request
                                   end);

     

    • Thanks 1
  12. Hi

    Maybe this help,

    procedure CustomThread(
      AOnStart,
      AOnProcess,
      AOnComplete : TProc;
      AOnError: TProcedureExcept;
      ADoCompletWithError: Boolean = True);
    var
      LThread : TThread;
    begin
      LThread :=
        TThread.CreateAnonymousThread(
          procedure ()
          var
            LDoComplete : Boolean;
          begin
            try
              try
                //OnStart
                LDoComplete := True;
                if Assigned(AOnStart) then
                begin
                  TThread.Synchronize(
                    TThread.CurrentThread,
                    procedure ()
                    begin
                      AOnStart;
                    end
                  );
                end;

                //OnProcess
                if Assigned(AOnProcess) then
                  AOnProcess;

              //OnError
              except on E:Exception do
                begin
                  LDoComplete := ADoCompletWithError;
                  if Assigned(AOnError) then
                  begin
                    TThread.Synchronize(
                      TThread.CurrentThread,
                      procedure ()
                      begin
                        AOnError(E.Message);
                      end
                    );
                  end;

                end;
              end;
            finally
              //OnComplete
              if Assigned(AOnComplete) then
              begin
                TThread.Synchronize(
                  TThread.CurrentThread,
                  procedure ()
                  begin
                    AOnComplete;
                  end
                );
              end;
            end;
          end
        );

      LThread.FreeOnTerminate := True;
      LThread.Start;
    end;

    • Like 2
  13. Hi,

    Rad Studio 10.3 memory manager uses arc on mobile, so you kind of shouldnt dont worry about memory release. On 10.4 on mobile now use standard memory model(not more arc) and you SHOULD be aware to release memory.

    About second question, not quite familiar with TRestRequest class and ExecuteAsync Method, In my own experience i always do any intenert request using Threads with no problems(no delays on main thread).

    I would suggest to use Threads to request data from the internet. I'm developing a App that laods data and images from a rest server with no delay on the app using threads.

    Hope it Helps,

    Omar Zelaya

     

    • Like 2
×
×
  • Create New...