Android Question sending message to waiting queue (OnActivityResult)

Discussion in 'Android Questions' started by Lyndon Bermoy, Jan 28, 2015.

  1. Lyndon Bermoy

    Lyndon Bermoy Member Licensed User

    Good day.

    I have experienced this on the log file when I programmed my dropbox. It can now download and upload in the dropbox.

    But my problem here is that, when i have an app in the dropbox that has the full permission of files (any type of files can be uploaded), I always encounter this error "sending message to waiting queue (OnActivityResult), running waiting messages (1), and now i can't upload a db file on the dropbox -_-

    But when, i changed the app on the Dropbox on the permission list, it will not undergo the log file stated above.

    this is the code:

    Code:
    Sub Process_Globals

      
    Private manager As DbxAccountManager
      
    Private key As String = "6sfz1ltyhf4a519"
      
    Private secret As String = "4n6nu9khg2btsq9"

    End Sub

    Sub Globals

       
    Private Button1 As Button
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
      
    If FirstTime Then
      manager.Initialize(key, secret, 
    "manager")
        
    File.Copy(File.DirAssets, "books6.db" ,File.DirRootExternal, "books6.db")
       
    '  SQL1.Initialize (File.DirDefaultExternal,"books6.sqlite",False)

      
    End If
       
      
    Activity.LoadLayout("1")
    End Sub

    Sub Button1_Click
      manager.LinkAccount
      
    ' SQL1.Close
    End Sub

    Sub Manager_AccountReady (Success As Boolean)
      
    Log("Account Ready: " & Success)
      
    If Success Then
         
         
    ToastMessageShow("Link to Dropbox successfull ...",False )
         
        manager.UploadFile(
    File.DirRootExternal,"books6.db""/""books6.db")

     
       
    Else
         
    ToastMessageShow("Unable to Link to Dropbox  ...",False )
       
    End If
     
    End Sub

    Sub Manager_DownloadCompleted (Success As Boolean, LocalDir As String, LocalFileName As String)
      
    Log("UploadCompleted: " & Success)
    End Sub
    How to fix this? Please help :)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The log message is expected when the user login dialog is displayed. It is fine.
     
  3. Lyndon Bermoy

    Lyndon Bermoy Member Licensed User

    But sir @Erel after displaying "sending message to waiting queue (OnActivityResult), running waiting messages (1)", there's no output when clicking the button. Means that it cannot upload a file on dropbox.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. Lyndon Bermoy

    Lyndon Bermoy Member Licensed User

  6. Erel

    Erel Administrator Staff Member Licensed User

    Put a breakpoint in the AccountReady event. Does it fire?
     
  7. Lyndon Bermoy

    Lyndon Bermoy Member Licensed User

    What do you mean sir?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice