Android Question Dropbox connection

a_carignan

Member
Licensed User
Longtime User
Here is my code software dropbox
B4X:
#Region  Project Attributes

    #ApplicationLabel: B4A Example
    #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.
    Private manager As DbxAccountManager
      Private key As String = "allo"
      Private secret As String = "allo"

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.

    Dim Button1 As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    If FirstTime Then
      manager.Initialize(key, secret, "Manager")
  End If
  'Activity.LoadLayout("Layout1")
End Sub

Sub Activity_Resume
    manager.LinkAccount
End Sub

Sub Activity_Pause (UserClosed As Boolean)

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("/", "somefile", File.DirRootExternal, "somefile")
End Sub
Sub Manager_DownloadCompleted (Success As Boolean, LocalDir As String, LocalFileName As String)
  Log("DownloadCompleted: " & Success)
End Sub
Sub Button1_Click
    manager.linkAccount()
End Sub
Here is my manifest
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

'End of default text.
AddApplicationText(
<activity android:name="com.dropbox.sync.android.DbxAuthActivity" />
<activity
  android:name="com.dropbox.client2.android.AuthActivity"
  android:launchMode="singleTask" >
  <intent-filter>
    <data android:scheme="db-allo" /> <!-- NEED TO UPDATE -->
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter>
</activity>
<service
  android:name="com.dropbox.sync.android.DbxSyncService"
  android:enabled="true"
  android:exported="false"
  android:label="Dropbox Sync" />  )
  AddReplacement(<uses-permission android:name="android.permission.INTERNET" />,)
AddReplacement(<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />,)
I just want to know why the sub manager_accountready riendans not display the logs, although manager.linkaccount control seems to work.
 

a_carignan

Member
Licensed User
Longtime User
I understand that I should have added.
With or without the Manager_AccountReady event (Success As Boolean) never seems to execute.
 
Upvote 0

a_carignan

Member
Licensed User
Longtime User
Clée and secret looks correct on the Dropbox website.
Here is the information cited dropbox for druids software.
For the status page
Status

Development
Development users

Hundredth
kind permission
Full Dropbox
app key
gkjfg3yuk0rj3fp
App secret
niuswzuwyd884se
OAuth redirect URIs

http:// allowed only for localhost URIs
Drop-ins domains

If using Drop-ins on a website, the domain of That site.
datastores
Browse datastores
for detail page
App name

Publisher

description

App website

app icons
64x64Choose from Dropbox
256x256Choose from Dropbox
White is information that I have nothing cries lack of pertirnante information.
 
Upvote 0

a_carignan

Member
Licensed User
Longtime User
This is already underway. I suspect bad choice questions to create applications. I would need answers to questions that work.
 
Upvote 0

a_carignan

Member
Licensed User
Longtime User
That's what I thought, misconfiguration of my dropbox application. Finally, I connect stinks, but only in a directory. I hope I can use dropbox software for several software on my phone. :cool:
 
Upvote 0

a_carignan

Member
Licensed User
Longtime User
This kind of conection to Dropbox does not match my needs. We say that Dropbox has been programmed to make a good innificace colloboration between the phone and the computer. Almost any change made by the computer on a file, creates a conflict and the phone opens the old file. By the way, every time I download the file to your phone.
I wish I could edit the files provided with the software on a computer than a phone. How can I get there?
 
Upvote 0

a_carignan

Member
Licensed User
Longtime User
Generally test files that contain data. I will also open images and html files. But I thought working on a phone-side copy. Make a download before and upload after not mind another measure.
 
Upvote 0
Top