#Region Project Attributes
#ApplicationLabel: B4A Test
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
Private manager As DbxAccountManager
Private key As String = "I put my key here"
Private secret As String = "I put my secret here"
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
manager.Initialize(key, secret, "Manager")
End If
Activity.LoadLayout("1")
End Sub
Sub Button1_Click
manager.LinkAccount
End Sub
Sub Manager_AccountReady (Success As Boolean)
Log("Account Ready: " & Success)
If Success Then
For Each FileInfo As DbxFileInfo In manager.ListFiles("/")
Log(FileInfo.Name & ", " & FileInfo.IsFolder)
Next
End If
' manager.DownloadFile("/", "MyChow.txt", File.DirRootExternal, "MyChow.TXT")
' ExitApplication
End Sub