Jump to content
Sign in to follow this  
ToddFrankson

Embarcadero\Studio\22.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\DownloadServiceDemo

Recommended Posts

So out of the box, the demo doesn't work for me.  The first problem was the Read and Write External Storage permissions are deprecated.

 

So, I changed the permissions to use the media files..... changed the line in the service from :

LFileName := TPath.Combine(TPath.GetSharedDownloadsPath, LFileName);

to
LFileName := TPath.Combine(TPath.GetDocumentsPath, LFileName); 

in hopes it would work.  Still nothing.

 

 

This is my first pass at services, so I don't know diddly......

 

1-Can I debug a service?  I have tried but can't seem to make it happen.

2- Does the service and the App reside in the same "directory" on android, and have access to the same folders?

 

I'm at a point where the app runs fine, but no notification comes from the server indicating the file downloaded, and the app never loads it.......

 

Any one have 2 cents??

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×