Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Can Android services created with Delphi be used in non-Delphi apps?


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Last Post: Dec 18, 2017 9:26 AM Last Post By: Brian Wheatley
Brian Wheatley

Posts: 60
Registered: 2/5/01
Can Android services created with Delphi be used in non-Delphi apps?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 12, 2017 6:13 AM
Hello,

I've been working on a project that uses the TWebBrowser control. Unfortunately the TWebBrowser does not obey Z-Order on the Android platform. It is listed as a bug in Quality Control that is to be fixed at some later date. It looks like I'm going to have to develop the Android application with other development tools because of this.

Is it possible to create an Android service (or just an .so library) with Delphi that is utilized by the native application?

Thank you,
Brian Wheatley
loki loki

Posts: 787
Registered: 7/1/02
Re: Can Android services created with Delphi be used in non-Delphi apps?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 12, 2017 10:04 AM   in response to: Brian Wheatley in response to: Brian Wheatley
I've been working on a project that uses the TWebBrowser control. Unfortunately the TWebBrowser does not obey Z-Order on the Android platform. It is listed as a bug in Quality Control that is to be fixed at some later date. It looks like I'm going to have to develop the Android application with other development tools because of this.

it's not a bug ... delphi draw everything on a openGL surface. the
TWebBrowser can't be drawed on this openGL surface and need is own
window. it's like this by design, else how you would imagine that your
code will also compile on IOS ?


Is it possible to create an Android service (or just an .so library) with Delphi that is utilized by the native application?

yes, but build just a service with delphi it's really bad design, delphi
it's not a good tool for this !
Robert [NL] Mit...

Posts: 100
Registered: 5/23/04
Re: Can Android services created with Delphi be used in non-Delphi apps?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 12, 2017 10:25 AM   in response to: Brian Wheatley in response to: Brian Wheatley
Unfortunately the TWebBrowser does not obey Z-Order on the Android platform. It is listed as a bug in Quality Control that is to be fixed at some later date.

Unfortunately this limitation exists for years now.
Most of the time TWebBrowser.CaptureBitmap can serve as a workaround, but of course it depends on what you exactly want to do. So give us more info, maybe we can help you.
Brian Wheatley

Posts: 60
Registered: 2/5/01
Re: Can Android services created with Delphi be used in non-Delphi apps?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 13, 2017 9:58 AM   in response to: Robert [NL] Mit... in response to: Robert [NL] Mit...
Robert [NL] Mittendorff wrote:
Unfortunately the TWebBrowser does not obey Z-Order on the Android platform. It is listed as a bug in Quality Control that is to be fixed at some later date.

Unfortunately this limitation exists for years now.
Most of the time TWebBrowser.CaptureBitmap can serve as a workaround, but of course it depends on what you exactly want to do. So give us more info, maybe we can help you.

The user interface is being designed with HTML5, CSS, and JavaScript (it's a web page). The application was essentially a main form with just a web browser control. The web server is built into the Delphi application to serve up the pages and web services for the JavaScript to call. The user interacts with the web page except for a few instances where a remote procedure call launches dialog boxes (such as selecting records to upload or download from a web service on the Internet).

The problem is that the TWebBrowser blocks the dialog boxes.
loki loki

Posts: 787
Registered: 7/1/02
Re: Can Android services created with Delphi be used in non-Delphi apps?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 15, 2017 8:57 AM   in response to: Brian Wheatley in response to: Brian Wheatley
On 12/13/2017 8:58 PM, Brian Wheatley wrote:
Robert [NL] Mittendorff wrote:
Unfortunately the TWebBrowser does not obey Z-Order on the Android platform. It is listed as a bug in Quality Control that is to be fixed at some later date.

Unfortunately this limitation exists for years now.
Most of the time TWebBrowser.CaptureBitmap can serve as a workaround, but of course it depends on what you exactly want to do. So give us more info, maybe we can help you.

The user interface is being designed with HTML5, CSS, and JavaScript (it's a web page). The application was essentially a main form with just a web browser control. The web server is built into the Delphi application to serve up the pages and web services for the JavaScript to call. The user interacts with the web page except for a few instances where a remote procedure call launches dialog boxes (such as selecting records to upload or download from a web service on the Internet).

The problem is that the TWebBrowser blocks the dialog boxes.

dialog boxes must be written in java :)
Brian Wheatley

Posts: 60
Registered: 2/5/01
Re: Can Android services created with Delphi be used in non-Delphi apps?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 18, 2017 9:26 AM   in response to: Brian Wheatley in response to: Brian Wheatley
Thanks
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02