Jump to content

Mauro Botta

Members
  • Content Count

    16
  • Joined

  • Last visited

Posts posted by Mauro Botta


  1. Hi

    Open Delphi , create a new project with wizard, Set Android64, F9... after a minutes Fail deploy of all projects

     

    I open all examples and don't work the deploy to Android.

     

    i have change AndroidManifest.template.xml    <uses-sdk android:minSdkVersion="%minSdkVersion%" android:targetSdkVersion="33" />

    but don't work.

     

    All compile project work fine, Deploy for "Application Store" work fine !!

    but don't work : DEVELOPMENT mode.

     

    i have update SDK to Android 13 (33)

    sdkmanager.bat --install "platforms;android-33""platforms;android-33"
    sdkmanager.bat --install "build-tools;33.0.2"

     

    I'm using Delphi 11.3, with Android 13, Samsung S22 (Snapdragon).

     

    Hint ?

     

     

     

    image.thumb.png.f88ae47393a31d98bf7cf22227f8e1d9.png

     

     

     

     

     

     

     

     

     

     

     

    image.thumb.png.eb72cd12deaef09b13aafea4619a1b6b.png

     

     

     

     

     

     

     

     

     


  2. i have found any links:

     

    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/3e759487-ea22-4ea6-8096-ff013fb099fd/how-to-load-a-local-htmlfile-into-webview?forum=winappswithcsharp

     

    and

     

    https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.webview.navigatetolocalstreamuri?view=winrt-22000

     

    Loads local web content at the specified URI using an IUriToStreamResolver.

    public void NavigateToLocalStreamUri(System.Uri source, IUriToStreamResolver streamResolver);

     

     

     

     

     

    Only Delphi 11 have NavigateToLocalStreamUri property.   how i can use this in Delphi 10.4.2 ?

     

     

      IWebView2 = interface(IInspectable)
      ['{D481759E-3EFF-4462-823D-FD52F9BA4CC8}']
        function get_CanGoBack: Boolean; safecall;
        function get_CanGoForward: Boolean; safecall;
        function get_DocumentTitle: HSTRING; safecall;
        function add_NavigationStarting(handler: TypedEventHandler_2__IWebView__IWebViewNavigationStartingEventArgs): EventRegistrationToken; safecall;
        procedure remove_NavigationStarting(token: EventRegistrationToken); safecall;
        function add_ContentLoading(handler: TypedEventHandler_2__IWebView__IWebViewContentLoadingEventArgs): EventRegistrationToken; safecall;
        procedure remove_ContentLoading(token: EventRegistrationToken); safecall;
        function add_DOMContentLoaded(handler: TypedEventHandler_2__IWebView__IWebViewDOMContentLoadedEventArgs): EventRegistrationToken; safecall;
        procedure remove_DOMContentLoaded(token: EventRegistrationToken); safecall;
        procedure GoForward; safecall;
        procedure GoBack; safecall;
        procedure Refresh; safecall;
        procedure Stop; safecall;
        function CapturePreviewToStreamAsync(stream: IRandomAccessStream): IAsyncAction; safecall;
        function InvokeScriptAsync(scriptName: HSTRING; arguments: IIterable_1__HSTRING): IAsyncOperation_1__HSTRING; safecall;
        function CaptureSelectedContentToDataPackageAsync: IAsyncOperation_1__IDataPackage; safecall;
        procedure NavigateToLocalStreamUri(source: IUriRuntimeClass; streamResolver: IUriToStreamResolver); safecall;
        function BuildLocalStreamUri(contentIdentifier: HSTRING; relativePath: HSTRING): IUriRuntimeClass; safecall;
     

     

     


  3. Hi,

     

    I'm using in my project more TWebBrowser,  i have a know problem with Internet Explorer, now ,

    I know Embardero docs , like https://blogs.embarcadero.com/browsing-in-a-windows-application-from-internet-explorer-to-webview-2/ but i don't like it.

     

    I have tried https://stackoverflow.com/a/52788855/537347 exampe,

     

    ## Using WebView (EdgeHTML) in Delphi / C++ Builder  ##

     

    const
      SWebViewControlProcess = 'Windows.Web.UI.Interop.WebViewControlProcess';

    type
      // Interface with functionality to interact with WebBrowser Control
      // https://docs.microsoft.com/en-us/uwp/api/windows.web.ui.iwebviewcontrol
      IWebViewControl = interface(IInspectable)
      ['{3F921316-BC70-4BDA-9136-C94370899FAB}']
        procedure Placeholder_SourceGet; safecall;
        procedure Placeholder_SourcePut; safecall;
    ..


     

    and work fine. i can open any web sites on Windows 11 in very easy mode.

     

    But i can't open any local files ( and show ) , i need show a .P7M files.

     

    WinS:= TWindowsString.Create('file:\\V:\DelphiXE104_PROJECT\Test\test.xml.p7m');         don't work

    WinS:= TWindowsString.Create('V:\DelphiXE104_PROJECT\Test\test.xml.p7m');                 don't work

    WinS:= TWindowsString.Create('V:\DelphiXE104_PROJECT\Test\BASE_HTML_TEMPLATE.html');               don't work

     

    Any Hint ?

     

     

     

     

     

    from chats:

    https://stackoverflow.com/questions/52766249/using-webview-edgehtml-in-delphi-c-builder/52788855#52788855

     

    You declared the TWebViewControlProcess as class(TWinRTGenericImportI<IWebViewControlProcess>). According to the official documentation, it also has a second constructor with parameters. I would need to access this to create a process that allows to display local files. Can you elaborate on how to call this constructor in Delphi? 

     Oct 22 '19 at 17:50 


  4. Hi,

     

    I have tried https://stackoverflow.com/a/52788855/537347 exampe,

     

     

    const
      SWebViewControlProcess = 'Windows.Web.UI.Interop.WebViewControlProcess';

    type
      // Interface with functionality to interact with WebBrowser Control
      // https://docs.microsoft.com/en-us/uwp/api/windows.web.ui.iwebviewcontrol
      IWebViewControl = interface(IInspectable)
      ['{3F921316-BC70-4BDA-9136-C94370899FAB}']
        procedure Placeholder_SourceGet; safecall;
        procedure Placeholder_SourcePut; safecall;
    ..


     

    and work fine. i can open any web sites.

     

    But i can't open any local files ( and show ) , i need show a .P7M files.

     

     

     

    WinS:= TWindowsString.Create('file:\\V:\DelphiXE104_PROJECT\Test\test.xml.p7m');         don't work

    WinS:= TWindowsString.Create('V:\DelphiXE104_PROJECT\Test\test.xml.p7m');                 don't work

     

    WinS:= TWindowsString.Create('V:\DelphiXE104_PROJECT\Test\BASE_HTML_TEMPLATE.html');               don't work

     

     

    Hint ?


  5. Hi

     

    I need to view any Canon / Nikon reflex jpeg photos in high quality.

    I have tested with RIO, a FMX project with TImageControl.  i have compared the colors and the quality with Canon or Adobe software and FMX, fmx result is very bad, FMX may be... don't support any features of jpeg files ( sRGB ? 32bit ? ) 

     

    A Canon reflex produce 10 / 20 MB file jpeg in very high quality. i need show it in best mode, under Windows 10 today, Next version on iPad...

     

    Best Regards

×