Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

FMX CloudStorageDemo

 Post Reply Post Reply
Author
Powell Graham View Drop Down
Member
Member
Avatar

Joined: 04 Jan 2013
Posts: 85
Post Options Post Options   Quote Powell Graham Quote  Post ReplyReply Direct Link To This Post Topic: FMX CloudStorageDemo
    Posted: 30 Mar 2015 at 5:18pm
Just started to test this demo with DropBox, Box, Google Drive and SkyDrive on an Android device.

First problem is with Google Drive.

if (Sender is TTMSFMXCloudStorageFMX) then
begin
    cs := Sender as TTMSFMXCloudStorageFMX;
    cs.GetDriveInfo; //*** Fails here... exception and no drive info returned ***
    cs.FillTreeView(TreeView1);
    cs.SaveTokens;
end;

My Windows application using the normal Cloud components works fine.

Graham
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8056
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2015 at 2:10pm
Was a successful authentication & authorization done first?
If a problem persists, please enable logging & send the log file so we can investigate what exactly went wrong.
Back to Top
Powell Graham View Drop Down
Member
Member
Avatar

Joined: 04 Jan 2013
Posts: 85
Post Options Post Options   Quote Powell Graham Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2015 at 4:07pm
When I run the program, I select the Google option and press "Connect". I see the Google screen appear and I click on "Accept". After this it creates an exception.

I have now turned on the Logging in the GDrive component and set the LogLevel to IIDetail.

Where does the log file get created and what is the filename?

Will the file get created before the exception is generated?

Graham
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3325
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2015 at 4:20pm
Which version of Rad Studio are you using and are you using Android ?

Kind Regards, 
Pieter
Back to Top
Powell Graham View Drop Down
Member
Member
Avatar

Joined: 04 Jan 2013
Posts: 85
Post Options Post Options   Quote Powell Graham Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2015 at 4:45pm
This is where I have to apologise. I had set the Secret Key incorrectly. So now on to the next items:

1: Minor issue: The Amazon RadioButton6 should be inside the RadioGroup.

2: When I connect to any of my Cloud Storage I get the list of items displayed in the TreeView. Some of these items are Folders. How do I get to see the contents of these Folders?

I am using Delphi XE7 and the target is Android.

I would still like to know where the logging file is saved?

Graham
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3325
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2015 at 5:04pm
Hi, 

We will investigate the issue with the radiobutton here.
By default the log file name is saved under the documents folder (TPath.GetDocumentsPath).
There was an issue in Android to retrieve the folder contents, this has already been fixed and will be available in the next release.

Kind Regards, 
Pieter
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down