Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Android and DSHTTPLayer unit


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


Permlink Replies: 2 - Last Post: Jan 28, 2016 5:31 PM Last Post By: Remy Lebeau (Te...
Luiz Paulo Gril...

Posts: 24
Registered: 4/24/14
Android and DSHTTPLayer unit  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 28, 2016 3:02 AM
Hello, I am developing an Android Application that communicates to a DataSnap Server.
When reading the documentation I found this:

Note: If the HTTP protocol is to be used at run time, the DSHTTPLayer unit needs to be added to the uses list in the client application.

When my target platform is Android and I add this unit to my project I get: Cannot resolve unit name 'DSHTTPLayer', but when my target platform is Windows I do not see this message.

What am I missing here? Should I add this unit in some other way?

The Delphi Version I am using is Seattle.

Thanks
--
Luiz Paulo Grillo Brandão
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Android and DSHTTPLayer unit  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 28, 2016 10:14 AM   in response to: Luiz Paulo Gril... in response to: Luiz Paulo Gril...
Am 28.01.2016 um 12:02 schrieb Luiz Paulo Grillo Brandão:
Hello, I am developing an Android Application that communicates to a DataSnap Server.
When reading the documentation I found this:

Note: If the HTTP protocol is to be used at run time, the DSHTTPLayer unit needs to be added to the uses list in the client application.

When my target platform is Android and I add this unit to my project I get: Cannot resolve unit name 'DSHTTPLayer', but when my target platform is Windows I do not see this message.

What am I missing here? Should I add this unit in some other way?

The Delphi Version I am using is Seattle.

Thanks
--
Luiz Paulo Grillo Brandão

Hello,

since your question is a DataSnap and/or Android related question would
you mind to post it in the embarcadero,public.datasnap or the
embarcadero.public.delphi.platformspecific.android group?

It's not about GUI programming which Firemonkey (FMX) is.

Greetings

Markus
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Android and DSHTTPLayer unit  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 28, 2016 5:31 PM   in response to: Luiz Paulo Gril... in response to: Luiz Paulo Gril...
Luiz wrote:

When my target platform is Android and I add this unit to my project I
get: Cannot resolve unit name 'DSHTTPLayer', but when my target
platform is Windows I do not see this message.

You need to specify the 'Datasnap' unit scope name, either in the 'uses'
clause itself:

uses
  ..., Datasnap.DSHTTPLayer;


Or in the "Unit scope names" list in the Project Options.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02