#Region Project Attributes
#ApplicationLabel: SQPM
#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
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim manager As DbxAccountManager
Dim key As String = "x9t0ymypxxxxxxx"
Dim secret As String = "5xm9h1xxxxxxxxx"
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private Button1 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
manager.Initialize(key, secret, "manager" ,True)
End If
Activity.LoadLayout("Main")
End Sub
Sub Manager_AccountReady (Success As Boolean)
If Success Then
ToastMessageShow("Link to Dropbox successfull ...",False )
manager.UploadFile(File.DirDefaultExternal,"Svenner.txt","/","Svenner.txt")
Msgbox("Daten gesendet","UP OK")
Else
ToastMessageShow("Unable to Link to Dropbox ...",False )
End If
End Sub
Sub Button1_Click
manager.LinkAccount
End Sub